Frame 1
stop();
Instance of Symbol 26 MovieClip in Frame 1
onClipEvent (mouseDown) {
getURL ("http://www.shockarcade.com", "_blank");
}
Frame 2
stop();
Stage.showMenu = false;
if (levelmade == undefined) {
levelmade = 1;
}
if (best == undefined) {
best = 0;
}
Instance of Symbol 37 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.gotoAndPlay(2);
Mouse.show();
}
Instance of Symbol 46 MovieClip "dis" in Frame 2
onClipEvent (enterFrame) {
if (p == true) {
this.gotoAndPlay(1);
} else if (pl == true) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(3);
}
}
Frame 3
stop();
Stage.showMenu = false;
bounce = new Sound();
bounce.attachSound("bouncing");
explode = new Sound();
explode.attachSound("bomb");
eat = new Sound();
eat.attachSound("gulp");
pop = new Sound();
pop.attachSound("enter");
level = 1;
reset = true;
able = false;
items = 0;
score = 0;
levelup = false;
timelimit = 1125;
_root.onEnterFrame = function () {
var _local1 = _root;
if (score > best) {
best = score;
}
if (timelimit <= 0) {
timelimit = 0;
gotoAndPlay ("over");
}
timelimit--;
if (levelup == true) {
reset = true;
multiple = 100;
timed = timelimit;
addpoints = multiple + timed;
score = score + addpoints;
levelup = false;
timelimit = 1125;
level = level + 1;
if (levelmade < level) {
levelmade = level;
}
char._rotation = 0;
}
if (reset == true) {
_local1.pop.start();
if (level == 1) {
maxitem = 1;
maxturn = 1;
char.turn = 0;
items = 0;
char.x = 85;
char.y = 50;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 282.9;
_local1.enemy._y = 284.9;
_local1.enemy2._x = 1000;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 385.3;
_local1.item._y = 399.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 2) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 100;
char.x = 150;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 178.8;
_local1.enemy._y = 133.2;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 168.2;
_local1.enemy3._x = 1000;
_local1.enemy3._y = 204.2;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 446.8;
_local1.item._y = 277.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 3) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 350;
char.y = 250;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 1000;
_local1.enemy._y = 73.2;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 107.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 110.9;
_local1.item._y = 475;
_local1.item2._x = 25;
_local1.item2._y = 383.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 4) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 156;
char.y = 186;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 356.8;
_local1.enemy._y = 73.2;
_local1.enemy2._x = 383.8;
_local1.enemy2._y = 107.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 434.9;
_local1.item._y = 57.8;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 5) {
maxitem = 1;
maxturn = 1;
char.turn = 0;
items = 0;
char.x = 238;
char.y = 346;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 356.8;
_local1.enemy._y = 63.1;
_local1.enemy2._x = 260.8;
_local1.enemy2._y = 286.1;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 429.9;
_local1.item._y = 29.8;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 6) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 112;
char.x = 235;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 108.9;
_local1.enemy._y = 211.8;
_local1.enemy2._x = 446.8;
_local1.enemy2._y = 465.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 66.9;
_local1.item._y = 250.8;
_local1.item2._x = 401.9;
_local1.item2._y = 437.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 7) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 350;
char.x = 37.5;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 37.5;
_local1.enemy._y = 435.8;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 224.8;
_local1.enemy3._x = 1000;
_local1.enemy3._y = 362.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 37.5;
_local1.item._y = 387.8;
_local1.item2._x = 37.5;
_local1.item2._y = 25;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 8) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 225;
char.x = 460;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 412.9;
_local1.enemy._y = 212.8;
_local1.enemy2._x = 311.9;
_local1.enemy2._y = 341.4;
_local1.enemy3._x = 245.9;
_local1.enemy3._y = 364.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 274.9;
_local1.item._y = 339.8;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 9) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 333.9;
char.y = 391.9;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 148.9;
_local1.enemy._y = 148.8;
_local1.enemy2._x = 62.9;
_local1.enemy2._y = 232.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 30;
_local1.item._y = 205.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 10) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 213;
char.x = 176;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 185.9;
_local1.enemy._y = 175.8;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 362.8;
_local1.enemy3._x = 1000;
_local1.enemy3._y = 56.5;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 468.9;
_local1.item._y = 320.8;
_local1.item2._x = 220.9;
_local1.item2._y = 148.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 11) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 150;
char.x = 100;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 113.9;
_local1.enemy._y = 109.8;
_local1.enemy2._x = 460.9;
_local1.enemy2._y = 264.8;
_local1.enemy3._x = 442.9;
_local1.enemy3._y = 371.4;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 421.9;
_local1.item._y = 350.4;
_local1.item2._x = 252.9;
_local1.item2._y = 355.4;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 12) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 346.4;
char.x = 45.5;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 306.8;
_local1.enemy._y = 57.1;
_local1.enemy2._x = 64.9;
_local1.enemy2._y = 370.9;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 84.9;
_local1.item._y = 395.8;
_local1.item2._x = 203.9;
_local1.item2._y = 210.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 13) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 418.9;
char.x = 45.9;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 77;
_local1.enemy._y = 277.3;
_local1.enemy2._x = 36.9;
_local1.enemy2._y = 388.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 23.4;
_local1.item._y = 277.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 14) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 321;
char.x = 425;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 469.9;
_local1.enemy._y = 403.8;
_local1.enemy2._x = 362.9;
_local1.enemy2._y = 362.8;
_local1.enemy3._x = 149.8;
_local1.enemy3._y = 56.5;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 380.9;
_local1.item._y = 334.8;
_local1.item2._x = 127;
_local1.item2._y = 81.5;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 15) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 263;
char.x = 257;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 425.9;
_local1.enemy._y = 214.8;
_local1.enemy2._x = 289.9;
_local1.enemy2._y = 247.8;
_local1.enemy3._x = 278;
_local1.enemy3._y = 291.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 456.9;
_local1.item._y = 203.4;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 16) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 145;
char.x = 270;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 121;
_local1.enemy._y = 27.8;
_local1.enemy2._x = 355.9;
_local1.enemy2._y = 349.8;
_local1.enemy3._x = 287;
_local1.enemy3._y = 175.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 387.9;
_local1.item._y = 330.8;
_local1.item2._x = 121;
_local1.item2._y = 243.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 17) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 450;
char.y = 300;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 55;
_local1.enemy._y = 400;
_local1.enemy2._x = 400.4;
_local1.enemy2._y = 287.8;
_local1.enemy3._x = 324.5;
_local1.enemy3._y = 468.8;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 360.5;
_local1.item._y = 468.8;
_local1.item2._x = 25;
_local1.item2._y = 380;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 18) {
maxitem = 3;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 250;
char.x = 250;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 30;
_local1.enemy._y = 178.8;
_local1.enemy2._x = 205;
_local1.enemy2._y = 310;
_local1.enemy3._x = 468.5;
_local1.enemy3._y = 178.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 30;
_local1.item._y = 140.8;
_local1.item2._x = 468.5;
_local1.item2._y = 140.8;
_local1.item3._x = 180;
_local1.item3._y = 280;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
}
}
};
Instance of Symbol 37 MovieClip "char" in Frame 3
onClipEvent (load) {
var sliding = 0.96;
var bounce = 0.9;
var moving = false;
var pressed = false;
increase = false;
hit = false;
hititem = false;
}
onClipEvent (mouseDown) {
if ((moving == false) and (_root.able == true)) {
increase = true;
}
}
onClipEvent (mouseUp) {
if ((moving == false) and (_root.able == true)) {
pressed = true;
increase = false;
} else {
pressed = false;
}
}
onClipEvent (enterFrame) {
if (_root.reset == false) {
if (hititem == 1) {
_root.items = _root.items + 1;
_root.item._x = 1000;
hititem = false;
} else if (hititem == 2) {
_root.items = _root.items + 1;
_root.item2._x = 1000;
hititem = false;
} else if (hititem == 3) {
_root.items = _root.items + 1;
_root.item3._x = 1000;
hititem = false;
}
if (hit == true) {
_root.reset = true;
_root.items = 0;
turn = 0;
}
}
if (moving == false) {
if (increase == true) {
if (speed < 50) {
speed = speed + 1;
}
}
FRAME = 1;
if ((pressed == true) and (_root.able == true)) {
moving = true;
pressed = false;
angle = Math.atan2(_parent._xmouse - _x, _parent._ymouse - _y);
yspeed = Math.cos(angle) * speed;
xspeed = Math.sin(angle) * speed;
}
} else {
rotate = (xspeed * xspeed) + (yspeed * yspeed);
this._rotation = this._rotation + (rotate / 3);
FRAME = 2;
x = x + xspeed;
y = y + yspeed;
xspeed = xspeed * sliding;
yspeed = yspeed * sliding;
if (((xspeed * xspeed) + (yspeed * yspeed)) < 0.02) {
moving = false;
speed = 0;
turn = turn + 1;
if ((turn == _root.maxturn) and (!(_root.items === _root.maxitem))) {
_root.reset = true;
this._rotation = 0;
turn = 0;
}
if (_root.items == _root.maxitem) {
if (_root.level == 18) {
_root.score = _root.score + 1000;
_root.gotoAndPlay("won");
} else {
_root.levelup = true;
}
}
}
}
if (x < 20) {
x = 20;
xspeed = xspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
if (x > 480) {
x = 480;
xspeed = xspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
if (y < 20) {
y = 20;
yspeed = yspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
if (y > 480) {
y = 480;
yspeed = yspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
_x = x;
_y = y;
this.gotoAndStop(FRAME);
}
Instance of Symbol 57 MovieClip "power" in Frame 3
onClipEvent (enterFrame) {
this.bar._xscale = _root.char.speed * 2;
}
Instance of Symbol 13 MovieClip [clock] in Frame 3
onClipEvent (enterFrame) {
if (_root.timelimit >= 843) {
this.gotoAndPlay(1);
} else if ((_root.timelimit < 843) and (_root.timelimit >= 562)) {
this.gotoAndPlay(2);
} else if ((_root.timelimit < 562) and (_root.timelimit >= 281)) {
this.gotoAndPlay(3);
} else if ((_root.timelimit < 281) and (_root.timelimit > 0)) {
this.gotoAndPlay(4);
} else if (_root.timelimit < 0) {
this.gotoAndPlay(5);
}
}
Instance of Symbol 39 MovieClip "enemy" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item2" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 2;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy2" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy7" in Frame 3
onClipEvent (load) {
function hit() {
var _local2 = _root.char._x - this._x;
var _local1 = this._y - _root.char._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 <= this._width) {
_root.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy4" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy3" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy5" in Frame 3
onClipEvent (load) {
function hit() {
var _local2 = _root.char._x - this._x;
var _local1 = this._y - _root.char._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 <= this._width) {
_root.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item4" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item5" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item6" in Frame 3
onClipEvent (load) {
function hit() {
var _local2 = _root.char._x - this._x;
var _local1 = this._y - _root.char._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 <= this._width) {
_root.char.hititem = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item3" in Frame 3
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 3;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 7 MovieClip [cursor] "cursor" in Frame 3
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this.hitTest(_root.char.box)) {
_root.able = true;
this.gotoAndPlay(1);
} else {
_root.able = false;
this.gotoAndPlay(2);
}
}
Frame 4
stop();
Stage.showMenu = false;
stopAllSounds();
user_so.flush();
Instance of Symbol 36 MovieClip "peng" in Frame 4
onClipEvent (enterFrame) {
Mouse.show();
}
Frame 5
stop();
stopAllSounds();
Stage.showMenu = false;
stopAllSounds();
timelimit = undefined;
user_so.flush();
Instance of Symbol 84 MovieClip in Frame 5
onClipEvent (enterFrame) {
Mouse.show();
}
Frame 6
stop();
stopAllSounds();
Stage.showMenu = false;
bounce = new Sound();
bounce.attachSound("bouncing");
explode = new Sound();
explode.attachSound("bomb");
eat = new Sound();
eat.attachSound("gulp");
pop = new Sound();
pop.attachSound("enter");
level = 1;
reset = true;
able = false;
items = 0;
levelup = false;
_root.onEnterFrame = function () {
var _local1 = _root;
if (levelup == true) {
if (level < levelmade) {
reset = true;
levelup = false;
level = level + 1;
char._rotation = 0;
} else {
reset = true;
char._rotation = 0;
}
}
if (reset == true) {
_local1.pop.start();
if (level == 1) {
maxitem = 1;
maxturn = 1;
char.turn = 0;
items = 0;
char.x = 85;
char.y = 50;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 282.9;
_local1.enemy._y = 284.9;
_local1.enemy2._x = 1000;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 385.3;
_local1.item._y = 399.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 2) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 100;
char.x = 150;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 178.8;
_local1.enemy._y = 133.2;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 168.2;
_local1.enemy3._x = 1000;
_local1.enemy3._y = 204.2;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 446.8;
_local1.item._y = 277.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 3) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 350;
char.y = 250;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 1000;
_local1.enemy._y = 73.2;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 107.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 110.9;
_local1.item._y = 475;
_local1.item2._x = 25;
_local1.item2._y = 383.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 4) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 156;
char.y = 186;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 356.8;
_local1.enemy._y = 73.2;
_local1.enemy2._x = 383.8;
_local1.enemy2._y = 107.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 434.9;
_local1.item._y = 57.8;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 5) {
maxitem = 1;
maxturn = 1;
char.turn = 0;
items = 0;
char.x = 238;
char.y = 346;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 356.8;
_local1.enemy._y = 63.1;
_local1.enemy2._x = 260.8;
_local1.enemy2._y = 286.1;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 429.9;
_local1.item._y = 29.8;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 6) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 112;
char.x = 235;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 108.9;
_local1.enemy._y = 211.8;
_local1.enemy2._x = 446.8;
_local1.enemy2._y = 465.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 66.9;
_local1.item._y = 250.8;
_local1.item2._x = 401.9;
_local1.item2._y = 437.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 7) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 350;
char.x = 37.5;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 37.5;
_local1.enemy._y = 435.8;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 224.8;
_local1.enemy3._x = 1000;
_local1.enemy3._y = 362.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 37.5;
_local1.item._y = 387.8;
_local1.item2._x = 37.5;
_local1.item2._y = 25;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 8) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 225;
char.x = 460;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 412.9;
_local1.enemy._y = 212.8;
_local1.enemy2._x = 311.9;
_local1.enemy2._y = 341.4;
_local1.enemy3._x = 245.9;
_local1.enemy3._y = 364.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 274.9;
_local1.item._y = 339.8;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 9) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 333.9;
char.y = 391.9;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 148.9;
_local1.enemy._y = 148.8;
_local1.enemy2._x = 62.9;
_local1.enemy2._y = 232.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 30;
_local1.item._y = 205.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 10) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 213;
char.x = 176;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 185.9;
_local1.enemy._y = 175.8;
_local1.enemy2._x = 1000;
_local1.enemy2._y = 362.8;
_local1.enemy3._x = 1000;
_local1.enemy3._y = 56.5;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 468.9;
_local1.item._y = 320.8;
_local1.item2._x = 220.9;
_local1.item2._y = 148.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 11) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 150;
char.x = 100;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 113.9;
_local1.enemy._y = 109.8;
_local1.enemy2._x = 460.9;
_local1.enemy2._y = 264.8;
_local1.enemy3._x = 442.9;
_local1.enemy3._y = 371.4;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 421.9;
_local1.item._y = 350.4;
_local1.item2._x = 252.9;
_local1.item2._y = 355.4;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 12) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 346.4;
char.x = 45.5;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 306.8;
_local1.enemy._y = 57.1;
_local1.enemy2._x = 64.9;
_local1.enemy2._y = 370.9;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 84.9;
_local1.item._y = 395.8;
_local1.item2._x = 203.9;
_local1.item2._y = 210.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 13) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 418.9;
char.x = 45.9;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 77;
_local1.enemy._y = 277.3;
_local1.enemy2._x = 36.9;
_local1.enemy2._y = 388.8;
_local1.enemy3._x = 1000;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 23.4;
_local1.item._y = 277.3;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 14) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 321;
char.x = 425;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 469.9;
_local1.enemy._y = 403.8;
_local1.enemy2._x = 362.9;
_local1.enemy2._y = 362.8;
_local1.enemy3._x = 149.8;
_local1.enemy3._y = 56.5;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 380.9;
_local1.item._y = 334.8;
_local1.item2._x = 127;
_local1.item2._y = 81.5;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 15) {
maxitem = 1;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 263;
char.x = 257;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 425.9;
_local1.enemy._y = 214.8;
_local1.enemy2._x = 289.9;
_local1.enemy2._y = 247.8;
_local1.enemy3._x = 278;
_local1.enemy3._y = 291.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 456.9;
_local1.item._y = 203.4;
_local1.item2._x = 1000;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 16) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 145;
char.x = 270;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 121;
_local1.enemy._y = 27.8;
_local1.enemy2._x = 355.9;
_local1.enemy2._y = 349.8;
_local1.enemy3._x = 287;
_local1.enemy3._y = 175.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 387.9;
_local1.item._y = 330.8;
_local1.item2._x = 121;
_local1.item2._y = 243.8;
_local1.item3._x = 1000;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 17) {
maxitem = 2;
maxturn = 1;
items = 0;
char.turn = 0;
char.x = 450;
char.y = 300;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 55;
_local1.enemy._y = 400;
_local1.enemy2._x = 400.4;
_local1.enemy2._y = 287.8;
_local1.enemy3._x = 324.5;
_local1.enemy3._y = 468.8;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 360.5;
_local1.item._y = 468.8;
_local1.item2._x = 25;
_local1.item2._y = 380;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
} else if (level == 18) {
maxitem = 3;
maxturn = 1;
items = 0;
char.turn = 0;
char.y = 250;
char.x = 250;
char.xspeed = 0;
char.yspeed = 0;
char.speed = 0;
_local1.enemy._x = 30;
_local1.enemy._y = 178.8;
_local1.enemy2._x = 205;
_local1.enemy2._y = 310;
_local1.enemy3._x = 468.5;
_local1.enemy3._y = 178.8;
_local1.enemy4._x = 1000;
_local1.enemy5._x = 1000;
_local1.enemy6._x = 1000;
_local1.item._x = 30;
_local1.item._y = 140.8;
_local1.item2._x = 468.5;
_local1.item2._y = 140.8;
_local1.item3._x = 180;
_local1.item3._y = 280;
_local1.item4._x = 1000;
_local1.item5._x = 1000;
_local1.item6._x = 1000;
_local1.char.hit = false;
reset = false;
}
}
};
Instance of Symbol 37 MovieClip "char" in Frame 6
onClipEvent (load) {
var sliding = 0.96;
var bounce = 0.9;
var moving = false;
var pressed = false;
increase = false;
hit = false;
hititem = false;
}
onClipEvent (mouseDown) {
if ((moving == false) and (_root.able == true)) {
increase = true;
}
}
onClipEvent (mouseUp) {
if ((moving == false) and (_root.able == true)) {
pressed = true;
increase = false;
} else {
pressed = false;
}
}
onClipEvent (enterFrame) {
if (_root.reset == false) {
if (hititem == 1) {
_root.items = _root.items + 1;
_root.item._x = 1000;
hititem = false;
} else if (hititem == 2) {
_root.items = _root.items + 1;
_root.item2._x = 1000;
hititem = false;
} else if (hititem == 3) {
_root.items = _root.items + 1;
_root.item3._x = 1000;
hititem = false;
}
if (hit == true) {
_root.reset = true;
_root.items = 0;
turn = 0;
}
}
if (moving == false) {
if (increase == true) {
if (speed < 50) {
speed = speed + 1;
}
}
FRAME = 1;
if ((pressed == true) and (_root.able == true)) {
moving = true;
pressed = false;
angle = Math.atan2(_parent._xmouse - _x, _parent._ymouse - _y);
yspeed = Math.cos(angle) * speed;
xspeed = Math.sin(angle) * speed;
}
} else {
rotate = (xspeed * xspeed) + (yspeed * yspeed);
this._rotation = this._rotation + (rotate / 3);
FRAME = 2;
x = x + xspeed;
y = y + yspeed;
xspeed = xspeed * sliding;
yspeed = yspeed * sliding;
if (((xspeed * xspeed) + (yspeed * yspeed)) < 0.02) {
moving = false;
speed = 0;
turn = turn + 1;
if ((turn == _root.maxturn) and (!(_root.items === _root.maxitem))) {
_root.reset = true;
this._rotation = 0;
turn = 0;
}
if (_root.items == _root.maxitem) {
_root.reset = true;
this._rotation = 0;
turn = 0;
}
}
}
if (x < 20) {
x = 20;
xspeed = xspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
if (x > 480) {
x = 480;
xspeed = xspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
if (y < 20) {
y = 20;
yspeed = yspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
if (y > 480) {
y = 480;
yspeed = yspeed * (-bounce);
if (moving == true) {
_root.bounce.start();
}
}
_x = x;
_y = y;
this.gotoAndStop(FRAME);
}
Instance of Symbol 57 MovieClip "power" in Frame 6
onClipEvent (enterFrame) {
this.bar._xscale = _root.char.speed * 2;
}
Instance of Symbol 39 MovieClip "enemy" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 1;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item2" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 2;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy2" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy7" in Frame 6
onClipEvent (load) {
function hit() {
var _local2 = _root.char._x - this._x;
var _local1 = this._y - _root.char._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 <= this._width) {
_root.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy4" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy3" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.explode.start();
_local3.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 39 MovieClip "enemy5" in Frame 6
onClipEvent (load) {
function hit() {
var _local2 = _root.char._x - this._x;
var _local1 = this._y - _root.char._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 <= this._width) {
_root.char.hit = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item4" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item5" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item6" in Frame 6
onClipEvent (load) {
function hit() {
var _local2 = _root.char._x - this._x;
var _local1 = this._y - _root.char._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 <= this._width) {
_root.char.hititem = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 41 MovieClip "item3" in Frame 6
onClipEvent (load) {
function hit() {
var _local3 = _root;
var _local2 = _local3.char._x - this._x;
var _local1 = this._y - _local3.char._y;
var value = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (value <= this._width) {
_local3.eat.start();
_local3.char.hititem = 3;
}
}
}
onClipEvent (enterFrame) {
if (_root.char.moving == true) {
hit();
}
}
Instance of Symbol 7 MovieClip [cursor] "cursor" in Frame 6
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this.hitTest(_root.char.box)) {
_root.able = true;
this.gotoAndPlay(1);
} else {
_root.able = false;
this.gotoAndPlay(2);
}
}
Symbol 7 MovieClip [cursor] Frame 1
stop();
Symbol 7 MovieClip [cursor] Frame 2
stop();
Symbol 13 MovieClip [clock] Frame 1
stop();
Symbol 13 MovieClip [clock] Frame 2
stop();
Symbol 13 MovieClip [clock] Frame 3
stop();
Symbol 13 MovieClip [clock] Frame 4
stop();
Symbol 13 MovieClip [clock] Frame 5
stop();
Symbol 18 Button
on (press) {
getURL ("http://www.shockarcade.com", "_blank");
}
Symbol 26 MovieClip Frame 1
play();
Symbol 26 MovieClip Frame 2
play();
Symbol 26 MovieClip Frame 40
stop();
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 40
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
with (_level0) {
_root.nextFrame();
}
}
}
Symbol 32 Button
on (release) {
_root.gotoAndPlay("game");
}
on (rollOver) {
dis.pl = true;
}
on (rollOut) {
dis.pl = false;
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 43 Button
on (release) {
_root.gotoAndPlay("practice");
}
on (rollOver) {
dis.p = true;
}
on (rollOut) {
dis.p = false;
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 3
stop();
Symbol 49 Button
on (release) {
getURL ("http://www.shockarcade.com");
}
Symbol 77 Button
on (release) {
_root.gotoAndPlay("game");
}
Symbol 79 Button
on (release) {
_root.gotoAndPlay("menu");
_root.timelimit = 1125;
}
Symbol 87 Button
on (release) {
gotoAndPlay ("game");
}
Symbol 88 Button
on (release) {
_root.gotoAndPlay("menu");
_root.timelimit = 1125;
}
Symbol 91 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 93 Button
on (release) {
if (_root.level < _root.levelmade) {
_root.levelup = true;
} else {
_root.level = 0;
_root.levelup = true;
}
}