Frame 2
percent = Math.round((_framesloaded / _totalframes) * 100);
ifFrameLoaded (79) {
gotoAndStop (4);
}
Frame 3
gotoAndPlay (1);
Instance of Symbol 9 MovieClip "chick" in Frame 4
onClipEvent (load) {
rot = random(40) - 20;
fall = random(30) + 5;
}
onClipEvent (enterFrame) {
_y = (_y + fall);
_rotation = (_rotation + rot);
if ((_y - _root.lol._y) > 400) {
removeMovieClip(this);
}
}
Instance of Symbol 11 MovieClip "fat" in Frame 4
onClipEvent (load) {
rot = random(40) - 20;
fall = random(30) + 5;
}
onClipEvent (enterFrame) {
_y = (_y + fall);
_rotation = (_rotation + rot);
if ((_y - _root.lol._y) > 400) {
removeMovieClip(this);
}
}
Instance of Symbol 13 MovieClip "skeleton" in Frame 4
onClipEvent (load) {
rot = random(40) - 20;
fall = random(30) + 5;
}
onClipEvent (enterFrame) {
_y = (_y + fall);
_rotation = (_rotation + rot);
if ((_y - _root.lol._y) > 400) {
removeMovieClip(this);
}
}
Instance of Symbol 15 MovieClip "shop" in Frame 4
onClipEvent (load) {
rot = random(40) - 20;
fall = random(30) + 5;
}
onClipEvent (enterFrame) {
_y = (_y + fall);
_rotation = (_rotation + rot);
if ((_y - _root.lol._y) > 400) {
removeMovieClip(this);
}
}
Frame 5
stop();
counter = 1;
var music = new Sound();
music.attachSound("wtf");
cisum.stop();
music.start(0, 1000);
onEnterFrame = function () {
if (_root.lol._y >= -5000) {
_root._y = _root._y + Math.round((((240 - _root.lol._y) - _root._y) + 100) / 20);
num = random(100);
if (num == 1) {
_root.chick.duplicateMovieClip("chick" + _root.counter, _root.counter);
_root["chick" + _root.counter]._y = _root.lol._y - 400;
_root["chick" + _root.counter]._x = random(640);
counter++;
}
if (num == 2) {
_root.shop.duplicateMovieClip("shop" + _root.counter, _root.counter);
_root["shop" + _root.counter]._y = _root.lol._y - 400;
_root["shop" + _root.counter]._x = random(640);
counter++;
}
if (num == 3) {
_root.fat.duplicateMovieClip("fat" + _root.counter, _root.counter);
_root["fat" + _root.counter]._y = _root.lol._y - 400;
_root["fat" + _root.counter]._x = random(640);
counter++;
}
if (num == 4) {
_root.skeleton.duplicateMovieClip("skeleton" + _root.counter, _root.counter);
_root["skeleton" + _root.counter]._y = _root.lol._y - 400;
_root["skeleton" + _root.counter]._x = random(640);
counter++;
}
} else {
_root._y = 0;
gotoAndPlay (6);
delete onEnterFrame;
}
};
Instance of Symbol 22 MovieClip "lol" in Frame 5
onClipEvent (load) {
maxfall = 15;
gravity = 1.5;
jump = -15;
xmove = 0;
ymove = 0;
air = false;
airhit = false;
position = 0;
i = 0;
underGround = true;
hitGround = false;
wall = false;
speed = 10;
allowjump = 1;
rot = 0;
gohigh = 1;
}
onClipEvent (enterFrame) {
if (_y >= -4000) {
_y = (_y + ymove);
ymove = ymove + gravity;
if (ymove > maxfall) {
ymove = maxfall;
}
if (_x > 600) {
_x = 600;
} else if (_x <= 40) {
_x = 40;
}
if (Key.isDown(39)) {
_x = (_x + speed);
if (_xscale < 0) {
_xscale = (-_xscale);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
gotoAndStop ("walk");
}
} else if (Key.isDown(37)) {
_x = (_x - speed);
if (_xscale > 0) {
_xscale = (-_xscale);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
gotoAndStop ("walk");
}
} else {
gotoAndStop ("stand");
}
if (_root.ground.hitTest(this._x, this._y, true) && (ymove >= 0)) {
i = 0;
while (_root.ground.hitTest(this._x, this._y + i, true)) {
i--;
}
_y = (_y + (++i));
ymove = 0;
hitGround = true;
air = false;
if (Key.isDown(32)) {
_root.wtf.start();
jump = true;
ymove = -20;
}
} else {
air = true;
}
} else if (_y >= -6000) {
if (Key.isDown(39)) {
_x = (_x + speed);
if (_xscale < 0) {
_xscale = (-_xscale);
}
gotoAndStop ("walk");
} else if (Key.isDown(37)) {
_x = (_x - speed);
if (_xscale > 0) {
_xscale = (-_xscale);
}
gotoAndStop ("walk");
} else {
gotoAndStop ("stand");
}
_rotation = (_rotation + rot);
_y = (_y - gohigh);
rot++;
gohigh = gohigh + 0.5;
}
}
Frame 6
_y = 0;
var cisum = new Sound();
cisum.attachSound("wtfhurrr");
music.stop();
cisum.start(0, 1000);
onEnterFrame = function () {
_y = 0;
};
Frame 7
_y = 0;
counter = 1;
speed = 6;
onEnterFrame = function () {
if (speed < 50) {
num = random(50 - speed);
} else {
num = random(3);
}
if (num == 1) {
_root.stars.star.duplicateMovieClip("star" + _root.counter, _root.counter);
_root.stars["star" + _root.counter]._y = -50;
_root.stars["star" + _root.counter]._x = random(640);
counter++;
}
if (num == 2) {
_root.stars.star1.duplicateMovieClip("star1" + _root.counter, _root.counter);
_root.stars["star1" + _root.counter]._y = -50;
_root.stars["star1" + _root.counter]._x = random(640);
counter++;
}
if (num == 0) {
_root.stars.star2.duplicateMovieClip("star2" + _root.counter, _root.counter);
_root.stars["star2" + _root.counter]._y = -50;
_root.stars["star2" + _root.counter]._x = random(640);
counter++;
}
if (speed < 200) {
speed = speed + 0.1;
}
old = random(200);
if (old == 1) {
_root.stars.old.duplicateMovieClip("old" + _root.counter, _root.counter);
_root.stars["old" + _root.counter]._y = random(400) + 40;
_root.stars["old" + _root.counter]._x = 700;
counter++;
}
};
Frame 79
stop();
Instance of Symbol 41 MovieClip "leg2" in Frame 79
onClipEvent (load) {
xmotion = -3;
ymotion = -4;
mass = 10;
xg1 = 0;
yg1 = 0;
rot = 5;
}
onClipEvent (enterFrame) {
xdist = _root.body._x - _x;
ydist = _root.body._y - _y;
distance = Math.sqrt(Math.pow(xdist, 2) + Math.pow(ydist, 2));
if (distance < 10) {
distance = 10;
}
gravity = (30 / (distance ^ 2)) * 5;
xg1 = gravity * (xdist / distance);
yg1 = gravity * (ydist / distance);
setProperty(this, _y , this._y + ymotion);
setProperty(this, _x , this._x + xmotion);
xmotion = xmotion + xg1;
ymotion = ymotion + yg1;
if ((_x > 620) && (xmotion > 0)) {
_x = 620;
xmotion = (-xmotion) / 1.2;
rot = -ymotion;
}
if ((_x < 20) && (xmotion < 0)) {
_x = 20;
xmotion = (-xmotion) / 1.2;
rot = ymotion;
}
if ((_y > 440) && (ymotion > 0)) {
_y = 440;
ymotion = (-ymotion) / 1.2;
rot = xmotion;
}
if ((_y < 20) && (ymotion < 0)) {
_y = 20;
ymotion = (-ymotion) / 1.2;
rot = -xmotion;
}
_rotation = (_rotation + rot);
}
Instance of Symbol 42 MovieClip "leg1" in Frame 79
onClipEvent (load) {
xmotion = -3;
ymotion = -4;
mass = 10;
xg1 = 0;
yg1 = 0;
rot = 5;
}
onClipEvent (enterFrame) {
xdist = _root.body._x - _x;
ydist = _root.body._y - _y;
distance = Math.sqrt(Math.pow(xdist, 2) + Math.pow(ydist, 2));
if (distance < 10) {
distance = 10;
}
gravity = (30 / (distance ^ 2)) * 5;
xg1 = gravity * (xdist / distance);
yg1 = gravity * (ydist / distance);
setProperty(this, _y , this._y + ymotion);
setProperty(this, _x , this._x + xmotion);
xmotion = xmotion + xg1;
ymotion = ymotion + yg1;
if ((_x > 620) && (xmotion > 0)) {
_x = 620;
xmotion = (-xmotion) / 1.2;
rot = -ymotion;
}
if ((_x < 20) && (xmotion < 0)) {
_x = 20;
xmotion = (-xmotion) / 1.2;
rot = ymotion;
}
if ((_y > 440) && (ymotion > 0)) {
_y = 440;
ymotion = (-ymotion) / 1.2;
rot = xmotion;
}
if ((_y < 20) && (ymotion < 0)) {
_y = 20;
ymotion = (-ymotion) / 1.2;
rot = -xmotion;
}
_rotation = (_rotation + rot);
}
Instance of Symbol 43 MovieClip "body" in Frame 79
onClipEvent (load) {
ymove = -4;
xmove = 1;
speed = 1;
rot = 5;
}
onClipEvent (enterFrame) {
_y = (_y + ymove);
_x = (_x + xmove);
_rotation = (_rotation + rot);
if (Key.isDown(39)) {
xmove = xmove + speed;
} else if (Key.isDown(37)) {
xmove = xmove - speed;
}
if (Key.isDown(38)) {
ymove = ymove - speed;
} else if (Key.isDown(40)) {
ymove = ymove + speed;
}
if ((_x > 620) && (xmove > 0)) {
_x = 620;
xmove = (-xmove) / 1.2;
rot = -ymove;
}
if ((_x < 10) && (xmove < 0)) {
_x = 10;
xmove = (-xmove) / 1.2;
rot = ymove;
}
if ((_y > 450) && (ymove > 0)) {
_y = 450;
ymove = (-ymove) / 1.2;
rot = xmove;
}
if ((_y < 20) && (ymove < 0)) {
_y = 20;
ymove = (-ymove) / 1.2;
rot = -xmove;
}
}
Instance of Symbol 44 MovieClip "hand" in Frame 79
onClipEvent (load) {
xmotion = -3;
ymotion = -4;
mass = 10;
xg1 = 0;
yg1 = 0;
rot = 5;
}
onClipEvent (enterFrame) {
xdist = _root.body._x - _x;
ydist = _root.body._y - _y;
distance = Math.sqrt(Math.pow(xdist, 2) + Math.pow(ydist, 2));
if (distance < 10) {
distance = 10;
}
gravity = (30 / (distance ^ 2)) * 5;
xg1 = gravity * (xdist / distance);
yg1 = gravity * (ydist / distance);
setProperty(this, _y , this._y + ymotion);
setProperty(this, _x , this._x + xmotion);
xmotion = xmotion + xg1;
ymotion = ymotion + yg1;
if ((_x > 620) && (xmotion > 0)) {
_x = 620;
xmotion = (-xmotion) / 1.2;
rot = -ymotion;
}
if ((_x < 20) && (xmotion < 0)) {
_x = 20;
xmotion = (-xmotion) / 1.2;
rot = ymotion;
}
if ((_y > 440) && (ymotion > 0)) {
_y = 440;
ymotion = (-ymotion) / 1.2;
rot = xmotion;
}
if ((_y < 20) && (ymotion < 0)) {
_y = 20;
ymotion = (-ymotion) / 1.2;
rot = -xmotion;
}
_rotation = (_rotation + rot);
}
Symbol 17 Button
on (press) {
gotoAndStop (5);
}
Instance of Symbol 25 MovieClip "star" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
_yscale = (_yscale + (_root.speed * 50));
}
onClipEvent (enterFrame) {
_y = (_y + _root.speed);
if (_y > 600) {
removeMovieClip(this);
}
}
Instance of Symbol 25 MovieClip "star1" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
_yscale = (_yscale + ((_root.speed / 2) * 50));
}
onClipEvent (enterFrame) {
_y = (_y + (_root.speed / 2));
if (_y > 600) {
removeMovieClip(this);
}
}
Instance of Symbol 25 MovieClip "star2" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
_yscale = (_yscale + ((_root.speed / 4) * 50));
}
onClipEvent (enterFrame) {
_y = (_y + (_root.speed / 4));
if (_y > 600) {
removeMovieClip(this);
}
}
Instance of Symbol 28 MovieClip "old" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = (_x - 5);
if (_x < -60) {
removeMovieClip(this);
}
}