Frame 1
function doSomething() {
_root._quality = "LOW";
}
function doSomething6() {
_set = 0;
if (_set == 0) {
if (_root.obj.mySound.getVolume() == 0) {
_root.obj.mySound.setVolume(100);
_set = 1;
}
}
if (_set == 0) {
if (_root.obj.mySound.getVolume() > 0) {
_root.obj.mySound.setVolume(0);
_set = 1;
}
}
}
function doSomething3() {
_root._quality = "MEDIUM";
}
function doSomething4() {
_root._quality = "HIGH";
}
function doSomething5() {
getURL ("http://www.armorgames.com", _blank);
}
function doSomething2() {
getURL ("http://www.freewebs.com/lonechicken", _blank);
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Low Quality", doSomething);
Functioned2 = new ContextMenuItem("Visit Lone Chicken Productions", doSomething2);
Functioned3 = new ContextMenuItem("Medium Quality", doSomething3);
Functioned4 = new ContextMenuItem("High Quality", doSomething4);
Functioned5 = new ContextMenuItem("Visit Armor Games", doSomething5);
Functioned6 = new ContextMenuItem("Turn Music On/Off", doSomething6);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned3);
MENU.customItems.push(Functioned4);
MENU.customItems.push(Functioned5);
MENU.customItems.push(Functioned6);
_root.menu = MENU;
Instance of Symbol 24 MovieClip in Frame 1
onClipEvent (load) {
_root.gotoAndStop(1);
cheese = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
cheese++;
_alpha = cheese;
if (cheese >= 99) {
_root.gotoAndStop(2);
}
}
}
Instance of Symbol 28 MovieClip "mousey" in Frame 1
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 29 MovieClip "obj" in Frame 1
onClipEvent (load) {
lives = 7;
score = 0;
_root._quality = "MEDIUM";
ready = true;
}
onClipEvent (enterFrame) {
if (ready == true) {
if (_root._currentframe == 4) {
sound_length = 30;
mySound = new Sound();
mySound.attachSound("halloween song_0");
mySound.start(0, 0);
ready = false;
}
}
}
onClipEvent (enterFrame) {
if (mySound.position >= 192000) {
mySound.stop();
mySound.start(0, 0);
}
play();
}
Instance of Symbol 88 MovieClip in Frame 2
onClipEvent (load) {
step = 2;
obj = 0;
mySound = new Sound();
mySound.attachSound("chicken2[1]");
_xscale = -100;
full = 0;
}
onClipEvent (enterFrame) {
if (step == 2) {
_x = (_x - 14);
if (_x < -300) {
step = 3;
_xscale = 30;
_x = (_x + 100);
_yscale = 30;
}
}
if (step == 3) {
_x = (_x + 3);
if (_x > 800) {
step = 4;
_xscale = -300;
_yscale = 300;
}
}
if (step == 4) {
full++;
obj = obj + 2;
_parent.lcprod._alpha = obj;
_x = (_x - 21);
if (full > 80) {
if (full == 85) {
mySound.start(0, 0);
}
obj = obj - 4.5;
_parent.lcprod._alpha = obj;
}
if (full > 230) {
_root.gotoAndStop(3);
}
}
}
Instance of Symbol 90 MovieClip "lcprod" in Frame 2
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 325 MovieClip in Frame 5
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 28 MovieClip "mousey" in Frame 5
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 329 MovieClip "lev" in Frame 5
onClipEvent (enterFrame) {
if (_currentframe == 50) {
gotoAndStop(_currentframe);
}
}
Instance of Symbol 365 MovieClip in Frame 6
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 368 MovieClip in Frame 7
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 375 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_currentframe == 15) {
gotoAndStop (15);
}
if (_currentframe == 30) {
_root.gotoAndStop(4);
}
}
Instance of Symbol 378 MovieClip in Frame 9
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 28 MovieClip "mousey" in Frame 9
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 329 MovieClip "lev" in Frame 9
onClipEvent (enterFrame) {
if (_currentframe == 50) {
gotoAndStop(_currentframe);
}
}
Instance of Symbol 381 MovieClip in Frame 10
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 384 MovieClip in Frame 11
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 387 MovieClip "lev7" in Frame 12
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 390 MovieClip in Frame 13
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 413 MovieClip in Frame 16
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 28 MovieClip "mousey" in Frame 16
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 329 MovieClip "lev" in Frame 16
onClipEvent (enterFrame) {
if (_currentframe == 50) {
gotoAndStop(_currentframe);
}
}
Instance of Symbol 416 MovieClip in Frame 17
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 419 MovieClip in Frame 18
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 421 MovieClip in Frame 19
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 482 MovieClip in Frame 20
onClipEvent (load) {
_parent.lev.gotoAndPlay(1);
}
Instance of Symbol 494 MovieClip "score" in Frame 21
onClipEvent (load) {
movieprogress = 0;
obj = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
movieprogress++;
if (movieprogress <= 20) {
obj = obj + 5;
_alpha = obj;
}
if (movieprogress >= 200) {
obj = obj - 5;
_alpha = obj;
if (_alpha <= 0) {
_root.gotoAndStop(8);
}
}
}
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 11 MovieClip in Symbol 12 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 14 MovieClip "box" in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
}
Instance of Symbol 9 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Instance of Symbol 9 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Instance of Symbol 9 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Instance of Symbol 9 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Instance of Symbol 12 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Instance of Symbol 12 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Instance of Symbol 9 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Instance of Symbol 12 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
_rotation = (_rotation + 5);
if (_xscale <= 0) {
_xscale = 150;
_yscale = 150;
}
}
Symbol 95 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 102 MovieClip Frame 81
_root.gotoAndStop(4);
_root.play();
Symbol 103 MovieClip Frame 1
stop();
Instance of Symbol 151 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_parent.mousey.spot)) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "_blank");
}
}
Instance of Symbol 158 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 37) {
gotoAndStop (37);
}
}
Instance of Symbol 162 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.box.hitTest(_parent.mousey.spot)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
if (this.box.hitTest(_parent.mousey.spot)) {
_parent.square.option = 1;
}
}
Instance of Symbol 166 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.box.hitTest(_parent.mousey.spot)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
if (this.box.hitTest(_parent.mousey.spot)) {
_parent.square.option = 2;
}
}
Instance of Symbol 170 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.box.hitTest(_parent.mousey.spot)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
if (this.box.hitTest(_parent.mousey.spot)) {
_parent.square.option = 3;
}
}
Instance of Symbol 174 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.box.hitTest(_parent.mousey.spot)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
if (this.box.hitTest(_parent.mousey.spot)) {
_parent.square.option = 4;
}
}
Instance of Symbol 28 MovieClip "mousey" in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 178 MovieClip "square" in Symbol 179 MovieClip Frame 1
onClipEvent (load) {
obj = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (option == 1) {
obj++;
_alpha = obj;
if (obj >= 95) {
_root.gotoAndStop(5);
}
}
if (option == 3) {
if (obj >= 95) {
_root.gotoAndStop(8);
}
obj++;
_alpha = obj;
}
if (option == 4) {
getURL ("http://armorgames.com", "_blank");
option = 0;
}
if (option == 2) {
if (obj >= 95) {
_root.gotoAndStop(14);
}
obj++;
_alpha = obj;
}
}
Instance of Symbol 182 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
direction = random(45);
}
onClipEvent (enterFrame) {
if (_parent.cloud.direction < 22) {
_x = (_x + 0.5);
if (_x > 450) {
_x = -650;
}
}
if (_parent.cloud.direction >= 22) {
_x = (_x - 0.25);
if (_x < -650) {
_x = 450;
}
}
}
Instance of Symbol 182 MovieClip "cloud" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
direction = random(45);
}
onClipEvent (enterFrame) {
if (direction < 22) {
_x = (_x + 0.5);
if (_x > 450) {
_x = -650;
}
}
if (direction >= 22) {
_x = (_x - 0.25);
if (_x < -650) {
_x = 450;
}
}
}
Instance of Symbol 185 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 4);
_y = (_y - 2.5);
if (_y < -2000) {
_x = 704;
_y = (random(100) + 150);
}
}
Instance of Symbol 208 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_rotation - 50);
_xscale = 1;
increase = 1;
_yscale = 1;
}
onClipEvent (enterFrame) {
increase++;
if ((increase > 5) && (increase < 150)) {
_rotation = (_rotation + 2);
if (increase < 80) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
}
_y = (_y - 2);
_x = (_x + (_yscale / 30));
_y = (_y - (_yscale / 20));
}
if (increase == 1200) {
gotoAndPlay (1);
_rotation = -50;
increase = 0;
_x = 198;
_y = 33;
_xscale = 1;
_yscale = 1;
}
}
Instance of Symbol 211 MovieClip "bg" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
obj = 0;
this._alpha = obj;
}
onClipEvent (load) {
_parent.gotoAndStop(1);
}
Instance of Symbol 233 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent._parent.pumpkin._state == _parent._parent._parent._parent.pumpkin.pain) {
gotoAndStop (2);
}
if (_parent._parent._parent._parent.pumpkin._state == _parent._parent._parent._parent.pumpkin.normal) {
gotoAndStop (1);
}
if (_parent._parent._parent._parent.pumpkin._state == _parent._parent._parent._parent.pumpkin.warp) {
gotoAndStop (3);
}
}
Instance of Symbol 241 MovieClip "blok" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.pumpkin.box)) {
_parent._parent.pumpkin.contact2 = true;
}
}
Instance of Symbol 241 MovieClip "_side" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.pumpkin.box)) {
_parent._parent.pumpkin.sidecontact = true;
}
}
Instance of Symbol 241 MovieClip "topboj" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_parent._parent.pumpkin)) {
if (_parent.fallsequence > 100) {
_parent.fallsequence = 100;
}
}
if (this.hitTest(_parent._parent.pumpkin)) {
if (_parent.contacted == false) {
_parent.contacted = true;
}
_parent._parent.pumpkin.contact = true;
_parent._parent.pumpkin.falling = 0;
if (_parent.fallsequence > 20) {
_parent._parent.pumpkin.contact = false;
}
_parent._parent.pumpkin.jumping = false;
_parent._parent.pumpkin.contact2 = false;
}
}
Instance of Symbol 241 MovieClip "_side2" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.pumpkin.box)) {
_parent._parent.pumpkin.sidecontact2 = true;
}
}
Instance of Symbol 221 MovieClip "grndplat" in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin.box)) {
_parent.pumpkin.contact = true;
_parent.pumpkin.contact2 = false;
jumping = false;
}
}
Instance of Symbol 241 MovieClip "_side" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.pumpkin.box)) {
_parent._parent.pumpkin.sidecontact = true;
}
}
Instance of Symbol 241 MovieClip "topboj" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.pumpkin)) {
_parent._parent.pumpkin.contact = true;
_parent._parent.pumpkin.jumping = false;
_parent._parent.pumpkin.contact2 = false;
}
}
Instance of Symbol 241 MovieClip "_side2" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.pumpkin.box)) {
_parent._parent.pumpkin.sidecontact2 = true;
}
}
Instance of Symbol 241 MovieClip "topboj" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.pumpkin.box)) {
_parent._parent.pumpkin.contact2 = true;
}
}
Instance of Symbol 274 MovieClip "item" in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
obj = 1;
num = 20;
num2 = 65;
num3 = 20;
num4 = 65;
if (_parent._parent.fsequence == num) {
obj = 2;
}
if (_parent._parent.fsequence == (num + 1)) {
obj = 3;
}
if (_parent._parent.fsequence == (num + 2)) {
obj = 4;
}
if (_parent._parent.fsequence == (num + 3)) {
obj = 5;
}
if (_parent._parent.fsequence == (num + 4)) {
obj = 6;
}
if (_parent._parent.fsequence == (num + 5)) {
obj = 7;
}
if (_parent._parent.fsequence == (num + 6)) {
obj = 8;
}
if (_parent._parent.fsequence == (num + 7)) {
obj = 9;
}
if (_parent._parent.fsequence == (num + 8)) {
obj = 10;
}
if (_parent._parent.fsequence == num2) {
obj = 2;
}
if (_parent._parent.fsequence == (num2 + 1)) {
obj = 3;
}
if (_parent._parent.fsequence == (num2 + 2)) {
obj = 4;
}
if (_parent._parent.fsequence == (num2 + 3)) {
obj = 5;
}
if (_parent._parent.fsequence == (num2 + 4)) {
obj = 6;
}
if (_parent._parent.fsequence == (num2 + 5)) {
obj = 7;
}
if (_parent._parent.fsequence == (num2 + 6)) {
obj = 8;
}
if (_parent._parent.fsequence == (num2 + 7)) {
obj = 9;
}
if (_parent._parent.fsequence == (num2 + 8)) {
obj = 10;
}
if (_parent._parent.fsequence == num3) {
obj = 2;
}
if (_parent._parent.fsequence == (num3 + 1)) {
obj = 3;
}
if (_parent._parent.fsequence == (num3 + 2)) {
obj = 4;
}
if (_parent._parent.fsequence == (num3 + 3)) {
obj = 5;
}
if (_parent._parent.fsequence == (num3 + 4)) {
obj = 6;
}
if (_parent._parent.fsequence == (num3 + 5)) {
obj = 7;
}
if (_parent._parent.fsequence == (num3 + 6)) {
obj = 8;
}
if (_parent._parent.fsequence == (num3 + 7)) {
obj = 9;
}
if (_parent._parent.fsequence == (num3 + 8)) {
obj = 10;
}
if (_parent._parent.fsequence == num4) {
obj = 2;
}
if (_parent._parent.fsequence == (num4 + 1)) {
obj = 3;
}
if (_parent._parent.fsequence == (num4 + 2)) {
obj = 4;
}
if (_parent._parent.fsequence == (num4 + 3)) {
obj = 5;
}
if (_parent._parent.fsequence == (num4 + 4)) {
obj = 6;
}
if (_parent._parent.fsequence == (num4 + 5)) {
obj = 7;
}
if (_parent._parent.fsequence == (num4 + 6)) {
obj = 8;
}
if (_parent._parent.fsequence == (num4 + 7)) {
obj = 9;
}
if (_parent._parent.fsequence == (num4 + 8)) {
obj = 10;
}
_parent.gotoAndStop(obj);
}
Instance of Symbol 314 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
}
onClipEvent (enterFrame) {
if (_parent._parent._parent.pumpkin.health == 3) {
obj = 100;
_alpha = obj;
}
if (_parent._parent._parent.pumpkin.health < 3) {
if (obj > 0) {
obj = obj - 5;
}
_alpha = obj;
}
}
Instance of Symbol 316 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
}
onClipEvent (enterFrame) {
if (_parent._parent._parent.pumpkin.health >= 2) {
obj = 100;
_alpha = obj;
}
if (_parent._parent._parent.pumpkin.health < 2) {
if (obj > 0) {
obj = obj - 5;
}
_alpha = obj;
}
}
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
}
onClipEvent (enterFrame) {
if (_parent._parent._parent.pumpkin.health >= 1) {
obj = 100;
_alpha = obj;
}
if (_parent._parent._parent.pumpkin.health < 1) {
if (obj > 0) {
obj = obj - 5;
}
_alpha = obj;
if (obj <= 0) {
_root.obj.lives--;
_parent._parent._parent.pumpkin.health = 3;
}
}
}
Instance of Symbol 312 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
mySound = new Sound();
mySound.attachSound("squeak");
squeakready = 0;
ready = false;
}
onClipEvent (enterFrame) {
squeakready--;
if (_parent._parent.pumpkin._state == _parent._parent.pumpkin.pain) {
if (squeakready <= 0) {
mySound.start(0, 0);
squeakready = 25;
}
}
}
Instance of Symbol 321 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
textobj.text = " x " + _root.obj.lives;
}
Instance of Symbol 323 MovieClip "score" in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
jolt = 0;
}
onClipEvent (enterFrame) {
textobj.text = "Score:" + _root.obj.score;
if (jolt > 0) {
jolt--;
}
_xscale = (100 + (jolt * 50));
_yscale = (100 + (jolt * 50));
}
Instance of Symbol 229 MovieClip "door" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 266 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 0;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
_root._quality = "LOW";
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 480) {
if ((fsequence == 20) || (fsequence == 50)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 327 MovieClip in Symbol 328 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._currentframe == 5) {
textobj.text = "Level 1";
}
if (_root._currentframe == 6) {
textobj.text = "Level 2";
}
if (_root._currentframe == 7) {
textobj.text = "Level 3";
}
if (_root._currentframe == 9) {
textobj.text = "Level 4";
}
if (_root._currentframe == 10) {
textobj.text = "Level 5";
}
if (_root._currentframe == 11) {
textobj.text = "Level 6";
}
if (_root._currentframe == 12) {
textobj.text = "Level 7";
}
if (_root._currentframe == 13) {
textobj.text = "Level 8";
}
if (_root._currentframe == 16) {
textobj.text = "Level 9";
}
if (_root._currentframe == 17) {
textobj.text = "Level 10";
}
if (_root._currentframe == 18) {
textobj.text = "Level 11";
}
if (_root._currentframe == 19) {
textobj.text = "Level 12";
}
if (_root._currentframe == 20) {
textobj.text = "Level 13";
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 266 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 364 MovieClip "grass" in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 242 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 480) {
if ((fsequence == 20) || (fsequence == 50)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 2);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 266 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 362 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 268 MovieClip "xoints" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 480) {
if (((fsequence == 20) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 373 MovieClip in Symbol 374 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_parent.mousey)) {
if (_parent._parent._currentframe == 15) {
_parent._parent.gotoAndPlay(16);
}
}
}
Instance of Symbol 28 MovieClip "mousey" in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 229 MovieClip "door" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 266 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 266 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 0;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if (((fsequence == 20) || (fsequence == 35)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 242 MovieClip "grndplat5" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip "grndplat6" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty55" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform0" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform01" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "0011" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp02" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp04" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp03" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp06" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp08" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "plplatform7657" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatf" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatfo" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "i" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "f" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "g" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "h" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "j" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "k" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "l" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 242 MovieClip "grndplat5" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip "grndplat6" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty55" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform0" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "plplatform7657" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ad" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ae" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "af" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ag" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ab" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "aa" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ah" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ai" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 0;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 3);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 242 MovieClip "grndplat2" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplat5" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip "grndplat3" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplat4" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplat6" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform01" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp02" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp04" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp03" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp06" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp07" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp08" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platformy" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "plplatform7657" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "a" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "b" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "c" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "f" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "2" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "sds" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "sds00" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "sds00" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "4" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "6" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "8" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "10" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "11" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "12" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 28 MovieClip "mousey" in Symbol 398 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 397 MovieClip in Symbol 398 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_parent.mousey)) {
_root.gotoAndStop(4);
}
}
Instance of Symbol 407 MovieClip in Symbol 410 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mousey)) {
gotoAndStop (2);
}
if (!this.hitTest(_parent.mousey)) {
gotoAndStop (1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent.mousey)) {
getURL ("http://armorgames.com", "_blank");
}
}
Instance of Symbol 409 MovieClip in Symbol 410 MovieClip Frame 1
onClipEvent (load) {
obj = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (obj < 100) {
obj = obj + 2;
_alpha = obj;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent.mousey)) {
_root.gotoAndStop(4);
}
}
Instance of Symbol 28 MovieClip "mousey" in Symbol 410 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent._xmouse;
Mouse.hide();
_y = _parent._ymouse;
}
Instance of Symbol 229 MovieClip "door" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 242 MovieClip "grndplat2" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplat5" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip "grndplat6" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty55" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform0" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform01" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "0011" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp02" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp04" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp03" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "plplatform7657" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ad" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ae" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "af" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ag" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ab" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "aa" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ah" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ai" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "222" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "33" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "44" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "55" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "11" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "sadfs" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "434" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "66" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 362 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 266 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 242 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplat5" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip "grndplat3" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplat6" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty55" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform0" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform01" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "0011" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp02" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp04" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp03" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp06" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp05" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp07" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "plplatform7657" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatf" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "a" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "b" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "i" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "f" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "g" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "h" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "j" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "k" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "l" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "1" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "2" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "4" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "5" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "6" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "7" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "8" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "10" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "11" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "12" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "13" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "14" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "15" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "16" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "17" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplatsf" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplsdf" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 242 MovieClip "grndplat2" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplat5" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip "grndplat6" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plattt" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty55" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform0" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform01" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "0011" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp02" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp04" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp03" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp05" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "plplatform7657" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pl" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pl3" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pl4" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ad" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ae" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "af" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ag" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ab" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "aa" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ah" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "ai" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "222" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "33" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "44" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "55" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "11" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "sadfs" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "434" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "66" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
_root.gotoAndStop(_root._currentframe + 1);
gotoAndStop (33);
}
}
Instance of Symbol 362 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
warp = 3;
hit = false;
startx = _parent._x;
starty = _parent._y;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
falling = 0;
_yspeedchange = -15;
_state = 0;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + 5;
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - 5;
pumpkin.gotoAndStop(pumpkin._currentframe + 1);
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - 5;
_x = (_x + 5);
_parent.lifepanel._x = _parent.lifepanel._x + 5;
_parent.fenceobj._x = _parent.fenceobj._x + 3;
_parent.bg._x = _parent.bg._x + 3.5;
_parent.bgbg._x = _parent.bgbg._x + 4.25;
_parent.sky._x = _parent.sky._x + 5;
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + 5;
pumpkin.gotoAndStop(pumpkin._currentframe - 1);
_x = (_x - 5);
_parent.lifepanel._x = _parent.lifepanel._x - 5;
_parent.fenceobj._x = _parent.fenceobj._x - 3;
_parent.bg._x = _parent.bg._x - 3.5;
_parent.bgbg._x = _parent.bgbg._x - 4.25;
_parent.sky._x = _parent.sky._x - 5;
}
}
if (Key.isDown(38)) {
if (contact == true) {
falling = 0;
grav = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if (contact == false) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
Instance of Symbol 242 MovieClip "grndplat2" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip "grndplat3" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plattt" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "platty55" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform0" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatform01" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "0011" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp02" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp01" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp03" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp05" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "pp07" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "plplatform7657" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatf" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "plplatfo" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "a" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "b" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "i" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "f" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "g" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "h" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "m" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "j" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "k" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "l" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "x" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 268 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
obj = 100;
growing = false;
init = true;
}
onClipEvent (enterFrame) {
if (init == true) {
if (growing == true) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
obj = obj - 5;
_alpha = obj;
if (obj <= 5) {
init = false;
_x = 5000;
_root.obj.score = _root.obj.score + 15;
}
}
if (this.hitTest(_parent.pumpkin)) {
growing = true;
}
}
}
Instance of Symbol 242 MovieClip "10" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "11" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "12" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "13" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "14" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "15" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "16" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "17" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "gsdfsd" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip "grndplsdf" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 0;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 0;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 0;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if (fsequence == 20) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 454 MovieClip "vamp" in Symbol 455 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
_visible = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 29) {
gotoAndStop (29);
}
}
Instance of Symbol 423 MovieClip "lightning" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 238 MovieClip "pumpkin" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
grav = 15;
_yspeed = -10;
pumpkin.gotoAndStop(1);
normal = 1;
pain = 2;
changer = 0;
chocolate = false;
warp = 3;
falling = 0;
cinemastart = 0;
cinema = false;
cinemaframe = 0;
starty = _parent._y;
startx = _parent._x;
hit = false;
score = 0;
weaken = false;
contact2 = false;
_xspeed = 5;
_yspeedchange = -15;
num = 0;
levelbonus = 1;
cinemaalpha = 0;
_state = 0;
obj2 = 100;
contact = false;
lives = 3;
health = 3;
_state = normal;
conditionone = false;
conditiontwo = false;
conditionthree = false;
jumping = false;
}
onClipEvent (enterFrame) {
if (_root.obj.lives <= 0) {
_root.gotoAndStop(15);
}
if (_root._currentframe == 20) {
levelbonus = 2;
}
cinemastart++;
if (cinemastart <= 20) {
_parent._parent.textobj._visible = false;
}
if ((cinemastart >= 20) && (cinemastart <= 40)) {
_parent._parent.textobj._alpha = _parent._parent.textobj._alpha + 5;
}
if (cinemastart == 20) {
_parent._parent.textobj._visible = true;
}
if ((cinemastart < 140) && (cinemastart > 120)) {
_parent._parent.textobj._alpha = _parent._parent.textobj._alpha - 5;
}
if (cinemastart >= 100) {
cinemaframe++;
}
if (cinemastart == 20) {
cinema = true;
}
if (cinemastart == 60) {
mySound = new Sound();
mySound.attachSound("storm");
mySound.start(0, 0);
}
mySound.setPan(cinemastart - 160);
if (cinemaframe == 61) {
_parent.sky.bg._alpha = 0;
_parent.lightning._visible = true;
_parent.sky.gotoAndStop(2);
}
if (cinemaframe == 62) {
_parent.lightning._alpha = 50;
}
if (cinemaframe == 63) {
_parent.lightning._visible = false;
}
if ((cinemaframe >= 68) && (cinemaframe < 88)) {
_parent.lightning._visible = true;
obj2 = obj2 - 5;
_parent.lightning._alpha = obj2;
}
if (cinemaframe == 68) {
_parent.lightning._visible = false;
}
if (cinemaframe == 118) {
_parent.vamp.vamp.gotoAndPlay(2);
_parent.vamp.vamp._visible = true;
}
if (cinemaframe == 180) {
cinema = false;
}
if (cinemaframe >= 30) {
if (cinemaalpha < 40) {
cinemaalpha = cinemaalpha + 4;
}
_parent.sky.bg._alpha = cinemaalpha;
}
if (cinema == false) {
if (Key.isDown(39)) {
if (this.sidecontact == true) {
_parent._x = _parent._x + (5 * levelbonus);
_x = (_x - (5 * levelbonus));
_parent.lifepanel._x = _parent.lifepanel._x - (5 * levelbonus);
_parent.fenceobj._x = _parent.fenceobj._x - (3 * levelbonus);
_parent.bg._x = _parent.bg._x - (3.5 * levelbonus);
_parent.bgbg._x = _parent.bgbg._x - (4.25 * levelbonus);
_parent.sky._x = _parent.sky._x - (5 * levelbonus);
}
if (this.sidecontact == false) {
if (pumpkin._currentframe == 37) {
pumpkin.gotoAndStop(1);
}
_parent._x = _parent._x - (5 * levelbonus);
pumpkin.gotoAndStop(pumpkin._currentframe + (1 * levelbonus));
_x = (_x + (5 * levelbonus));
_parent.lifepanel._x = _parent.lifepanel._x + (5 * levelbonus);
_parent.fenceobj._x = _parent.fenceobj._x + (3 * levelbonus);
_parent.bg._x = _parent.bg._x + (3.5 * levelbonus);
_parent.bgbg._x = _parent.bgbg._x + (4.25 * levelbonus);
_parent.sky._x = _parent.sky._x + (5 * levelbonus);
}
}
if (Key.isDown(37)) {
if (this.sidecontact2 == true) {
_parent._x = _parent._x - (5 * levelbonus);
_x = (_x + (5 * levelbonus));
_parent.lifepanel._x = _parent.lifepanel._x + (5 * levelbonus);
_parent.fenceobj._x = _parent.fenceobj._x + (3 * levelbonus);
_parent.bg._x = _parent.bg._x + (3.5 * levelbonus);
_parent.bgbg._x = _parent.bgbg._x + (4.25 * levelbonus);
_parent.sky._x = _parent.sky._x + (5 * levelbonus);
}
if (this.sidecontact2 == false) {
if (pumpkin._currentframe <= 2) {
pumpkin.gotoAndStop(36);
}
_parent._x = _parent._x + (5 * levelbonus);
pumpkin.gotoAndStop(pumpkin._currentframe - (1 * levelbonus));
_x = (_x - (5 * levelbonus));
_parent.lifepanel._x = _parent.lifepanel._x - (5 * levelbonus);
_parent.fenceobj._x = _parent.fenceobj._x - (3 * levelbonus);
_parent.bg._x = _parent.bg._x - (3.5 * levelbonus);
_parent.bgbg._x = _parent.bgbg._x - (4.25 * levelbonus);
_parent.sky._x = _parent.sky._x - (5 * levelbonus);
}
}
if (Key.isDown(38)) {
if (contact == true) {
grav = 0;
falling = 0;
jumping = true;
_parent._y = _parent._y - (_yspeed + grav);
_y = (_y + (_yspeed + grav));
_parent.lifepanel._y = _parent.lifepanel._y + (_yspeed + grav);
_parent.fenceobj._y = _parent.fenceobj._y + (_yspeed + grav);
_parent.bg._y = _parent.bg._y + (_yspeed + grav);
_parent.bgbg._y = _parent.bgbg._y + (_yspeed + grav);
_parent.sky._y = _parent.sky._y + (_yspeed + grav);
}
}
if ((contact == false) || (chocolate == true)) {
falling++;
if (falling >= 140) {
_parent.bg._x = _parent.bg._x - (((startx - _parent._x) * 3.5) / 5);
_parent.bg_y = _parent.bg_y - (starty - _parent._y);
_parent.bgbg._x = _parent.bgbg._x - (((startx - _parent._x) * 4.25) / 5);
_parent.bgbg._y = _parent.bgbg._y - (starty - _parent._y);
_parent.sky._x = _parent.sky._x - (startx - _parent._x);
_parent.sky._y = _parent.sky._y - (starty - _parent._y);
_parent.fenceobj._x = _parent.fenceobj._x - (((startx - _parent._x) * 3) / 5);
_parent.fenceobj._y = _parent.fenceobj._y - (starty - _parent._y);
_y = (_y - (starty - _parent._y));
_x = (_x - (startx - _parent._x));
_parent.lifepanel._x = _parent.lifepanel._x - (startx - _parent._x);
_parent.lifepanel._y = _parent.lifepanel._y - (starty - _parent._y);
_parent.vamp._x = -240;
_parent._y = _parent._y + (starty - _parent._y);
_parent._x = _parent._x + (startx - _parent._x);
_root.obj.lives--;
health = 3;
falling = 0;
chocolate = false;
}
if (grav < 20) {
grav = grav + 0.5;
}
if ((jumping == true) && (contact2 == false)) {
_parent._y = _parent._y - _yspeed;
_y = (_y + _yspeed);
_parent.lifepanel._y = _parent.lifepanel._y + _yspeed;
_parent.fenceobj._y = _parent.fenceobj._y + _yspeed;
_parent.bg._y = _parent.bg._y + _yspeed;
_parent.bgbg._y = _parent.bgbg._y + _yspeed;
_parent.sky._y = _parent.sky._y + _yspeed;
}
_parent._y = _parent._y - grav;
_y = (_y + grav);
_parent.lifepanel._y = _parent.lifepanel._y + grav;
_parent.fenceobj._y = _parent.fenceobj._y + grav;
_parent.bg._y = _parent.bg._y + grav;
_parent.bgbg._y = _parent.bgbg._y + grav;
_parent.sky._y = _parent.sky._y + grav;
}
if (contact == true) {
grav = 0;
}
contact = false;
sidecontact = false;
sidecontact2 = false;
}
}
Instance of Symbol 266 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 455 MovieClip "vamp" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
obj = 400;
}
onClipEvent (enterFrame) {
if (vamp.vamp.vamp._currentframe == 103) {
duplicateMovieClip (_parent.bat, "bat" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["bat" + _parent.pumpkin.num]._x = _x - 550;
_parent["bat" + _parent.pumpkin.num]._y = 100;
_parent.pumpkin.num++;
}
if (vamp.vamp.vamp._currentframe == 123) {
duplicateMovieClip (_parent.bat, "bat" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["bat" + _parent.pumpkin.num]._x = _x - 550;
_parent["bat" + _parent.pumpkin.num]._y = 30;
_parent.pumpkin.num++;
}
if (_parent.pumpkin.cinema == false) {
_x = (_x + 8.5);
}
if (this.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin.cinemaframe >= 200) {
startseq = true;
}
}
if (startseq == true) {
obj = obj - 4;
if (_parent._alpha > 0) {
_parent._alpha = obj - 300;
}
if (obj == 240) {
mySound = new Sound();
mySound.attachSound("demonlaugh");
mySound.start(0, 0);
}
if (obj <= -60) {
_parent._alpha = 100;
obj = 400;
startseq = false;
_parent.pumpkin.chocolate = true;
_parent.pumpkin.falling = 200;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 362 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 362 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 362 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
damagestate = 0;
}
onClipEvent (enterFrame) {
if (damagestate > 0) {
damagestate--;
}
if (damagestate == 1) {
if (this.hand.hitTest(_parent.pumpkin)) {
damagestate++;
}
if (!this.hand.hitTest(_parent.pumpkin)) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
}
if ((_currentframe > 10) && (_currentframe < 40)) {
if (this.hand.hitTest(_parent.pumpkin)) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
damagestate = 10;
_parent.pumpkin._state = _parent.pumpkin.pain;
}
}
}
}
Instance of Symbol 229 MovieClip "door" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
hit = false;
obj = 0;
}
onClipEvent (enterFrame) {
if (hit == false) {
gotoAndStop (1);
if (this.warp.hitTest(_parent.pumpkin)) {
hit = true;
gotoAndPlay (1);
}
}
if (hit == true) {
obj = obj + 2;
_parent._parent.block._alpha = obj;
}
if (_currentframe == 24) {
_parent.pumpkin._visible = false;
}
if (_currentframe == 33) {
gotoAndStop (33);
}
if (obj >= 400) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 266 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
steps = 80;
stepsamnt = 0;
_direction = 1;
damagestate = 0;
capable = true;
gotoAndStop (1);
hitting = true;
}
onClipEvent (enterFrame) {
if (capable == false) {
if (_currentframe == 15) {
_visible = false;
_x = 5000;
}
}
if (damagestate > 0) {
damagestate--;
}
if (this.hitTest(_parent.pumpkin)) {
if (this._y > _parent.pumpkin._y) {
if (_currentframe == 1) {
capable = false;
gotoAndPlay (1);
_parent.lifepanel.score.jolt = 5;
_root.obj.score = _root.obj.score + 5;
}
}
if (capable == true) {
if (_parent.pumpkin._state != _parent.pumpkin.pain) {
_parent.pumpkin.health--;
}
if (this._y < _parent.pumpkin._y) {
hitting = true;
}
_parent.pumpkin._state = _parent.pumpkin.pain;
if (_parent.pumpkin._x < _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = -1;
damagestate = 10;
}
if (_parent.pumpkin._x >= _x) {
_parent.pumpkin.bounceamount = 10;
_parent.pumpkin.bouncedirection = 1;
damagestate = 10;
}
}
}
if (!this.hitTest(_parent.pumpkin)) {
if (damagestate == 1) {
_parent.pumpkin._state = _parent.pumpkin.normal;
}
if (hitting == true) {
hitting = false;
}
}
if (_direction == 1) {
_xscale = -70;
_x = (_x + 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 0;
}
}
if (_direction == 0) {
_xscale = 70;
_x = (_x - 4);
stepsamnt++;
if (stepsamnt == steps) {
stepsamnt = 0;
_direction = 1;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 472 MovieClip "bat" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
hitting = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 19) {
_parent.pumpkin.health--;
_parent.pumpkin._state = _parent.pumpkin.normal;
removeMovieClip(this);
}
if (hitting == false) {
if (this.hitTest(_parent.pumpkin)) {
hitting = true;
_parent.pumpkin._state = _parent.pumpkin.pain;
gotoAndPlay (11);
}
if (_currentframe >= 11) {
gotoAndPlay (4);
}
}
_x = (_x + 12);
}
Instance of Symbol 307 MovieClip "blaster" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
byebye = false;
bullet.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.pumpkin)) {
if (bullet._currentframe == 1) {
byebye = true;
bullet.gotoAndPlay(1);
_parent.pumpkin.health--;
}
}
if (bullet._currentframe == 13) {
removeMovieClip(this);
_visible = false;
_x = 5000;
}
if (byebye == false) {
_x = (_x + (Math.cos((Math.PI/180) * _rotation) * 7));
_y = (_y + (Math.sin((Math.PI/180) * _rotation) * 7));
}
}
Instance of Symbol 242 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
contacted = false;
fallsequence = 0;
movement = 0;
obj = 100;
basey = _y;
}
onClipEvent (enterFrame) {
if (contacted == true) {
if (fallsequence > 0) {
movement++;
if (movement == 1) {
_y = (_y + 2);
}
if (movement == 2) {
_y = (_y + 1);
}
if (movement == 3) {
_y = (_y - 1);
}
if (movement == 4) {
_y = (_y - 2);
}
if (movement == 5) {
_y = (_y - 1);
}
if (movement >= 6) {
_y = (_y + 2);
movement = 0;
}
}
fallsequence++;
if (fallsequence > 20) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 30) {
obj = obj - 2;
_alpha = obj;
_y = (_y + 2);
}
if (fallsequence > 40) {
_y = (_y + 2);
}
if (fallsequence > 50) {
_y = (_y + 2);
}
if (fallsequence > 60) {
_y = (_y + 2);
}
if (fallsequence == 120) {
fallsequence = 0;
_y = basey;
obj = 100;
_alpha = 100;
contacted = false;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
function disttoobj(obj1, obj2) {
return(Math.sqrt(((obj2._x - obj1._x) * (obj2._x - obj1._x)) + ((obj2._y - obj1._y) * (obj2._y - obj1._y))));
}
function FigureOutDirection(xx, yy, otherobjx, otherobjy) {
if ((xx < otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795));
}
if ((xx < otherobjx) && (yy > otherobjy)) {
return(Math.round((Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 360));
}
if ((xx == otherobjx) && (yy < otherobjy)) {
return(90);
}
if ((xx == otherobjx) && (yy > otherobjy)) {
return(270);
}
if ((xx > otherobjx) && (yy == otherobjy)) {
return(180);
}
if ((xx <= otherobjx) && (yy == otherobjy)) {
return(0);
}
if ((xx > otherobjx) && (yy < otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
if ((xx > otherobjx) && (yy > otherobjy)) {
return(Math.round(Math.atan((yy - otherobjy) / (xx - otherobjx)) * 57.2957795) + 180);
}
}
life = 0;
fsequence = 0;
_parent.pumpkin.num = 0;
}
onClipEvent (enterFrame) {
life++;
if (life == 200) {
removeMovieClip(this);
}
fsequence++;
if (fsequence == 140) {
fsequence = 0;
}
blob._rotation = FigureOutDirection(_x, _y, _parent.pumpkin._x, _parent.pumpkin._y);
if (disttoobj(this, _parent.pumpkin) <= 300) {
if ((((fsequence == 20) || (fsequence == 35)) || (fsequence == 50)) || (fsequence == 65)) {
duplicateMovieClip (_parent.blaster, "blaster" + _parent.pumpkin.num, _parent.pumpkin.num);
_parent["blaster" + _parent.pumpkin.num]._x = _x + (Math.cos((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._y = _y + (Math.sin((Math.PI/180) * blob._rotation) * 70);
_parent["blaster" + _parent.pumpkin.num]._rotation = blob._rotation;
_parent["blaster" + _parent.pumpkin.num].swapDepths(_parent.lifepanel);
_parent.pumpkin.num++;
}
}
}
Instance of Symbol 473 MovieClip "obj" in Symbol 482 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 476 MovieClip "block" in Symbol 482 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 481 MovieClip "textobj" in Symbol 482 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_parent.block._alpha > 50) {
_alpha = 100;
gotoAndStop (2);
}
}
Instance of Symbol 487 MovieClip in Symbol 494 MovieClip Frame 1
onClipEvent (load) {
animfrm = 0;
gotoAndStop (1);
_visible = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 5) {
gotoAndStop (5);
}
animfrm++;
if (animfrm >= 80) {
if (_parent.score._alpha < 100) {
_parent.score._alpha = _parent.score._alpha + 5;
}
}
if (animfrm == 40) {
if (_currentframe == 1) {
_visible = true;
gotoAndPlay (1);
}
}
}
Instance of Symbol 493 MovieClip "score" in Symbol 494 MovieClip Frame 1
onClipEvent (load) {
idealscore = 390;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.obj.score < ((idealscore * 5) / 10)) {
gotoAndStop (6);
}
if (_root.obj.score >= ((idealscore * 5) / 10)) {
gotoAndStop (5);
}
if (_root.obj.score >= ((idealscore * 6) / 10)) {
gotoAndStop (4);
}
if (_root.obj.score >= ((idealscore * 7) / 10)) {
gotoAndStop (3);
}
if (_root.obj.score >= ((idealscore * 8) / 10)) {
gotoAndStop (2);
}
if (_root.obj.score >= ((idealscore * 9) / 10)) {
gotoAndStop (1);
}
}