Combined Code
movieClip 2 {
}
movieClip 5 {
}
movieClip 6 {
}
movieClip 7 tentacle1a {
instance animate of movieClip 6 {
onClipEvent (load) {
xmin = -10;
yspeed = 0.5;
rtime = 0;
rtimemax = 100;
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (limit.hitTest(_root.p1.limit)) {
_root.p1.dead = true;
_parent.removeMovieClip();
}
if (_x <= xmin) {
_parent.removeMovieClip();
}
if (_root.game_reset) {
_parent.removeMovieClip();
}
}
}
}
movieClip 9 {
}
movieClip 10 smoke1a {
instance animate of movieClip 9 {
onClipEvent (load) {
xmin = -10;
yspeed = 0.5;
rtime = 0;
rtimemax = 100;
rot_sp = random(10);
fade_sp = 2;
}
onClipEvent (enterFrame) {
_rotation = _rotation + rot_sp;
_alpha = _alpha - fade_sp;
_x = _x - _root.global_speed;
if (_x <= xmin) {
_parent.removeMovieClip();
}
_y = _y - yspeed;
++rtime;
if (rtime >= rtimemax) {
_parent.removeMovieClip();
}
if (_root.game_reset) {
_parent.removeMovieClip();
}
}
}
}
movieClip 12 {
}
movieClip 13 reset_button1a {
instance animate of movieClip 12 {
onClipEvent (release) {
_root.game_reset = true;
_parent.removeMovieClip();
}
}
}
frame 1 {
function clean() {
for (i in _root) {
_root[i].removeMovieClip();
}
}
Stage.scaleMode = 'exactfit';
_root.clean();
stop();
}
movieClip 15 {
}
instance lower_limit of movieClip 15 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p1.limit)) {
_root.p1.dead = true;
}
}
}
instance upper_limit of movieClip 15 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p1.limit)) {
_root.p1.dead = true;
}
}
}
movieClip 17 {
}
movieClip 18 {
}
instance tent_scroll_bot1 of movieClip 18 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
instance tent_scroll_bot2 of movieClip 18 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
instance tent_scroll_top1 of movieClip 18 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
instance tent_scroll_top2 of movieClip 18 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
movieClip 23 {
}
movieClip 26 {
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 38 {
}
movieClip 43 {
frame 1 {
stop();
}
}
movieClip 45 {
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 51 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
instance p1 of movieClip 51 {
onClipEvent (load) {
addt = 0;
addmax = 8;
gravity = 0.5;
rise_power = 1;
rpc = 0.2;
dpc = 0.2;
rise_power_main = 3;
dead = false;
accelerate = false;
size = 40;
_xscale = size;
_yscale = size;
yspot = 10;
xspot = -20;
}
onClipEvent (mouseDown) {
accelerate = true;
}
onClipEvent (mouseUp) {
accelerate = false;
}
onClipEvent (enterFrame) {
_root.acccel = accelerate;
_root.rspeed = rise_power;
if (_root.game_reset) {
addt = 0;
accelerate = false;
rpc = 0.2;
dpc = 0.2;
}
if (!dead) {
gotoAndStop('nd');
if (_root.controller1.game_start) {
if (accelerate) {
rise_power -= rpc;
} else {
rise_power += dpc;
}
_y = _y + rise_power;
++addt;
if (addt >= addmax) {
_root.attachMovie('smoke1a', 'smoke1a' + _root.debris, _root.debris++);
_root['smoke1a' + _root.debris].animate._x = _x + xspot;
_root['smoke1a' + _root.debris].animate._y = _y + yspot;
addt = 0;
}
}
}
if (dead) {
rise_power = 1;
gotoAndStop('dead');
}
}
}
// unknown tag 88 length 69
movieClip 62 {
}
instance controller1 of movieClip 62 {
onClipEvent (load) {
at_timer = 0;
at_timermax = 100;
at_timer2 = 0;
at_timermax2 = 105;
_root.global_speed = 2;
speed_timer = 0;
speed_timer_max = 500;
_root.score = 0;
_root.best_score = 10;
reset_game = false;
game_start = false;
_root.debris = 100;
_root.t_layer = 200;
_root.p1._x = 191;
_root.p1._y = 192;
_root.upper_limit._y = -12;
_root.lower_limit._y = 405;
_root.tent_scroll_bot1._y = 620;
_root.tent_scroll_bot2._y = 620;
_root.tent_scroll_top1._y = -210;
_root.tent_scroll_top2._y = -210;
}
onClipEvent (enterFrame) {
_root.speedtimer = speed_timer;
if (_root.debris >= 120) {
_root.debris = 100;
}
if (_root.t_layer >= 320) {
_root.t_layer = 200;
}
if (game_start) {
if (!_root.p1.dead) {
_root.score += 1;
++at_timer;
if (at_timer >= at_timermax) {
yspot = random(100) + random(250);
_root.attachMovie('tentacle1a', 'tentacle1' + _root.t_layer, _root.t_layer++);
_root['tentacle1' + _root.t_layer].animate._x = 585;
_root['tentacle1' + _root.t_layer].animate._y = yspot;
at_timer = 0;
}
++at_timer2;
if (at_timer2 >= at_timermax2) {
ysel = random(2);
_root.attachMovie('tentacle1a', 'tentacle2' + _root.t_layer, _root.t_layer++);
_root['tentacle2' + _root.t_layer].animate._x = 585;
if (ysel == 0) {
_root['tentacle2' + _root.t_layer].animate._y = 43;
}
if (ysel == 1) {
_root['tentacle2' + _root.t_layer].animate._y = 350;
}
at_timer2 = 0;
}
++speed_timer;
if (speed_timer >= speed_timer_max) {
at_timermax -= 10;
at_timermax2 -= 10;
_root.upper_limit._y += 5;
_root.lower_limit._y -= 5;
_root.tent_scroll_bot1._y -= 10;
_root.tent_scroll_bot2._y -= 10;
_root.tent_scroll_top1._y += 10;
_root.tent_scroll_top2._y += 10;
_root.global_speed += 1;
speed_timer = 0;
}
}
if (_root.p1.dead) {
if (_root.score > _root.best_score) {
_root.best_score = _root.score;
}
_root.global_speed = 0;
if (!c) {
_root.attachMovie('reset_button1a', 'reset_button1a', 800);
_root.reset_button1a.animate._x = 400;
_root.reset_button1a.animate._y = 250;
c = true;
}
if (_root.game_reset) {
game_start = false;
reset_game = true;
}
}
}
if (reset_game) {
c = false;
at_timermax = 100;
at_timermax2 = 105;
_root.debris = 100;
_root.p1._x = 191;
_root.p1._y = 192;
_root.upper_limit._y = -12;
_root.lower_limit._y = 405;
_root.tent_scroll_bot1._y = 620;
_root.tent_scroll_bot2._y = 620;
_root.tent_scroll_top1._y = -210;
_root.tent_scroll_top2._y = -210;
_root.p1.dead = false;
_root.global_speed = 2;
speed_timer = 0;
speed_timer_max = 500;
_root.score = 0;
_root.game_reset = false;
game_start = true;
reset_game = false;
}
}
}
movieClip 64 {
}
instance animate of movieClip 64 {
onClipEvent (load) {
this.swapDepths(1000);
}
onClipEvent (release) {
_root.controller1.game_start = true;
removeMovieClip(this);
}
}
movieClip 69 {
}
instance of movieClip 69 {
onClipEvent (rollOver) {
_root.intext = 'TOON PIMP';
}
onClipEvent (rollOut) {
_root.intext = '';
}
onClipEvent (release) {
getURL('http://toonpimp.net', 'gropesville');
}
onClipEvent (enterFrame) {
if (Key.isDown(9)) {
_root.gotoAndPlay('loader');
}
}
}
movieClip 72 {
}
movieClip 73 {
}