Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 211
_parent.CHERUB.ACTIVE = 1;
_parent.CHERUB.RECOVERING = 1;
_parent.CHERUB.gotoAndPlay(3);
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 2 MovieClip "CHERUB_HIT" in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.CHERUB._x;
_y = _parent.CHERUB._y;
}
Instance of Symbol 2 MovieClip "IMP_HIT" in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.IMP._x;
_y = _parent.IMP._y;
}
Instance of Symbol 2 MovieClip "CHERUB_SWEET_HIT" in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.CHERUB._x;
_y = _parent.CHERUB._y;
}
Instance of Symbol 2 MovieClip "IMP_SWEET_HIT" in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.IMP._x;
_y = _parent.IMP._y;
}
Instance of Symbol 10 MovieClip in Symbol 109 MovieClip Frame 1
on (release) {
getURL ("http://bigfingers.ca", _blank);
}
Instance of Symbol 12 MovieClip in Symbol 109 MovieClip Frame 1
on (release) {
getURL ("http://www.furaffinity.net/user/captaingerbear/", _blank);
}
Instance of Symbol 92 MovieClip "IMP" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
speed = 2;
tick = 0.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 500;
maxWidth = 1000;
changeGrowth = 0;
growing = -1;
masterAngle = 1;
}
onClipEvent (enterFrame) {
if (_parent.CHERUB.ACTIVE == 1) {
if (speed > 2) {
speed = speed - 0.04;
tick = tick - 0.02;
}
if (speed < 2) {
speed = 2;
}
if (tick < 0) {
tick = 0;
}
if (tick > 3) {
tick = 3;
}
prerun = Math.abs(this._x - _parent.CHERUB._x);
prerise = Math.abs(this._y - _parent.CHERUB._y);
angleToCherub = Math.atan(prerise / prerun);
masterAngle = angleToCherub / (Math.PI/180);
if ((_parent.CHERUB._x > _x) && (_parent.CHERUB._y < _y)) {
}
if ((_parent.CHERUB._x > _x) && (_parent.CHERUB._y > _y)) {
masterAngle = 360 - masterAngle;
}
if ((_parent.CHERUB._x < _x) && (_parent.CHERUB._y < _y)) {
masterAngle = 90 + masterAngle;
}
if ((_parent.CHERUB._x < _x) && (_parent.CHERUB._y > _y)) {
masterAngle = 180 + masterAngle;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
if ((run > 0) && (this._xscale > 0)) {
this._xscale = this._xscale * -1;
}
if ((run < 0) && (this._xscale < 0)) {
this._xscale = this._xscale * -1;
}
}
}
Instance of Symbol 108 MovieClip "CHERUB" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
speed = 2;
tick = 0.5;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 500;
maxWidth = 960;
changeGrowth = 0;
growing = -1;
this.gotoAndStop(1);
ACTIVE = 1;
RECOVERING = 0;
RECOVER_TIMER = 120;
}
onClipEvent (enterFrame) {
if (ACTIVE == 1) {
_alpha = 100;
if (RECOVERING == 1) {
RECOVER_TIMER--;
} else if (_parent.CHERUB_SWEET_HIT.hitTest(_parent.IMP_SWEET_HIT)) {
ACTIVE = 0;
_alpha = 0;
_parent.IMP.gotoAndPlay(2);
}
if (RECOVER_TIMER == 0) {
RECOVERING = 0;
RECOVER_TIMER = 120;
}
if (_parent.CHERUB_HIT.hitTest(_parent.IMP_HIT)) {
masterAngle = _parent.IMP.masterAngle;
gotoAndPlay (3);
speed = 5;
}
if (speed > 2) {
speed = speed - 0.04;
}
if (speed < 2) {
speed = 2;
}
if (tick < 0) {
tick = 0;
}
if (tick > 3) {
tick = 3;
}
changeDirection = random(60);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
if ((run > 0) && (this._xscale > 0)) {
this._xscale = this._xscale * -1;
}
if ((run < 0) && (this._xscale < 0)) {
this._xscale = this._xscale * -1;
}
if ((_x < 60) && (masterAngle > 180)) {
masterAngle = 360 - (masterAngle - 180);
while (_x < 60) {
_x = (_x+1);
}
}
if ((_x < 60) && (masterAngle < 180)) {
masterAngle = 90 - (masterAngle - 90);
while (_x < 60) {
_x = (_x+1);
}
}
if ((_x > maxWidth) && (masterAngle < 90)) {
masterAngle = 180 - masterAngle;
while (_x > maxWidth) {
_x = (_x-1);
}
}
if ((_x > maxWidth) && (masterAngle > 270)) {
masterAngle = (270 - masterAngle) + 270;
while (_x > maxWidth) {
_x = (_x-1);
}
}
if ((_y > maxHeight) && (masterAngle < 270)) {
masterAngle = (270 - masterAngle) + 90;
while (_y > maxHeight) {
_y = (_y-1);
}
}
if ((_y > maxHeight) && (masterAngle > 270)) {
masterAngle = 90 - (masterAngle - 270);
while (_y > maxHeight) {
_y = (_y-1);
}
}
if ((_y < 60) && (masterAngle < 90)) {
masterAngle = 270 + (90 - masterAngle);
while (_y < 60) {
_y = (_y+1);
}
}
if ((_y < 60) && (masterAngle > 90)) {
masterAngle = 270 - (masterAngle - 90);
while (_y < 60) {
_y = (_y+1);
}
}
}
if (ACTIVE == 0) {
_alpha = 0;
}
}