Frame 1
squarepos_so = SharedObject.getLocal("positions");
_root.numbah = squarepos_so.data.y;
yy.text = squarepos_so.data.y;
function site() {
getURL ("http://www.exotworking.com", "_blank");
}
function site2() {
getURL ("http://jayisgames.com/cgdc8", "_blank");
}
function chQuality() {
toggleHighQuality();
}
function c() {
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var quality = new ContextMenuItem("Change Quality", chQuality);
var site = new ContextMenuItem("EXOTWORKING", site);
var site2 = new ContextMenuItem("CGDC8", site2);
var c = new ContextMenuItem("\u00A9 2010 by exotworking", c);
site.separatorBefore = true;
c.separatorBefore = true;
myMenu.customItems.push(quality, site, site2, c);
_root.menu = myMenu;
qual = 1;
soundfx = true;
music = true;
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndStop ("start");
}
Instance of Symbol 206 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
}
Instance of Symbol 208 MovieClip in Frame 1
onClipEvent (enterFrame) {
_xscale = _root.percentDone;
}
Frame 2
gotoAndPlay (1);
Frame 4
_root.goscreen.removeMovieClip();
_root.plane.removeMovieClip();
Frame 126
stopAllSounds();
Instance of Symbol 270 MovieClip in Frame 126
onClipEvent (enterFrame) {
if (_root.numbah > 0) {
this.gotoAndStop(2);
}
if (_root.numbah <= 0) {
this.gotoAndStop(1);
}
}
Frame 128
stop();
_root.goscreen.removeMovieClip();
_root.plane.removeMovieClip();
Frame 152
squarepos_so.data.y = 0;
Instance of Symbol 282 MovieClip in Frame 343
onClipEvent (load) {
if (_root.soundfx == true) {
sssSound1 = new Sound(this);
sssSound1.attachSound("introhit");
sssSound1.setVolume(10);
sssSound1.start(0, 1);
}
}
Instance of Symbol 90 MovieClip in Frame 373
onClipEvent (load) {
if ((_root.proceednow == true) && (_root.resett > 50)) {
_parent.gotoAndPlay("yay");
}
}
Instance of Symbol 282 MovieClip in Frame 404
onClipEvent (load) {
if (_root.soundfx == true) {
sssSound1 = new Sound(this);
sssSound1.attachSound("intro");
sssSound1.setVolume(30);
sssSound1.start(0, 1);
}
}
Frame 514
levelnow = squarepos_so.data.y;
Frame 525
_root.goscreen.success._visible = false;
fall = 0;
jumpp = false;
hero.onEnterFrame = function () {
};
buff = 0;
pshot = false;
var xVel = 0;
var yVel = 0;
var camYBuffer = 60;
_root.vcam._x = 100;
_root.vcam._y = 100;
wkeypress = 0;
mousecl = 0;
dudernow = false;
cde.onMouseDown = function () {
mousecl = 0;
};
xmove = 0;
stop();
gameover = false;
resett = 4;
buffyo = 0;
oneparticle = 0;
splatnow = false;
_root.grnd.gotoAndStop(levelnow + 1);
itemsam = 13;
itemtype = 0;
proceednow = true;
_root.goscreen.swapDepths(5000);
mugbreak = false;
gosound = 0;
clicksound = false;
clicksound2 = false;
collidesound = false;
collectsound = false;
placesound = false;
winsound = false;
savenow = false;
cde.onEnterFrame = function () {
trace(levelnow);
if (_root.levelnow < 19) {
_root.numbah = _root.levelnow;
}
if (_root.levelnow < 19) {
_root.numbah = _root.levelnow;
}
if (savenow == true) {
yy.text = (squarepos_so.data.y = _root.numbah);
squarepos_so.flush();
savenow = false;
}
if (_root.birdpal._x < _root.hero._x) {
_root.birdpal._xscale = 100;
}
if (_root.birdpal._x > _root.hero._x) {
_root.birdpal._xscale = -100;
}
if (_root.hero._visible == true) {
_root.birdpal._x = _root.birdpal._x + (((_root.hero._x - (_root.hero._xscale / 4)) - _root.birdpal._x) / 7);
_root.birdpal._y = _root.birdpal._y + (((_root.hero._y - 40) - _root.birdpal._y) / 7);
}
if (clicksound == true) {
if (_root.soundfx == true) {
spawnsound = new Sound(this);
spawnsound.attachSound("clickee");
spawnsound.setVolume(50);
spawnsound.start(0, 1);
}
clicksound = false;
}
if (clicksound2 == true) {
if (_root.soundfx == true) {
spawnsound22 = new Sound(this);
spawnsound22.attachSound("click2");
spawnsound22.setVolume(50);
spawnsound22.start(0, 1);
}
clicksound2 = false;
}
if (collidesound == true) {
if (_root.soundfx == true) {
collides = new Sound(this);
collides.attachSound("collide");
collides.setVolume(30);
collides.start(0, 1);
}
collidesound = false;
}
if (collectsound == true) {
if (_root.soundfx == true) {
collects = new Sound(this);
collects.attachSound("collect");
collects.setVolume(30);
collects.start(0, 1);
}
collectsound = false;
}
if (placesound == true) {
if (_root.soundfx == true) {
places = new Sound(this);
places.attachSound("place");
places.setVolume(50);
places.start(0, 1);
}
placesound = false;
}
if (winsound == true) {
if (_root.soundfx == true) {
wins = new Sound(this);
wins.attachSound("win");
wins.setVolume(80);
wins.start(0, 1);
}
winsound = false;
}
_root.there._x = _root.da._x;
_root.there._y = _root.da._y;
if (_root.proceednow == true) {
_root.talk._x = _root.hero._x;
_root.talk._y = _root.hero._y - 60;
}
buffyo++;
oneparticle++;
if (splatnow == true) {
_root.splattter(_root.da._x + 15, _root.da._y, random(5) + 1, -(random(5) + 1), 1);
_root.splattter(_root.da._x - 15, _root.da._y, -(random(5) + 1), random(5) + 1, 1);
_root.splattter(_root.da._x, _root.da._y + 15, random(5) + 1, random(5) + 1, 1);
_root.splattter(_root.da._x, _root.da._y - 15, -(random(5) + 1), -(random(5) + 1), 1);
_root.splattter(_root.da._x + 5, _root.da._y, random(10) - 5, random(10) - 5, 1);
_root.splattter(_root.da._x - 5, _root.da._y, random(10) - 5, random(10) - 5, 1);
_root.splattter(_root.da._x, _root.da._y - 5, random(10) - 5, random(10) - 5, 1);
_root.splattter(_root.da._x, _root.da._y + 5, random(10) - 5, random(10) - 5, 1);
splatnow = false;
}
if (gameover == false) {
gosound = 0;
}
if (gosound == 1) {
if (_root.soundfx == true) {
sssSound21 = new Sound(this);
sssSound21.attachSound("over");
sssSound21.setVolume(80);
sssSound21.start(0, 1);
}
}
_root.goscreen.yo = _root.levelnow;
if (gameover == true) {
gosound++;
_root.dudernow = false;
_root["duder" + _root.dudenum].xmove = 0;
if (_root["duder" + _root.dudenum].typee == 2) {
_root["duder" + _root.dudenum].fall = 0;
}
_root.goscreen.gotoAndStop(2);
_root.grnd.gotoAndStop("gameover");
xmove = xmove * 0.5;
}
if ((_root.hero._y > 1000) && (gameover == false)) {
gameover = true;
_root.cloudparticle();
_root.cloudparticle();
_root.cloudparticle();
_root.cloudparticle();
_root.cloudparticle();
_root.cloudparticle();
}
if ((((_root.hero._y < 750) && (_root.dudernow == false)) && (buffyo > 10)) || ((_root["duder" + _root.dudenum]._y < 750) && (_root.dudernow == true))) {
_root.cloudlayer._x = (_root.vcam._x - random(1250)) + 1;
}
_root.cloudlayer._y = 1100;
resett++;
if (Key.isDown(87)) {
wkeypress++;
}
if (!Key.isDown(87)) {
wkeypress = 0;
}
if (Key.isDown(83) && (!(_root["duder" + _root.dudenum].typee === 2))) {
_root.da._x = (Math.floor(_root["duder" + _root.dudenum]._x / 40) * 40) + 20;
}
if ((!Key.isDown(83)) && (!(_root["duder" + _root.dudenum].typee === 2))) {
_root.da._x = (Math.floor((_root["duder" + _root.dudenum]._x + (20 * (_root["duder" + _root.dudenum]._xscale / 100))) / 40) * 40) + 20;
}
if (_root["duder" + _root.dudenum].typee == 2) {
_root.da._x = (Math.floor(_root["duder" + _root.dudenum]._x / 40) * 40) + 20;
}
_root.da._y = (Math.round(_root["duder" + _root.dudenum]._y / 40) * 40) - 20;
_root.da.orig = _root["duder" + _root.dudenum]._x / 40;
if (_root.dudernow == false) {
_root.da._visible = false;
}
if (_root.dudernow == true) {
_root.da._visible = true;
}
_root.da.rond = Math.round(_root["duder" + _root.dudenum]._x / 40);
mousecl++;
buff++;
if (buff > 15) {
pshot = true;
}
if (buff < 15) {
pshot = false;
}
if ((proceednow == false) && (_root.hero._y < 2000)) {
_root.hero._y = _root.hero._y + fall;
fall = fall + 2;
}
if (((dudernow == true) && (gameover == false)) && (!(_root["duder" + _root.dudenum].typee === 55))) {
if (_root["duder" + _root.dudenum]._y > 1000) {
_root.dudernow = false;
_root.buffyo = 0;
_root["duder" + _root.dudenum].removeMovieClip();
}
xmove = xmove * 0.5;
if (_root["duder" + _root.dudenum]._xscale > 0) {
buffer = _root["duder" + _root.dudenum]._x + 40;
} else {
buffer = _root["duder" + _root.dudenum]._x - 40;
}
if ((buffer < _root.vcam._x) || (buffer > _root.vcam._x)) {
_root.goscreen._x = _root.vcam._x + Math.round((buffer - _root.vcam._x) / 4);
_root.vcam._x = _root.vcam._x + Math.round((buffer - _root.vcam._x) / 4);
_root.goscreen._y = _root.vcam._y + Math.round(((_root["duder" + _root.dudenum]._y - camYBuffer) - _root.vcam._y) / 4);
}
if (((_root["duder" + _root.dudenum]._y - camYBuffer) < _root.vcam._y) || ((_root["duder" + _root.dudenum]._y - camYBuffer) > _root.vcam._y)) {
_root.vcam._y = (_root.vcam._y + Math.round(((_root["duder" + _root.dudenum]._y - camYBuffer) - _root.vcam._y) / 4)) - 10;
}
_root._x = ((-(_root.vcam._x - (_root.vcam.camframe._width / 2))) * Stage.width) / _root.vcam.camframe._width;
_root._y = ((-(_root.vcam._y - (_root.vcam.camframe._height / 2))) * Stage.height) / _root.vcam.camframe._height;
_root._xscale = (Stage.width / _root.vcam.camframe._width) * 100;
_root._yscale = (Stage.height / _root.vcam.camframe._height) * 100;
}
if (((dudernow == true) && (gameover == false)) && (_root["duder" + _root.dudenum].typee == 55)) {
xmove = xmove * 0.5;
if (_root["duder" + _root.dudenum]._xscale > 0) {
buffer = _root["duder" + _root.dudenum]._x + 40;
} else {
buffer = _root["duder" + _root.dudenum]._x - 40;
}
if ((buffer < _root.vcam._x) || (buffer > _root.vcam._x)) {
_root.goscreen._x = _root.vcam._x + Math.round((buffer - _root.vcam._x) / 4);
_root.vcam._x = _root.vcam._x + Math.round((buffer - _root.vcam._x) / 4);
_root.goscreen._y = _root.vcam._y + Math.round(((_root["duder" + _root.dudenum]._y - camYBuffer) - _root.vcam._y) / 4);
}
if ((((_root["duder" + _root.dudenum]._y + 200) - camYBuffer) < _root.vcam._y) || (((_root["duder" + _root.dudenum]._y + 200) - camYBuffer) > _root.vcam._y)) {
_root.vcam._y = (_root.vcam._y + Math.round((((_root["duder" + _root.dudenum]._y + 200) - camYBuffer) - _root.vcam._y) / 4)) - 10;
}
_root._x = ((-(_root.vcam._x - (_root.vcam.camframe._width / 2))) * Stage.width) / _root.vcam.camframe._width;
_root._y = ((-(_root.vcam._y - (_root.vcam.camframe._height / 2))) * Stage.height) / _root.vcam.camframe._height;
_root._xscale = (Stage.width / _root.vcam.camframe._width) * 100;
_root._yscale = (Stage.height / _root.vcam.camframe._height) * 100;
}
if (((dudernow == false) && (buffyo > 10)) && (_root.gameover == false)) {
if (_root.hero._xscale > 0) {
buffer = _root.hero._x + 40;
} else {
buffer = _root.hero._x - 40;
}
if ((buffer < _root.vcam._x) || (buffer > _root.vcam._x)) {
_root.goscreen._x = _root.vcam._x + Math.round((buffer - _root.vcam._x) / 4);
_root.vcam._x = _root.vcam._x + Math.round((buffer - _root.vcam._x) / 4);
_root.goscreen._y = _root.vcam._y + Math.round(((_root.hero._y - camYBuffer) - _root.vcam._y) / 4);
}
if (((_root.hero._y - camYBuffer) < _root.vcam._y) || ((_root.hero._y - camYBuffer) > _root.vcam._y)) {
_root.vcam._y = (_root.vcam._y + Math.round(((_root.hero._y - camYBuffer) - _root.vcam._y) / 4)) - 10;
}
_root._x = ((-(_root.vcam._x - (_root.vcam.camframe._width / 2))) * Stage.width) / _root.vcam.camframe._width;
_root._y = ((-(_root.vcam._y - (_root.vcam.camframe._height / 2))) * Stage.height) / _root.vcam.camframe._height;
_root._xscale = (Stage.width / _root.vcam.camframe._width) * 100;
_root._yscale = (Stage.height / _root.vcam.camframe._height) * 100;
}
if ((((dudernow == false) && (buffyo > 10)) && (gameover == false)) && (proceednow == false)) {
if (Key.isDown(65)) {
xmove = -7;
_root.hero._xscale = -100;
}
if (Key.isDown(68)) {
xmove = 7;
_root.hero._xscale = 100;
}
if (((((Key.isDown(87) && (_root.dudernow == false)) && (jumpp == true)) && (fall > 0)) && (_root.grnd.hitTest(_root.hero._x, _root.hero._y, true))) && (!_root.grnd.hitTest(_root.hero._x, _root.hero._y - 50, true))) {
fall = -13;
_root.hero._y = _root.hero._y - 15;
jumpp = false;
if (_root.soundfx == true) {
jumpsound = new Sound(this);
jumpsound.attachSound("jump");
jumpsound.setVolume(50);
jumpsound.start(0, 1);
}
}
}
_root.hero._x = _root.hero._x + xmove;
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
xmove = xmove * 0.5;
}
if (dudernow == false) {
xmove = xmove * 0.6;
}
if (((_root.gameover == false) && (!_root.grnd.hitTest(_root.hero._x, _root.hero._y + 20, true))) && (proceednow == false)) {
_root.hero.gotoAndPlay("midair");
}
if (_root.proceednow == false) {
if (fall < -20) {
while (_root.grnd.hitTest(_root.hero._x + 15, _root.hero._y + 10, true)) {
_root.hero._x = _root.hero._x - 1;
}
while (_root.grnd.hitTest(_root.hero._x - 15, _root.hero._y + 10, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
if (fall > 20) {
while (_root.grnd.hitTest(_root.hero._x + 15, _root.hero._y - 50, true)) {
_root.hero._x = _root.hero._x - 1;
}
while (_root.grnd.hitTest(_root.hero._x - 15, _root.hero._y - 50, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
if (fall < 20) {
while (_root.grnd.hitTest(_root.hero._x + 15, _root.hero._y - 20, true)) {
_root.hero._x = _root.hero._x - 1;
}
while (_root.grnd.hitTest(_root.hero._x - 15, _root.hero._y - 20, true)) {
_root.hero._x = _root.hero._x + 1;
}
}
while (_root.grnd.hitTest(_root.hero._x, _root.hero._y, true) && (_root.fall > 0)) {
_root.hero._y = _root.hero._y - 1;
fall = 5;
}
}
if (_root.proceednow == true) {
while (_root.grnd.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero._y = _root.hero._y - 1;
}
}
if (_root.grnd.hitTest(_root.hero._x, _root.hero._y + 10, true) && (jumpp == false)) {
jumpp = true;
}
while (_root.grnd.hitTest(_root.hero._x, _root.hero._y - 50, true) && (_root.fall < 0)) {
_root.hero._y = _root.hero._y + 1;
fall = 5;
}
if (_root["duder" + _root.dudenum].fall > 20) {
while (_root.grnd.hitTest(_root["duder" + _root.dudenum]._x + 10, _root["duder" + _root.dudenum]._y - 50, true)) {
_root["duder" + _root.dudenum]._x = _root["duder" + _root.dudenum]._x - 1;
}
while (_root.grnd.hitTest(_root["duder" + _root.dudenum]._x - 10, _root["duder" + _root.dudenum]._y - 50, true)) {
_root["duder" + _root.dudenum]._x = _root["duder" + _root.dudenum]._x + 1;
}
}
if (_root["duder" + _root.dudenum].fall < 20) {
while (_root.grnd.hitTest(_root["duder" + _root.dudenum]._x + 10, _root["duder" + _root.dudenum]._y - 20, true)) {
_root["duder" + _root.dudenum]._x = _root["duder" + _root.dudenum]._x - 1;
}
while (_root.grnd.hitTest(_root["duder" + _root.dudenum]._x - 10, _root["duder" + _root.dudenum]._y - 20, true)) {
_root["duder" + _root.dudenum]._x = _root["duder" + _root.dudenum]._x + 1;
}
}
if (_root.grnd.hitTest(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y + 10, true) && (_root["duder" + _root.dudenum].jumpp == false)) {
_root["duder" + _root.dudenum].jumpp = true;
_root["duder" + _root.dudenum].doublejx = 0;
}
while (_root.grnd.hitTest(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y, true) && (_root["duder" + _root.dudenum].fall > 0)) {
_root["duder" + _root.dudenum]._y = _root["duder" + _root.dudenum]._y - 1;
_root["duder" + _root.dudenum].fall = 1;
}
while (_root.grnd.hitTest(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 40, true) && (_root["duder" + _root.dudenum].fall < 0)) {
_root["duder" + _root.dudenum]._y = _root["duder" + _root.dudenum]._y + 1;
_root["duder" + _root.dudenum].fall = 2;
}
var _local3 = 0;
while (_local3 <= _root.o) {
if (_root.grnd.hitTest(_root["ebul" + _local3]._x + 10, _root["ebul" + _local3]._y - 20, true)) {
_root["ebul" + _local3]._x = _root["ebul" + _local3]._x - 10;
_root["ebul" + _local3].xmove = -2;
}
if (_root.grnd.hitTest(_root["ebul" + _local3]._x - 10, _root["ebul" + _local3]._y - 20, true)) {
_root["ebul" + _local3]._x = _root["ebul" + _local3]._x + 10;
_root["ebul" + _local3].xmove = 2;
}
while (_root.grnd.hitTest(_root["ebul" + _local3]._x, _root["ebul" + _local3]._y, true)) {
_root["ebul" + _local3]._y = _root["ebul" + _local3]._y - 1;
_root["ebul" + _local3].fall = 0;
}
_local3++;
}
};
function duder(xxx, yyy) {
_root.newObject = attachMovie("duder", "duder" + dudenum, i + 30, {_x:xxx, _y:yyy});
i++;
_root.dudernow = true;
_root.newObject.jumpp = true;
_root.newObject.fall = 0;
_root.newObject.xmove = 0;
_root.newObject.doublejx = 0;
_root.newObject.doublebuff = 0;
_root.newObject.typee = 1;
_root.newObject.onEnterFrame = function () {
if (this.fall < 30) {
this.fall = this.fall + 2;
}
this._y = this._y + this.fall;
this._x = this._x + this.xmove;
this.doublebuff++;
if (_root.gameover == false) {
if (!_root.grnd.hitTest(this._x, this._y + 20, true)) {
this.gotoAndPlay("midair");
}
if (Key.isDown(65)) {
this.xmove = -7;
this._xscale = -100;
}
if (Key.isDown(68)) {
this.xmove = 7;
this._xscale = 100;
}
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
this.xmove = this.xmove * 0.5;
}
if (((((_root.wkeypress == 1) && (this.jumpp == true)) && (this.fall > 0)) && (_root.grnd.hitTest(this._x, this._y, true))) && (!_root.grnd.hitTest(this._x, this._y - 40, true))) {
this.fall = -25;
this._y = this._y - 15;
this.jumpp = false;
this.doublebuff = 0;
this.doublejx++;
if (_root.soundfx == true) {
jumpsound = new Sound(this);
jumpsound.attachSound("jump");
jumpsound.setVolume(50);
jumpsound.start(0, 1);
}
}
if (((((_root.wkeypress == 1) && (this.doublejx == 1)) && (this.doublebuff > 5)) && (!_root.grnd.hitTest(this._x, this._y, true))) && (!_root.grnd.hitTest(this._x, this._y - 40, true))) {
this.fall = -25;
this._y = this._y - 15;
_root.vcam._y = _root.vcam._y - 15;
if (_root.soundfx == true) {
jumpsound = new Sound(this);
jumpsound.attachSound("jump");
jumpsound.setVolume(50);
jumpsound.start(0, 1);
}
_root.splattter(this._x, this._y, random(5) + 1, random(5) + 1, 1);
_root.splattter(this._x, this._y, -(random(5) + 1), random(5) + 1, 1);
_root.splattter(this._x, this._y, -(random(5) + 1), random(5) + 1, 1);
this.jumpp = false;
this.doublejx++;
}
if (Key.isDown(32) && (!_root.grnd.hitTest(_root.da._x, _root.da._y, true))) {
_root.placesound = true;
_root.grnd.toblock((Math.floor(_root.da._x / 40) * 40) + 20, (Math.round(_root.da._y / 40) * 40) - 20);
_root.dudernow = false;
_root.rumble2.play();
_root.buffyo = 0;
_root.splatnow = true;
if ((_root.hero.boxh.hitTest(_root.da) && (!_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x - 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (!_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x + 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._y = _root.hero._y - 50;
}
this.removeMovieClip();
}
}
if (this.die == true) {
_root.dudernow = false;
this.removeMovieClip();
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function flyduder(xxx, yyy, xy) {
_root.newObject = attachMovie("flyduder", "duder" + dudenum, i + 30, {_x:xxx, _y:yyy});
i++;
_root.dudernow = true;
_root.newObject.jumpp = true;
_root.newObject.fall = 0;
_root.newObject.xmove = 0;
_root.newObject.typee = 2;
_root.newObject.movee = xy;
_root.newObject.onEnterFrame = function () {
this._y = this._y + this.fall;
this._x = this._x + this.xmove;
this.doublebuff++;
if (_root.gameover == false) {
if (Key.isDown(65)) {
this.xmove = -7;
this._xscale = -100;
}
if (Key.isDown(68)) {
this.xmove = 7;
this._xscale = 100;
}
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
this.xmove = this.xmove * 0.8;
}
if (Key.isDown(87) && (!_root.grnd.hitTest(this._x, this._y - 40, true))) {
this.fall = -7;
}
if (Key.isDown(83) && (!_root.grnd.hitTest(this._x, this._y + 20, true))) {
this.fall = 7;
}
if ((!Key.isDown(83)) && (!Key.isDown(87))) {
this.fall = this.fall * 0.8;
}
if ((Key.isDown(32) && (this.movee == 1)) && (!_root.grnd.hitTest(_root.da._x, _root.da._y, true))) {
_root.placesound = true;
_root.grnd.flyblock((Math.floor(_root.da._x / 40) * 40) + 20, (Math.round(_root.da._y / 40) * 40) - 20);
_root.dudernow = false;
_root.rumble2.play();
_root.buffyo = 0;
_root.splatnow = true;
if ((_root.hero.boxh.hitTest(_root.da) && (!_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x - 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (!_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x + 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._y = _root.hero._y - 50;
}
this.removeMovieClip();
}
if ((Key.isDown(32) && (this.movee == 2)) && (!_root.grnd.hitTest(_root.da._x, _root.da._y, true))) {
_root.placesound = true;
_root.grnd.moveblock((Math.floor(_root.da._x / 40) * 40) + 20, (Math.round(_root.da._y / 40) * 40) - 20);
_root.dudernow = false;
_root.rumble2.play();
_root.buffyo = 0;
_root.splatnow = true;
if ((_root.hero.boxh.hitTest(_root.da) && (!_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x - 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (!_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x + 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._y = _root.hero._y - 50;
}
this.removeMovieClip();
}
if (this.die == true) {
_root.dudernow = false;
this.removeMovieClip();
}
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function ebul(xxx, yyy, xmoov) {
_root.newObject = attachMovie("ebul", "ebul" + o, o, {_x:xxx, _y:yyy});
o++;
_root.newObject.fall = 0;
_root.newObject.xmove = xmoov;
_root.newObject.onEnterFrame = function () {
this._y = this._y + this.fall;
this.fall = this.fall + 2;
this._xscale = (-(this.xmove / Math.abs(this.xmove))) * 100;
this._x = this._x + this.xmove;
if ((this.hit.hitTest(_root.hero) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.hero.gotoAndPlay("die");
_root.gameover = true;
}
if ((this.hit.hitTest(_root["duder" + _root.dudenum]) && (!(_root["duder" + _root.dudenum].typee === 3))) && (_root.proceednow == false)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 2);
_root.oneparticle = 0;
_root.rumble2.play();
_root.buffyo = 0;
}
this.fall = this.fall + 2;
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function flyebul(xxx, yyy) {
_root.newObject = attachMovie("flyebul", "ebul" + o, o, {_x:xxx, _y:yyy});
o++;
_root.newObject.speeed = 2;
_root.newObject.onEnterFrame = function () {
while (_root.grnd.hitTest(this._x, this._y - 40, true)) {
this._y = this._y + 1;
}
if (_root.dudernow == true) {
if ((((_root["duder" + _root.dudenum]._x > (this._x - 200)) && (_root["duder" + _root.dudenum]._x < (this._x + 200))) && (_root["duder" + _root.dudenum]._y < (this._y + 200))) && (_root["duder" + _root.dudenum]._y < (this._y + 200))) {
this._x = this._x + (Math.cos((this.turn._rotation * Math.PI) / 180) * this.speeed);
this._y = this._y + (Math.sin((this.turn._rotation * Math.PI) / 180) * this.speeed);
}
this.turn._rotation = Math.atan2(_root["duder" + _root.dudenum]._y - this._y, _root["duder" + _root.dudenum]._x - this._x) * 57.29578;
}
if (_root.dudernow == false) {
if ((((_root.hero._x > (this._x - 200)) && (_root.hero._x < (this._x + 200))) && (_root.hero._y < (this._y + 200))) && (_root.hero._y < (this._y + 200))) {
this._x = this._x + (Math.cos((this.turn._rotation * Math.PI) / 180) * this.speeed);
this._y = this._y + (Math.sin((this.turn._rotation * Math.PI) / 180) * this.speeed);
}
this.turn._rotation = Math.atan2(_root.hero._y - this._y, _root.hero._x - this._x) * 57.29578;
}
if (((_root.hero._x + 10) > this._x) && (_root.dudernow == false)) {
this._xscale = -100;
}
if (((_root.hero._x - 10) < this._x) && (_root.dudernow == false)) {
this._xscale = 100;
}
if (((_root["duder" + _root.dudenum]._x + 10) > this._x) && (_root.dudernow == true)) {
this._xscale = -100;
}
if (((_root["duder" + _root.dudenum]._x - 10) < this._x) && (_root.dudernow == true)) {
this._xscale = 100;
}
if (_root.proceednow == false) {
if (this.hit.hitTest(_root.hero) && (_root.gameover == false)) {
_root.hero._visible = false;
_root.flyebdie(_root.hero._x, _root.hero._y - 20, 6);
_root.rumble2.play();
_root.gameover = true;
}
if ((this.hit.hitTest(_root["duder" + _root.dudenum]) && (_root["duder" + _root.dudenum].typee == 2)) && (_root.gameover == false)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 3);
_root.rumble2.play();
_root.buffyo = 0;
}
if ((this.hit.hitTest(_root["duder" + _root.dudenum]) && (_root["duder" + _root.dudenum].typee == 1)) && (_root.gameover == false)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.ebuldie(this._x, this._y + 47);
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 2);
_root.ebuldie(this._x, this._y + 47);
_root.rumble2.play();
_root.flyebdie(this._x, this._y, 1);
_root.buffyo = 0;
this.removeMovieClip();
}
}
this.fall = this.fall + 2;
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function flyebul2(xxx, yyy) {
_root.newObject = attachMovie("flyebul", "ebul" + o, o, {_x:xxx, _y:yyy});
o++;
_root.newObject.speeed = 1.5;
_root.newObject.onEnterFrame = function () {
this.turn._rotation = Math.atan2(_root.hero._y - this._y, _root.hero._x - this._x) * 57.29578;
if (_root.hero._x > (this._x + 10)) {
this._xscale = -100;
}
if (_root.hero._x < (this._x - 10)) {
this._xscale = 100;
}
if (_root.proceednow == false) {
if ((((_root.hero._x > (this._x - 400)) && (_root.hero._x < (this._x + 400))) && (_root.hero._y < (this._y + 400))) && (_root.hero._y < (this._y + 400))) {
this._x = this._x + (Math.cos((this.turn._rotation * Math.PI) / 180) * this.speeed);
this._y = this._y + (Math.sin((this.turn._rotation * Math.PI) / 180) * this.speeed);
}
if ((this.hit.hitTest(_root["duder" + _root.dudenum]) && (_root["duder" + _root.dudenum].typee == 2)) && (_root.gameover == false)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 3);
_root.rumble2.play();
_root.buffyo = 0;
}
if ((this.hit.hitTest(_root["duder" + _root.dudenum]) && (_root["duder" + _root.dudenum].typee == 1)) && (_root.gameover == false)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 2);
_root.ebuldie(this._x, this._y + 47);
_root.flyebdie(this._x, this._y, 1);
_root.rumble2.play();
_root.buffyo = 0;
this.removeMovieClip();
}
if (this.hit.hitTest(_root.hero) && (_root.gameover == false)) {
_root.hero._visible = false;
_root.flyebdie(_root.hero._x, _root.hero._y - 20, 6);
_root.rumble2.play();
_root.gameover = true;
}
}
this.fall = this.fall + 2;
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function eatebul(xxx, yyy, xmoov) {
if (_root.enemycount < 11) {
_root.newObject = attachMovie("eatebul", "eatebul" + o, o, {_x:xxx, _y:yyy});
o++;
_root.newObject.xmove = xmoov;
_root.newObject.still = 35;
_root.newObject.onEnterFrame = function () {
this._xscale = (-(this.xmove / Math.abs(this.xmove))) * 100;
if (_root.proceednow == false) {
if (this.still > 30) {
this._x = this._x + this.xmove;
this.gotoAndStop(1);
}
this.still++;
if (this.hit.hitTest(_root.hero)) {
_root.hero._xscale = this._xscale;
_root.hero.gotoAndStop("die2");
if (_root.gameover == false) {
_root.gameover = true;
}
}
if (((this.hit.hitTest(_root["duder" + _root.dudenum]) && (!(_root["duder" + _root.dudenum].typee === 3))) && (_root.gameover == false)) && (!(_root["duder" + _root.dudenum].typee === 55))) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 2);
_root.oneparticle = 0;
_root.ebuldie(this._x, this._y + 47);
_root.rumble2.play();
_root.buffyo = 0;
}
if (((this.hit.hitTest(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 30, true) && (_root.gameover == false)) && (_root["duder" + _root.dudenum].typee == 55)) && (_root["duder" + _root.dudenum].fall < 10)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 4);
_root.oneparticle = 0;
_root.rumble2.play();
_root.buffyo = 0;
_root.needed++;
_root.dudernow = false;
}
if ((this.hit.hitTest(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 10, true) && (_root.gameover == false)) && (_root["duder" + _root.dudenum].typee == 55)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
_root.flyebdie(_root["duder" + _root.dudenum]._x, _root["duder" + _root.dudenum]._y - 20, 4);
_root.flyebdie(this._x, this._y, 5);
_root.ebuldie(this._x, this._y + 47);
_root.rumble2.play();
_root.buffyo = 0;
_root.needed++;
this.removeMovieClip();
_root["duder" + _root.dudenum].removeMovieClip();
_root.dudernow = false;
}
}
if (_root.levelnow < 19) {
var _local3 = 150;
while (_local3 <= _root.grnd.i) {
if (this.hitTest(_root.grnd["yayness" + _local3]._x - (this.xmove * 10), _root.grnd["yayness" + _local3]._y, true) && (this.still > 30)) {
_root.grnd["yayness" + _local3].removeMovieClip();
}
_local3++;
}
}
this.fall = this.fall + 2;
if ((((this._x < 360) && (this._x > 320)) && (_root.resett > 30)) && (_root.levelnow == 18)) {
if (_root.gameover == false) {
_root.gameover = true;
}
this.xmove = 0;
}
if ((this._x > 420) && (_root.levelnow == 17)) {
_root.mugbreak = true;
}
if (((this._x > 420) && (_root.resett > 30)) && (_root.levelnow == 17)) {
if (_root.gameover == false) {
_root.gameover = true;
}
_root.mugbreak = true;
this.xmove = 0;
}
if ((_root.resett < 2) || (_root.levelnow == 19)) {
this.removeMovieClip();
}
};
}
}
function winblock(xxx, yyy, typee) {
_root.newObject = attachMovie("endblock", "yayness" + i, i + 15, {_x:xxx, _y:yyy});
i++;
_root.mugbreak = false;
_root.newObject.readynow = false;
_root.newObject.proceed = 0;
_root.newObject.itemss.gotoAndStop(_root.levelnow + 1);
_root.itemtype = typee;
_root.talk.gotoAndStop(_root.levelnow + 1);
_root.newObject.onEnterFrame = function () {
if ((_root.hero.hitTest(this.hit) && (_root.dudernow == false)) && (this.readynow == false)) {
this.readynow = true;
this.gotoAndPlay(2);
if (((!(_root.levelnow === 4)) && (!(_root.levelnow === 6))) && (!(_root.levelnow === 16))) {
_root.proceednow = true;
_root.winsound = true;
_root.hero.gotoAndPlay("yay");
}
if ((_root.levelnow == 4) && (_root.resett > 50)) {
_root.needed++;
_root.collectsound = true;
}
if ((_root.levelnow == 6) && (_root.resett > 50)) {
_root.needed++;
_root.collectsound = true;
}
if ((_root.levelnow == 16) && (_root.resett > 50)) {
_root.needed++;
_root.collectsound = true;
}
}
if (this.readynow == true) {
this.proceed++;
}
if (this.proceed > 90) {
if (((!(_root.levelnow === 4)) && (!(_root.levelnow === 6))) && (!(_root.levelnow === 16))) {
_root.goscreen.goon.gotoAndPlay(2);
}
}
if (this.proceed > 90) {
if ((_root.levelnow == 0) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 1;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(2);
}
if ((_root.levelnow == 1) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 2;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(3);
}
if ((_root.levelnow == 2) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 3;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(4);
}
if ((_root.levelnow == 3) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 4;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(5);
}
if ((_root.levelnow == 5) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 6;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(7);
}
if ((_root.levelnow == 7) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 8;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(9);
}
if ((_root.levelnow == 8) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 9;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(10);
}
if ((_root.levelnow == 9) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 10;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(11);
}
if ((_root.levelnow == 10) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 12;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(13);
}
if ((_root.levelnow == 12) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 13;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(14);
}
if ((_root.levelnow == 13) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 14;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(15);
}
if ((_root.levelnow == 14) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 15;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(16);
}
if ((_root.levelnow == 15) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 16;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(17);
}
if ((_root.levelnow == 17) && (_root.resett > 50)) {
_root.resett = 0;
_root.levelnow = 18;
_root.hero._y = -100;
_root.hero._x = 100;
_root.grnd.gotoAndStop(19);
}
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function trapduder(xxx, yyy) {
_root.newObject = attachMovie("trapduder", "duder" + dudenum, i + 30, {_x:xxx, _y:yyy});
i++;
_root.dudernow = true;
_root.newObject.jumpp = true;
_root.newObject.fall = 0;
_root.newObject.xmove = 0;
_root.newObject.typee = 3;
_root.newObject.onEnterFrame = function () {
if (this.fall < 30) {
this.fall = this.fall + 2;
}
this._y = this._y + this.fall;
this._x = this._x + this.xmove;
this.doublebuff++;
if (_root.gameover == false) {
if (!_root.grnd.hitTest(this._x, this._y + 20, true)) {
this.gotoAndPlay("midair");
}
if (Key.isDown(65)) {
this.xmove = -3;
this._xscale = -100;
}
if (Key.isDown(68)) {
this.xmove = 3;
this._xscale = 100;
}
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
this.xmove = this.xmove * 0.5;
}
if (((((_root.wkeypress == 1) && (this.jumpp == true)) && (this.fall > 0)) && (_root.grnd.hitTest(this._x, this._y, true))) && (!_root.grnd.hitTest(this._x, this._y - 40, true))) {
this.fall = -15;
this._y = this._y - 15;
this.jumpp = false;
this.doublebuff = 0;
this.doublejx++;
if (_root.soundfx == true) {
jumpsound = new Sound(this);
jumpsound.attachSound("jump");
jumpsound.setVolume(50);
jumpsound.start(0, 1);
}
}
if (this.diedie.hitTest(_root.hero.hit) && (_root.gameover == false)) {
_root.hero.gotoAndPlay("die");
_root.gameover = true;
this.xmove = 0;
}
if (Key.isDown(32) && (!_root.grnd.hitTest(_root.da._x, _root.da._y, true))) {
_root.placesound = true;
_root.grnd.trapblock((Math.floor(_root.da._x / 40) * 40) + 20, (Math.round(_root.da._y / 40) * 40) - 20);
_root.dudernow = false;
_root.rumble2.play();
_root.buffyo = 0;
_root.splatnow = true;
if ((_root.hero.boxh.hitTest(_root.da) && (!_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x - 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (!_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._x = _root.hero._x + 20;
}
if ((_root.hero.boxh.hitTest(_root.da) && (_root.grnd.hitTest(_root.da._x - 30, _root.da._y, true))) && (_root.grnd.hitTest(_root.da._x + 30, _root.da._y, true))) {
_root.hero._y = _root.hero._y - 50;
}
this.removeMovieClip();
}
if (this.die == true) {
_root.dudernow = false;
this.removeMovieClip();
}
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function bombduder(xxx, yyy) {
_root.newObject = attachMovie("bombduder", "duder" + dudenum, i + 30, {_x:xxx, _y:yyy});
i++;
_root.dudernow = true;
_root.newObject.jumpp = true;
_root.newObject.fall = 0;
_root.newObject.xmove = 0;
_root.newObject.typee = 55;
_root.newObject.onEnterFrame = function () {
if (this.fall < 30) {
this.fall = this.fall + 2;
}
trace(this.fall);
this._y = this._y + this.fall;
this._x = this._x + this.xmove;
this.doublebuff++;
if (_root.gameover == false) {
if (!_root.grnd.hitTest(this._x, this._y + 20, true)) {
this.gotoAndPlay("midair");
}
if (Key.isDown(65)) {
this.xmove = -2;
this._xscale = -100;
}
if (Key.isDown(68)) {
this.xmove = 2;
this._xscale = 100;
}
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
this.xmove = this.xmove * 0.5;
}
if (Key.isDown(32)) {
_root.rumble2.play();
_root.buffyo = 0;
_root.splatnow = true;
_root.dudernow = false;
this.removeMovieClip();
}
if (this.die == true) {
_root.dudernow = false;
this.removeMovieClip();
}
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function splattter(xpos, ypos, xspd, yspd, typee) {
_root.newObject = attachMovie("splatterr", "splatter" + i, i + 4000, {_x:xpos, _y:ypos});
i++;
_root.newObject.fall = yspd;
_root.newObject.xboost = xspd;
_root.newObject.gotoAndStop(typee);
_root.newObject.rem = random(20) + 5;
_root.newObject.scaler = random(10) + 1;
_root.newObject._xscale = 150;
_root.newObject._yscale = 150;
if (_root.levelnow == 19) {
_root.newObject._rotation = random(90) + 1;
}
_root.newObject.onEnterFrame = function () {
this._yscale = this._xscale;
this._x = this._x + (this.xboost / 2);
this._y = this._y + (this.fall / 2);
if (!(this.xmoove === 0)) {
this._rotation = this._rotation + (this.xboost * 5);
}
if (this.xmoove == 0) {
this._rotation = this._rotation + (this.fall * 5);
}
this.rem--;
this.scaler = this.scaler - 1;
if (this._xscale > 0) {
this._xscale = this._xscale + this.scaler;
this._yscale = this._yscale + this.scaler;
}
if (this.rem < 6) {
this._alpha = this._alpha - 20;
}
if (((this.rem < 0) || (_root.lost == true)) || (_root.win == true)) {
removeMovieClip(this);
}
};
}
function flyebdie(xpos, ypos, typeee) {
if (_root.oneparticle > 3) {
_root.collidesound = true;
_root.newObject = attachMovie("fdie", "splatter" + i, i + 4000, {_x:xpos, _y:ypos});
i++;
_root.newObject.fall = -(random(15) + 10);
_root.newObject.rotater = random(20) + 15;
_root.newObject.rem = 15;
_root.newObject.gotoAndStop(typeee);
_root.newObject._xscale = 95;
_root.newObject._yscale = 95;
_root.newObject.onEnterFrame = function () {
this.fall++;
this._y = this._y + this.fall;
this._rotation = this._rotation + this.rotater;
if (this.fall > 0) {
this.rem--;
}
this.scaler = this.scaler - 1;
if (this.rem < 6) {
this._alpha = this._alpha - 20;
}
if (((this.rem < 0) || (_root.lost == true)) || (_root.win == true)) {
removeMovieClip(this);
}
};
}
}
function cloudparticle() {
if (_root.oneparticle > 3) {
_root.newObject = attachMovie("layerpart", "splatter" + i, i + 4000, {_x:((_root.hero._x - 30) + random(60)) + 1, _y:_root.cloudlayer._y - 80});
i++;
_root.newObject.fall = -(random(15) + 10);
_root.newObject.xmove = (-5 + random(10)) + 1;
_root.newObject.rotater = random(10) + 5;
_root.newObject.rem = 15;
_root.newObject.gotoAndStop(random(13) + 1);
_root.newObject._xscale = 180;
_root.newObject._yscale = 180;
_root.newObject.onEnterFrame = function () {
this.fall++;
this._y = this._y + this.fall;
this._x = this._x + this.xmove;
this._rotation = this._rotation + this.rotater;
if (this.fall > 0) {
this.rem--;
}
this.scaler = this.scaler - 1;
if (this.rem < 6) {
this._alpha = this._alpha - 20;
}
if (((this.rem < 0) || (_root.lost == true)) || (_root.win == true)) {
removeMovieClip(this);
}
};
}
}
function ebuldie(xpos, ypos) {
_root.newObject = attachMovie("edie", "splatter" + i, i + 4000, {_x:xpos, _y:ypos});
i++;
_root.newObject.rem = random(20) + 5;
_root.newObject.onEnterFrame = function () {
this.rem--;
if (((this.rem < 0) || (_root.lost == true)) || (_root.win == true)) {
removeMovieClip(this);
}
};
}
function planecloud(xpos, ypos) {
_root.newObject = attachMovie("clouds", "splatter" + i, i, {_x:xpos, _y:ypos});
i++;
_root.newObject.gotoAndStop(random(10) + 1);
_root.newObject.onEnterFrame = function () {
if (_root.resett < 2) {
this.removeMovieClip();
}
this._x = this._x - 10;
if (this._x < -100) {
removeMovieClip(this);
}
};
}
o = 2;
dudenum = 0;
i = 0;
menuplease = false;
lmiz.onEnterFrame = function () {
if (_root.levelnow == 3) {
if (_root.vcam._x < (-160 + (Stage.width / 2))) {
_root.vcam._x = -160 + (Stage.width / 2);
_root.goscreen._x = -160 + (Stage.width / 2);
}
if (_root.vcam._x > (2040 - (Stage.width / 2))) {
_root.vcam._x = 2040 - (Stage.width / 2);
_root.goscreen._x = 2040 - (Stage.width / 2);
}
if ((enemystart == false) && (_root.hero._x > 1000)) {
enemystart = true;
enemyspawns = 88;
}
if (enemystart == true) {
if (enemycount < 2) {
enemyspawns++;
}
if (enemycount >= 2) {
enemyspawns = 0;
}
if (enemyspawns == 90) {
_root.ebul(1980, -170, -2);
enemyspawns = 0;
enemycount++;
_root.hero.tester.gotoAndPlay(1);
}
}
}
if (_root.levelnow == 4) {
if (_root.vcam._x < (-160 + (Stage.width / 2))) {
_root.vcam._x = -160 + (Stage.width / 2);
_root.goscreen._x = -160 + (Stage.width / 2);
}
if (_root.vcam._x > (1080 - (Stage.width / 2))) {
_root.vcam._x = 1080 - (Stage.width / 2);
_root.goscreen._x = 1080 - (Stage.width / 2);
}
if ((enemycount < 2) && (_root.proceednow == false)) {
enemyspawns++;
}
if ((enemyspawns == 90) && (_root.proceednow == false)) {
_root.ebul(1020, 80, -2);
_root.ebul(-100, 80, 2);
enemyspawns = 0;
enemycount++;
}
if (_root.needed == 3) {
proceed++;
if (_root.proceednow == false) {
_root.winsound = true;
}
_root.proceednow = true;
}
if ((_root.resett > 50) && (proceed == 90)) {
_root.resett = 0;
_root.levelnow = 5;
_root.hero._y = -50;
_root.hero._x = 100;
proceed = 0;
_root.goscreen.goon.gotoAndPlay(2);
_root.grnd.gotoAndStop(6);
}
}
if (_root.levelnow == 6) {
if (_root.vcam._x < (-160 + (Stage.width / 2))) {
_root.vcam._x = -160 + (Stage.width / 2);
_root.goscreen._x = -160 + (Stage.width / 2);
}
if (_root.vcam._x > (1080 - (Stage.width / 2))) {
_root.vcam._x = 1080 - (Stage.width / 2);
_root.goscreen._x = 1080 - (Stage.width / 2);
}
if (_root.needed == 4) {
proceed++;
if (_root.proceednow == false) {
_root.winsound = true;
}
_root.proceednow = true;
}
if ((_root.resett > 50) && (proceed == 90)) {
_root.resett = 0;
_root.levelnow = 7;
_root.hero._y = -50;
_root.hero._x = 100;
proceed = 0;
_root.goscreen.goon.gotoAndPlay(2);
_root.grnd.gotoAndStop(8);
}
}
if (_root.levelnow == 16) {
if (_root.needed == 9) {
proceed++;
if (proceed == 2) {
_root.winsound = true;
}
_root.proceednow = true;
}
if ((_root.resett > 50) && (proceed == 90)) {
_root.resett = 0;
_root.levelnow = 17;
_root.hero._y = -50;
_root.hero._x = 100;
proceed = 0;
_root.goscreen.goon.gotoAndPlay(2);
_root.grnd.gotoAndStop(18);
}
}
if (_root.levelnow == 18) {
if ((enemycount < 11) && (_root.proceednow == false)) {
enemyspawns++;
}
if (enemycount == 10) {
enemyspawns = 0;
}
if (enemyspawns == 120) {
_root.eatebul(820, 60, -2);
enemycount++;
}
if (enemyspawns == 240) {
_root.eatebul(-140, 60, 2);
enemyspawns = 0;
enemycount++;
}
if ((_root.resett > 50) && (_root.needed == 10)) {
_root.proceednow = true;
_root.talk.gotoAndStop(20);
}
}
if (_root.levelnow == 19) {
if (Key.isDown(87) && (_root.plane._y > 0)) {
if (_root.plane._rotation > -10) {
_root.plane._rotation = _root.plane._rotation - 2;
}
ymove = -7;
}
if (Key.isDown(83) && (_root.plane._y < 500)) {
if (_root.plane._rotation < 10) {
_root.plane._rotation = _root.plane._rotation + 2;
}
ymove = 7;
}
if ((!Key.isDown(83)) && (!Key.isDown(87))) {
ymove = ymove * 0.7;
if (_root.plane._rotation < 0) {
_root.plane._rotation = _root.plane._rotation + 2;
}
if (_root.plane._rotation > 0) {
_root.plane._rotation = _root.plane._rotation - 2;
}
}
if (Key.isDown(65) && (_root.plane._x > 0)) {
_root.xmove = -7;
}
if (Key.isDown(68) && (_root.plane._x < 700)) {
_root.xmove = 7;
}
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
xmove = xmove * 0.7;
}
_root.plane._x = _root.plane._x + _root.xmove;
_root.plane._y = _root.plane._y + ymove;
clouds++;
if (clouds > nextcloud) {
_root.planecloud(750, random(500) + 1);
nextcloud = random(30) + 5;
clouds = 0;
}
if (smoke == 5) {
_root.splattter(_root.plane._x - 45, _root.plane._y - 20, -(random(10) + 1), 0, 1);
smoke = 0;
}
smoke++;
if (_root.i > 500) {
_root.i = 0;
}
}
};
smoke = 0;
clouds = 0;
nextcloud = random(30) + 5;
ymove = 0;
proceed = 0;
enemyspawns = 0;
enemystart = false;
enemycount = 0;
needed = 0;
Instance of Symbol 206 MovieClip in Frame 525
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
}
Instance of Symbol 318 MovieClip in Frame 525
onClipEvent (enterFrame) {
this._x = (_root.vcam._x / 1.5) + 500;
this._y = _root.vcam._y / 1.5;
}
Instance of Symbol 210 MovieClip in Frame 525
onClipEvent (enterFrame) {
this._x = (_root.vcam._x / 2) + 500;
this._y = (_root.vcam._y / 2) - 100;
}
Instance of Symbol 364 MovieClip in Frame 525
onClipEvent (enterFrame) {
if (_root.resett > 3) {
this.gotoAndStop(_root.levelnow + 1);
}
}
Instance of Symbol 282 MovieClip in Frame 525
onClipEvent (load) {
_root.endtheme = new Sound(this);
_root.endtheme.attachSound("end");
_root.endtheme.setVolume(0);
_root.endtheme.start(-1, 99999);
}
Instance of Symbol 282 MovieClip in Frame 525
onClipEvent (load) {
if (_root.music == true) {
_root.maintheme = new Sound(this);
_root.maintheme.attachSound("main");
_root.maintheme.setVolume(60);
_root.maintheme.start(-1, 99999);
}
}
Frame 526
_root.goscreen._x = 350;
_root.goscreen._y = 260;
_root.goscreen.success._visible = true;
_root.plane.swapDepths(500);
Instance of Symbol 282 MovieClip in Frame 526
onClipEvent (load) {
if (_root.music == true) {
_root.creditstheme = new Sound(this);
_root.creditstheme.attachSound("credits");
_root.creditstheme.setVolume(40);
_root.creditstheme.start(-1, 99999);
}
}
Frame 529
gotoAndPlay ("menu");
Symbol 43 MovieClip Frame 1
gotoAndStop(random(10) + 2);
Symbol 59 MovieClip Frame 1
gotoAndStop(random(5) + 2);
Symbol 75 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 86 MovieClip [blocko] Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
if (Key.isDown(65) || (Key.isDown(68))) {
_parent.play();
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65) || (Key.isDown(68))) {
_parent.play();
}
}
Instance of Symbol 90 MovieClip in Symbol 95 MovieClip Frame 6
onClipEvent (load) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
_parent.gotoAndStop(1);
}
}
Symbol 99 MovieClip [duder] Frame 1
stop();
die = false;
Symbol 99 MovieClip [duder] Frame 4
gotoAndStop (1);
Symbol 99 MovieClip [duder] Frame 5
die = true;
Symbol 104 MovieClip [edie] Frame 10
stop();
Symbol 109 MovieClip [fps] Frame 1
fps = 30;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
var _local1 = new Date();
timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed) / 10;
lasttime = _local1.getMilliseconds();
};
Symbol 112 MovieClip [flyduder] Frame 1
stop();
die = false;
Symbol 112 MovieClip [flyduder] Frame 2
die = true;
Symbol 120 MovieClip [bombduder] Frame 1
stop();
die = false;
stop();
die = false;
Symbol 120 MovieClip [bombduder] Frame 4
gotoAndStop (1);
Symbol 120 MovieClip [bombduder] Frame 5
die = true;
Symbol 123 MovieClip [trapduder] Frame 1
stop();
die = false;
stop();
die = false;
Symbol 123 MovieClip [trapduder] Frame 4
gotoAndStop (1);
Symbol 123 MovieClip [trapduder] Frame 5
die = true;
Symbol 149 MovieClip Frame 1
stop();
Instance of Symbol 147 MovieClip in Symbol 149 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.mugbreak == true) {
this.gotoAndStop(2);
}
if (_root.mugbreak == false) {
this.gotoAndStop(1);
}
}
Symbol 153 MovieClip Frame 1
gotoAndStop(random(3) + 2);
Symbol 154 MovieClip [endblock] Frame 1
stop();
Symbol 154 MovieClip [endblock] Frame 2
_root.rumble1.play();
Symbol 154 MovieClip [endblock] Frame 42
stop();
Symbol 164 MovieClip [eatebul] Frame 1
stop();
Symbol 186 MovieClip [splatterr] Frame 1
stop();
Instance of Symbol 185 MovieClip [layerpart] in Symbol 186 MovieClip [splatterr] Frame 2
onClipEvent (load) {
this.gotoAndStop(random(13) + 1);
}
Symbol 193 MovieClip [fdie] Frame 1
stop();
Symbol 221 Button
on (release) {
getURL ("http://www.exotworking.com", "_blank");
}
Symbol 228 Button
on (release) {
play();
}
Instance of Symbol 208 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.percentDone;
}
Symbol 229 MovieClip Frame 8
stop();
Symbol 252 MovieClip Frame 73
stop();
Symbol 264 Button
on (release) {
play();
}
Symbol 269 Button
on (release) {
_root.gotoAndPlay("skip");
}
Symbol 270 MovieClip Frame 1
stop();
Symbol 271 Button
on (release) {
getURL ("http://jayisgames.com/cgdc8", "_blank");
}
Symbol 274 Button
on (release) {
gotoAndPlay ("skip");
}
Symbol 275 Button
on (release) {
gotoAndPlay ("skip");
stopAllSounds();
}
Symbol 321 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local3 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local3);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local3;
_parent._yscale = 100 * _local4;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
parentColor.setTransform(camColor.getTransform());
Symbol 372 MovieClip Frame 1
function toblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "yayness" + i, i, {_x:xxx, _y:yyy});
i++;
_root.newObject.onEnterFrame = function () {
if (((((this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.goscreen.qmenu.hitTest(_root._xmouse, _root._ymouse, true))) && (_root.mousecl == 1)) && (_root.dudernow == false)) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.duder(this._x, this._y + 10);
this.removeMovieClip();
_root.birdpal.gotoAndPlay("magic");
_root.clicksound = true;
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function flyblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "yayness" + i, i, {_x:xxx, _y:yyy});
i++;
_root.newObject.gotoAndStop("fly");
_root.newObject.onEnterFrame = function () {
if (((((this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.goscreen.qmenu.hitTest(_root._xmouse, _root._ymouse, true))) && (_root.mousecl == 1)) && (_root.dudernow == false)) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.flyduder(this._x, this._y + 10, 1);
this.removeMovieClip();
_root.birdpal.gotoAndPlay("magic");
_root.clicksound = true;
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function moveblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "mblock" + e, e, {_x:xxx, _y:yyy});
e++;
_root.newObject.gotoAndStop("move");
_root.newObject.whenmove = 0;
_root.newObject.where = random(4) + 1;
_root.newObject.moov = true;
_root.newObject.dirx = 0;
_root.newObject.savex = 0;
_root.newObject.savey = 0;
_root.newObject.onEnterFrame = function () {
if (_root.proceednow == false) {
this.whenmove++;
if (this.whenmove < 50) {
if (this.where == 1) {
this.dir = -5;
}
if (this.where == 2) {
this.dir = 5;
}
if (this.where == 3) {
this.dir = -5;
}
if (this.where == 4) {
this.dir = 5;
}
}
if (this.whenmove == 59) {
var _local3 = 150;
while (_local3 <= _root.grnd.i) {
if ((this.hitTest(_root.grnd["yayness" + _local3]._x + 40, _root.grnd["yayness" + _local3]._y, true) && (this.where == 1)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
if ((this.hitTest(_root.grnd["yayness" + _local3]._x - 40, _root.grnd["yayness" + _local3]._y, true) && (this.where == 2)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
if ((this.hitTest(_root.grnd["yayness" + _local3]._x, _root.grnd["yayness" + _local3]._y + 40, true) && (this.where == 3)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
if ((this.hitTest(_root.grnd["yayness" + _local3]._x, _root.grnd["yayness" + _local3]._y - 40, true) && (this.where == 4)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
_local3++;
}
}
if (this.whenmove < 59) {
if ((this.where == 3) && (this._y <= -100)) {
this.where = 4;
}
}
if (this.whenmove >= 60) {
if (this.where == 1) {
this._x = this._x + this.dir;
}
if (this.where == 2) {
this._x = this._x + this.dir;
}
if (this.where == 3) {
this._y = this._y + this.dir;
}
if (this.where == 4) {
this._y = this._y + this.dir;
}
}
if (this.whenmove == 67) {
this.where = random(4) + 1;
this.whenmove = 0;
}
if (((((this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.goscreen.qmenu.hitTest(_root._xmouse, _root._ymouse, true))) && (_root.mousecl == 1)) && (_root.dudernow == false)) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.flyduder(this._x, this._y + 10, 2);
this.removeMovieClip();
_root.birdpal.gotoAndPlay("magic");
_root.clicksound = true;
}
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function xmoveblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "mblock" + e, e, {_x:xxx, _y:yyy});
e++;
_root.newObject.gotoAndStop("xmove");
_root.newObject.whenmove = 0;
_root.newObject.where = random(4) + 1;
_root.newObject.moov = true;
_root.newObject.dirx = 0;
_root.newObject.savex = 0;
_root.newObject.savey = 0;
_root.newObject.onEnterFrame = function () {
if (_root.proceednow == false) {
this.whenmove++;
if (this.whenmove < 50) {
if (this.where == 1) {
this.dir = -5;
}
if (this.where == 2) {
this.dir = 5;
}
if (this.where == 3) {
this.dir = -5;
}
if (this.where == 4) {
this.dir = 5;
}
}
if (this.whenmove == 59) {
var _local3 = 150;
while (_local3 <= _root.grnd.i) {
if ((this.hitTest(_root.grnd["yayness" + _local3]._x + 40, _root.grnd["yayness" + _local3]._y, true) && (this.where == 1)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
if ((this.hitTest(_root.grnd["yayness" + _local3]._x - 40, _root.grnd["yayness" + _local3]._y, true) && (this.where == 2)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
if ((this.hitTest(_root.grnd["yayness" + _local3]._x, _root.grnd["yayness" + _local3]._y + 40, true) && (this.where == 3)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
if ((this.hitTest(_root.grnd["yayness" + _local3]._x, _root.grnd["yayness" + _local3]._y - 40, true) && (this.where == 4)) && (this.whenmove == 59)) {
this.dir = 0;
this.whenmove = 66;
trace("WOOO" + this.dir);
}
_local3++;
}
}
if (this.whenmove < 59) {
if ((this.where == 3) && (this._y <= -100)) {
this.where = 4;
}
}
if (this.whenmove >= 60) {
if (this.where == 1) {
this._x = this._x + this.dir;
}
if (this.where == 2) {
this._x = this._x + this.dir;
}
if (this.where == 3) {
this._y = this._y + this.dir;
}
if (this.where == 4) {
this._y = this._y + this.dir;
}
}
if (this.whenmove == 67) {
this.where = random(4) + 1;
this.whenmove = 0;
}
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function rblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "yayness" + i, i, {_x:xxx, _y:yyy});
i++;
_root.newObject.gotoAndStop("loser");
_root.newObject.onEnterFrame = function () {
if (((((this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.goscreen.qmenu.hitTest(_root._xmouse, _root._ymouse, true))) && (_root.mousecl == 1)) && (_root.dudernow == false)) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.clicksound2 = true;
this.removeMovieClip();
_root.birdpal.gotoAndPlay("magic");
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function fblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "yayness" + i, i, {_x:xxx, _y:yyy});
i++;
_root.newObject.gotoAndStop("fest");
_root.newObject.onEnterFrame = function () {
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function trapblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "yayness" + i, i, {_x:xxx, _y:yyy});
i++;
_root.newObject.gotoAndStop("trap");
_root.newObject.onEnterFrame = function () {
if (((((this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.goscreen.qmenu.hitTest(_root._xmouse, _root._ymouse, true))) && (_root.mousecl == 1)) && (_root.dudernow == false)) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.trapduder(this._x, this._y + 10);
this.removeMovieClip();
_root.birdpal.gotoAndPlay("magic");
_root.clicksound = true;
}
if (((this.diedie.hitTest(_root["duder" + _root.dudenum]) && ((!_root["duder" + _root.dudenum].typee) == 2)) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root["duder" + _root.dudenum].gotoAndStop("die");
}
if ((_root.hero.hit.hitTest(this._x - 15, this._y - 30, true) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.gameover = true;
this.trap.gotoAndPlay(2);
_root.hero._visible = false;
}
if ((_root.hero.hit.hitTest(this._x, this._y - 30, true) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.gameover = true;
this.trap.gotoAndPlay(2);
_root.hero._visible = false;
}
if ((_root.hero.hit.hitTest(this._x + 15, this._y - 30, true) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.gameover = true;
this.trap.gotoAndPlay(2);
_root.hero._visible = false;
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function jumpblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "yayness" + i, i, {_x:xxx, _y:yyy});
i++;
_root.newObject.gotoAndStop("jump");
_root.newObject.onEnterFrame = function () {
if (((_root.hero.hit.hitTest(this._x - 15, this._y - 30, true) && (_root.gameover == false)) && (_root.proceednow == false)) && (_root.fall > 3)) {
_root.fall = -38;
this.spring.gotoAndPlay(2);
}
if (((_root.hero.hit.hitTest(this._x, this._y - 30, true) && (_root.gameover == false)) && (_root.proceednow == false)) && (_root.fall > 3)) {
_root.fall = -38;
this.spring.gotoAndPlay(2);
}
if (((_root.hero.hit.hitTest(this._x + 15, this._y - 30, true) && (_root.gameover == false)) && (_root.proceednow == false)) && (_root.fall > 3)) {
_root.fall = -38;
this.spring.gotoAndPlay(2);
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
function bombblock(xxx, yyy) {
_root.newObject = attachMovie("blocko", "yayness" + i, i, {_x:xxx, _y:yyy});
i++;
_root.newObject.gotoAndStop("bomb");
_root.newObject.onEnterFrame = function () {
if (((((this.hitTest(_root._xmouse, _root._ymouse, true) && (!_root.goscreen.qmenu.hitTest(_root._xmouse, _root._ymouse, true))) && (_root.mousecl == 1)) && (_root.dudernow == false)) && (_root.gameover == false)) && (_root.proceednow == false)) {
_root.bombduder(this._x, this._y + 10, 1);
this.removeMovieClip();
_root.birdpal.gotoAndPlay("magic");
_root.clicksound = true;
}
if (_root.resett < 2) {
this.removeMovieClip();
}
};
}
i = 150;
e = 900;
stop();
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 180;
_root.hero._y = 80;
_root.hero._xscale = -100;
var i = 0;
while (i <= 30) {
_parent.toblock(20 + (40 * i), 100);
_parent.toblock(20 + (40 * i), 140);
i++;
}
var i = 20;
while (i <= 22) {
_parent.toblock(20 + (40 * i), 60);
i++;
}
_parent.toblock(620, 60);
var i = 34;
while (i <= 45) {
_parent.toblock(20 + (40 * i), 100);
_parent.toblock(20 + (40 * i), 140);
i++;
}
_parent.toblock(-180, 100);
_parent.toblock(-180, 60);
_parent.toblock(-180, 180);
_parent.toblock(-220, 60);
var i = 0;
while (i <= 2) {
_parent.toblock(-20, 140 - (40 * i));
i++;
}
var i = 0;
while (i <= 3) {
_parent.toblock(-60, 140 - (40 * i));
_parent.toblock(-100, 140 - (40 * i));
_parent.toblock(-140, 140 - (40 * i));
i++;
}
_root.winblock(1740, -60, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 2
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 100;
_root.hero._y = 80;
var i = 0;
while (i <= 35) {
_parent.toblock(20 + (40 * i), 100);
_parent.toblock(20 + (40 * i), 140);
_parent.toblock(20 + (40 * i), 180);
_parent.toblock(20 + (40 * i), 220);
_parent.toblock(20 + (40 * i), 260);
_parent.toblock(20 + (40 * i), 300);
i++;
}
_parent.toblock(-180, 100);
_parent.toblock(-180, 180);
_parent.toblock(-180, 220);
_parent.toblock(-220, 180);
var i = 0;
while (i <= 7) {
_parent.toblock(-20, 300 - (40 * i));
_parent.toblock(-60, 300 - (40 * i));
_parent.toblock(-100, 300 - (40 * i));
_parent.toblock(-140, 300 - (40 * i));
i++;
}
var i = 0;
while (i <= 15) {
_parent.toblock(820 + (40 * i), 60);
_parent.toblock(820 + (40 * i), 20);
_parent.toblock(820 + (40 * i), -20);
i++;
}
var i = 0;
while (i <= 15) {
_parent.toblock(1660 + (40 * i), 100);
_parent.toblock(1660 + (40 * i), 140);
_parent.toblock(1660 + (40 * i), 180);
_parent.toblock(1660 + (40 * i), 220);
_parent.toblock(1660 + (40 * i), 260);
_parent.toblock(1660 + (40 * i), 300);
_parent.toblock(1660 + (40 * i), 60);
_parent.toblock(1660 + (40 * i), 20);
_parent.toblock(1660 + (40 * i), -20);
i++;
}
_root.winblock(2020, -140, random(_root.itemsam) + 5);
var i = 0;
while (i <= 9) {
_parent.toblock(2300, 300 - (40 * i));
_parent.toblock(2340, 300 - (40 * i));
_parent.toblock(2380, 300 - (40 * i));
_parent.toblock(2420, 300 - (40 * i));
i++;
}
_parent.toblock(2500, -20);
_parent.toblock(2460, 100);
_parent.toblock(2460, 140);
spawned = true;
}
}
Instance of Symbol 369 MovieClip in Symbol 372 MovieClip Frame 3
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 100;
_root.hero._y = 80;
var i = 0;
while (i <= 7) {
_parent.toblock(-20, 300 - (40 * i));
_parent.toblock(-60, 300 - (40 * i));
_parent.toblock(-100, 300 - (40 * i));
_parent.toblock(-140, 300 - (40 * i));
i++;
}
_parent.toblock(-180, 140);
_parent.toblock(-260, 180);
_parent.toblock(-180, 20);
_parent.toblock(-180, -20);
_parent.toblock(-140, -20);
_parent.toblock(-60, -60);
var i = 0;
while (i <= 20) {
_parent.toblock(20 + (40 * i), 100);
_parent.toblock(20 + (40 * i), 140);
_parent.toblock(20 + (40 * i), 180);
_parent.toblock(20 + (40 * i), 220);
_parent.toblock(20 + (40 * i), 260);
_parent.toblock(20 + (40 * i), 300);
i++;
}
var i = 0;
while (i <= 10) {
_parent.toblock(1220 + (40 * i), 100);
_parent.toblock(1220 + (40 * i), 140);
_parent.toblock(1220 + (40 * i), 180);
_parent.toblock(1220 + (40 * i), 220);
_parent.toblock(1220 + (40 * i), 260);
_parent.toblock(1220 + (40 * i), 300);
i++;
}
_root.winblock(1540, -20, random(_root.itemsam) + 5);
var i = 0;
while (i <= 7) {
_parent.toblock(1660, 300 - (40 * i));
_parent.toblock(1700, 300 - (40 * i));
_parent.toblock(1740, 300 - (40 * i));
_parent.toblock(1780, 300 - (40 * i));
i++;
}
_parent.toblock(1860, -20);
_parent.toblock(1820, 140);
_parent.toblock(1820, 180);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 4
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 100;
_root.hero._y = 80;
var i = 0;
while (i <= 20) {
_parent.toblock(-20, 300 - (40 * i));
_parent.toblock(-60, 300 - (40 * i));
_parent.toblock(-100, 300 - (40 * i));
_parent.toblock(-140, 300 - (40 * i));
i++;
}
var i = 0;
while (i <= 50) {
_parent.toblock(20 + (40 * i), 100);
_parent.toblock(20 + (40 * i), 140);
_parent.toblock(20 + (40 * i), 180);
_parent.toblock(20 + (40 * i), 220);
_parent.toblock(20 + (40 * i), 260);
_parent.toblock(20 + (40 * i), 300);
i++;
}
var i = 0;
while (i <= 40) {
_parent.toblock(420 + (40 * i), 60);
_parent.toblock(420 + (40 * i), 20);
i++;
}
var i = 0;
while (i <= 35) {
_parent.toblock(620 + (40 * i), -20);
_parent.toblock(620 + (40 * i), -60);
i++;
}
var i = 0;
while (i <= 30) {
_parent.toblock(820 + (40 * i), -100);
_parent.toblock(820 + (40 * i), -140);
i++;
}
var i = 0;
while (i <= 10) {
_parent.toblock(1860, -220 - (40 * i));
_parent.toblock(1900, -220 - (40 * i));
_parent.toblock(1940, -220 - (40 * i));
_parent.toblock(1980, -220 - (40 * i));
_parent.toblock(2020, -220 - (40 * i));
i++;
}
_parent.toblock(2020, -180);
_parent.toblock(1820, -340);
_parent.toblock(1780, -340);
_parent.toblock(1740, -340);
_root.winblock(1780, -460, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 5
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 500;
_root.hero._y = 80;
_root.needed = 0;
_root.enemyspawns = 0;
_root.enemystart = false;
_root.enemycount = 0;
var i = 0;
while (i <= 3) {
_parent.toblock(-20, 20 - (40 * i));
_parent.toblock(-60, 20 - (40 * i));
_parent.toblock(-100, 20 - (40 * i));
_parent.toblock(-140, 20 - (40 * i));
i++;
}
_parent.toblock(-140, 60);
var i = 0;
while (i <= 30) {
_parent.toblock(-140 + (40 * i), 100);
_parent.toblock(-140 + (40 * i), 140);
_parent.toblock(-140 + (40 * i), 180);
_parent.toblock(-140 + (40 * i), 220);
_parent.toblock(-140 + (40 * i), 260);
_parent.toblock(-140 + (40 * i), 300);
i++;
}
_parent.toblock(220, -140);
_parent.toblock(260, -140);
_parent.toblock(300, -140);
_root.winblock(260, -260, 2);
_parent.toblock(460, -140);
_parent.toblock(500, -140);
_parent.toblock(540, -140);
_root.winblock(500, -260, 2);
_parent.toblock(700, -140);
_parent.toblock(740, -140);
_parent.toblock(780, -140);
_root.winblock(740, -260, 2);
var i = 0;
while (i <= 3) {
_parent.toblock(1060, 20 - (40 * i));
_parent.toblock(1020, 20 - (40 * i));
_parent.toblock(980, 20 - (40 * i));
_parent.toblock(940, 20 - (40 * i));
i++;
}
_parent.toblock(1060, 60);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 6
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 250;
_root.hero._y = 110;
var i = 0;
while (i <= 20) {
i++;
}
_parent.toblock(540, 100);
_parent.toblock(140, 180);
_parent.toblock(100, 180);
var i = 0;
while (i <= 5) {
_parent.toblock(220 + (40 * i), 140);
i++;
}
var i = 0;
while (i <= 6) {
_parent.flyblock(220 + (40 * i), 180);
i++;
}
var i = 0;
while (i <= 1) {
_parent.flyblock(260 + (40 * i), 220);
i++;
}
_parent.toblock(1060, 60);
_root.winblock(1060, -20, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 7
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 500;
_root.hero._y = 60;
var i = 0;
while (i <= 9) {
_parent.toblock(-20, 60 - (40 * i));
_parent.toblock(-60, 60 - (40 * i));
_parent.toblock(-100, 60 - (40 * i));
_parent.toblock(-140, 60 - (40 * i));
i++;
}
var i = 0;
while (i <= 10) {
_parent.toblock(-140 + (40 * i), 100);
_parent.toblock(-140 + (40 * i), 140);
_parent.toblock(-140 + (40 * i), 180);
_parent.toblock(-140 + (40 * i), 220);
_parent.toblock(-140 + (40 * i), 260);
_parent.toblock(-140 + (40 * i), 300);
i++;
}
var i = 11;
while (i <= 21) {
_parent.flyblock(-140 + (40 * i), 100);
_parent.flyblock(-140 + (40 * i), 140);
_parent.toblock(-140 + (40 * i), 180);
_parent.toblock(-140 + (40 * i), 220);
_parent.toblock(-140 + (40 * i), 260);
_parent.toblock(-140 + (40 * i), 300);
i++;
}
var i = 22;
while (i <= 30) {
_parent.toblock(-140 + (40 * i), 100);
_parent.toblock(-140 + (40 * i), 140);
_parent.toblock(-140 + (40 * i), 180);
_parent.toblock(-140 + (40 * i), 220);
_parent.toblock(-140 + (40 * i), 260);
_parent.toblock(-140 + (40 * i), 300);
i++;
}
_root.flyebul(120, -220);
_root.flyebul(380, -220);
_parent.toblock(260, -220);
_root.winblock(260, -340, 3);
_parent.toblock(500, -140);
_root.winblock(500, -260, 3);
_root.flyebul(380, -500);
_root.flyebul(620, -500);
_parent.toblock(500, -380);
_root.winblock(500, -500, 3);
_root.flyebul(620, -220);
_root.flyebul(860, -220);
_parent.toblock(740, -220);
_root.winblock(740, -340, 3);
var i = 0;
while (i <= 9) {
_parent.toblock(1060, 60 - (40 * i));
_parent.toblock(1020, 60 - (40 * i));
_parent.toblock(980, 60 - (40 * i));
_parent.toblock(940, 60 - (40 * i));
i++;
}
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 8
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 100;
_root.hero._y = 60;
var i = 0;
while (i <= 4) {
_parent.rblock(-20, 60 - (40 * i));
_parent.rblock(-60, 60 - (40 * i));
_parent.rblock(-100, 60 - (40 * i));
_parent.rblock(-140, 60 - (40 * i));
i++;
}
_parent.rblock(-180, -60);
_parent.rblock(-180, -20);
_parent.rblock(-220, 20);
_parent.rblock(-180, 180);
var i = 0;
while (i <= 10) {
_parent.rblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
_parent.rblock(-140 + (40 * i), 180);
_parent.rblock(-140 + (40 * i), 220);
_parent.rblock(-140 + (40 * i), 260);
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 11;
while (i <= 40) {
_parent.rblock(-140 + (40 * i), 180);
_parent.rblock(-140 + (40 * i), 220);
_parent.rblock(-140 + (40 * i), 260);
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 11;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 19;
while (i <= 23) {
_parent.trapblock(-140 + (40 * i), 100);
_parent.flyblock(-140 + (40 * i), 140);
i++;
}
var i = 24;
while (i <= 26) {
_parent.rblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 27;
while (i <= 28) {
_parent.trapblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 29;
while (i <= 31) {
_parent.rblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 32;
while (i <= 36) {
_parent.trapblock(-140 + (40 * i), 100);
_parent.flyblock(-140 + (40 * i), 140);
i++;
}
var i = 37;
while (i <= 37) {
_parent.rblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 38;
while (i <= 39) {
_parent.trapblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 40;
while (i <= 40) {
_parent.rblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
i++;
}
_parent.rblock(1500, 180);
_parent.rblock(260, 100);
_parent.rblock(300, 100);
_parent.rblock(340, 100);
_parent.trapblock(380, 100);
_parent.trapblock(420, 100);
_parent.rblock(460, 100);
_parent.rblock(500, 100);
_parent.rblock(540, 100);
_parent.rblock(580, 100);
var i = 0;
while (i <= 6) {
_parent.rblock(1580 + (40 * i), 20);
i++;
}
_parent.rblock(1580, -20);
_parent.trapblock(1620, -20);
_parent.rblock(1660, -20);
_parent.rblock(1700, -20);
_parent.rblock(1740, -20);
_parent.trapblock(1780, -20);
_parent.rblock(1820, -20);
_parent.rblock(1580, -60);
_parent.rblock(1620, -60);
_parent.trapblock(1660, -60);
_parent.trapblock(1700, -60);
_parent.trapblock(1740, -60);
_parent.rblock(1780, -60);
_parent.rblock(1820, -60);
_parent.rblock(1580, -100);
_parent.rblock(1620, -100);
_parent.rblock(1660, -100);
_root.winblock(1700, -100, random(_root.itemsam) + 5);
_parent.rblock(1740, -100);
_parent.rblock(1780, -100);
_parent.rblock(1820, -100);
var i = 0;
while (i <= 6) {
_parent.rblock(1580 + (40 * i), -140);
_parent.rblock(1580 + (40 * i), -180);
_parent.rblock(1580 + (40 * i), -220);
i++;
}
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 9
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = -80;
_root.hero._y = 50;
_parent.toblock(-60, 60);
_parent.toblock(-100, 60);
_parent.flyblock(-140, 100);
_parent.flyblock(-100, 100);
_parent.flyblock(-60, 100);
_parent.flyblock(-20, 100);
_parent.flyblock(460, 100);
_parent.toblock(500, 100);
_parent.toblock(540, 100);
_parent.flyblock(580, 100);
_parent.rblock(500, 60);
_parent.rblock(540, 60);
_root.flyebul(580, 20);
_root.flyebul(460, 20);
_parent.flyblock(1060, 100);
_parent.flyblock(1100, 100);
_parent.flyblock(1140, 100);
_parent.flyblock(1180, 100);
_root.winblock(1120, -20, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 10
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 220;
_root.hero._y = 60;
var i = 0;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 100);
i++;
}
var i = 0;
while (i <= 8) {
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 9;
while (i <= 9) {
_parent.trapblock(-140 + (40 * i), 140);
i++;
}
var i = 10;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 140);
i++;
}
var i = 0;
while (i <= 2) {
_parent.rblock(-140 + (40 * i), 180);
i++;
}
_root.ebul(-20, 180, 2);
var i = 5;
while (i <= 5) {
_parent.rblock(-140 + (40 * i), 180);
i++;
}
var i = 6;
while (i <= 7) {
_parent.trapblock(-140 + (40 * i), 180);
i++;
}
var i = 8;
while (i <= 10) {
_parent.rblock(-140 + (40 * i), 180);
i++;
}
var i = 11;
while (i <= 12) {
_parent.trapblock(-140 + (40 * i), 180);
i++;
}
var i = 13;
while (i <= 13) {
_parent.rblock(-140 + (40 * i), 180);
i++;
}
_root.ebul(460, 180, -2);
var i = 16;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 180);
i++;
}
var i = 0;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 220);
i++;
}
var i = 0;
while (i <= 1) {
_parent.rblock(-140 + (40 * i), 260);
i++;
}
var i = 2;
while (i <= 3) {
_parent.trapblock(-140 + (40 * i), 260);
i++;
}
var i = 4;
while (i <= 5) {
_parent.rblock(-140 + (40 * i), 260);
i++;
}
var i = 6;
while (i <= 8) {
_parent.trapblock(-140 + (40 * i), 260);
i++;
}
var i = 9;
while (i <= 9) {
_parent.rblock(-140 + (40 * i), 260);
i++;
}
var i = 10;
while (i <= 12) {
_parent.trapblock(-140 + (40 * i), 260);
i++;
}
var i = 13;
while (i <= 14) {
_parent.rblock(-140 + (40 * i), 260);
i++;
}
var i = 15;
while (i <= 16) {
_parent.trapblock(-140 + (40 * i), 260);
i++;
}
var i = 17;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 260);
i++;
}
var i = 0;
while (i <= 0) {
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 1;
while (i <= 1) {
_parent.trapblock(-140 + (40 * i), 300);
i++;
}
var i = 2;
while (i <= 4) {
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 5;
while (i <= 5) {
_parent.trapblock(-140 + (40 * i), 300);
i++;
}
var i = 6;
while (i <= 12) {
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 13;
while (i <= 13) {
_parent.trapblock(-140 + (40 * i), 300);
i++;
}
var i = 14;
while (i <= 16) {
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 17;
while (i <= 17) {
_parent.trapblock(-140 + (40 * i), 300);
i++;
}
var i = 18;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 0;
while (i <= 8) {
_parent.rblock(-140 + (40 * i), 340);
i++;
}
var i = 9;
while (i <= 9) {
_parent.trapblock(-140 + (40 * i), 340);
i++;
}
var i = 10;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 340);
i++;
}
var i = 0;
while (i <= 6) {
_parent.rblock(-140 + (40 * i), 380);
i++;
}
var i = 7;
while (i <= 11) {
_parent.trapblock(-140 + (40 * i), 380);
i++;
}
var i = 12;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 380);
i++;
}
var i = 0;
while (i <= 7) {
_parent.trapblock(-140 + (40 * i), 420);
i++;
}
var i = 11;
while (i <= 18) {
_parent.trapblock(-140 + (40 * i), 420);
i++;
}
var i = 0;
while (i <= 6) {
_parent.rblock(-140 + (40 * i), 460);
i++;
}
var i = 7;
while (i <= 7) {
_parent.trapblock(-140 + (40 * i), 460);
i++;
}
var i = 11;
while (i <= 11) {
_parent.trapblock(-140 + (40 * i), 460);
i++;
}
var i = 12;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 460);
i++;
}
var i = 0;
while (i <= 2) {
_parent.rblock(-140 + (40 * i), 500);
i++;
}
var i = 3;
while (i <= 3) {
_parent.trapblock(-140 + (40 * i), 500);
i++;
}
var i = 4;
while (i <= 6) {
_parent.rblock(-140 + (40 * i), 500);
i++;
}
var i = 7;
while (i <= 7) {
_parent.trapblock(-140 + (40 * i), 500);
i++;
}
var i = 11;
while (i <= 11) {
_parent.trapblock(-140 + (40 * i), 500);
i++;
}
var i = 12;
while (i <= 14) {
_parent.rblock(-140 + (40 * i), 500);
i++;
}
var i = 15;
while (i <= 15) {
_parent.trapblock(-140 + (40 * i), 500);
i++;
}
var i = 16;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 500);
i++;
}
var i = 0;
while (i <= 1) {
_parent.rblock(-140 + (40 * i), 540);
i++;
}
var i = 2;
while (i <= 4) {
_parent.trapblock(-140 + (40 * i), 540);
i++;
}
var i = 5;
while (i <= 6) {
_parent.rblock(-140 + (40 * i), 540);
i++;
}
var i = 7;
while (i <= 11) {
_parent.trapblock(-140 + (40 * i), 540);
i++;
}
var i = 12;
while (i <= 13) {
_parent.rblock(-140 + (40 * i), 540);
i++;
}
var i = 14;
while (i <= 16) {
_parent.trapblock(-140 + (40 * i), 540);
i++;
}
var i = 17;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 540);
i++;
}
var i = 0;
while (i <= 2) {
_parent.rblock(-140 + (40 * i), 580);
i++;
}
var i = 3;
while (i <= 3) {
_parent.trapblock(-140 + (40 * i), 580);
i++;
}
var i = 4;
while (i <= 14) {
_parent.rblock(-140 + (40 * i), 580);
i++;
}
var i = 15;
while (i <= 15) {
_parent.trapblock(-140 + (40 * i), 580);
i++;
}
var i = 16;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 580);
i++;
}
var i = 0;
while (i <= 18) {
_parent.rblock(-140 + (40 * i), 620);
i++;
}
var i = 2;
while (i <= 2) {
_root.winblock(140 + (40 * i), 460, random(_root.itemsam) + 5);
i++;
}
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 11
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = -30;
_root.hero._y = 60;
var i = 0;
while (i <= 6) {
_parent.toblock(-20, 300 - (40 * i));
_parent.toblock(-60, 300 - (40 * i));
i++;
}
var i = 0;
while (i <= 8) {
_parent.toblock(-100, 300 - (40 * i));
_parent.toblock(-140, 300 - (40 * i));
_parent.toblock(-180, 300 - (40 * i));
_parent.toblock(-220, 300 - (40 * i));
i++;
}
_parent.toblock(-260, 20);
_parent.toblock(-260, 60);
var i = 0;
while (i <= 14) {
_parent.trapblock(20 + (40 * i), 100);
_parent.toblock(20 + (40 * i), 140);
_parent.toblock(20 + (40 * i), 180);
_parent.toblock(20 + (40 * i), 220);
_parent.toblock(20 + (40 * i), 260);
_parent.toblock(20 + (40 * i), 300);
i++;
}
var i = 5;
while (i <= 9) {
_parent.flyblock(20 + (40 * i), 60);
i++;
}
var i = 0;
while (i <= 6) {
_parent.toblock(620, 300 - (40 * i));
_parent.toblock(660, 300 - (40 * i));
i++;
}
_parent.jumpblock(300, 20);
var i = 0;
while (i <= 8) {
_parent.toblock(700, 300 - (40 * i));
_parent.toblock(740, 300 - (40 * i));
_parent.toblock(780, 300 - (40 * i));
_parent.toblock(820, 300 - (40 * i));
i++;
}
_parent.toblock(900, 20);
_parent.toblock(860, 140);
_parent.toblock(860, 180);
_parent.trapblock(100, -380);
_parent.trapblock(140, -380);
_parent.trapblock(180, -340);
_parent.trapblock(220, -340);
_parent.trapblock(260, -340);
_parent.trapblock(340, -340);
_parent.trapblock(380, -340);
_parent.trapblock(420, -340);
_parent.trapblock(460, -380);
_parent.trapblock(500, -380);
var i = 3;
while (i <= 11) {
_parent.flyblock(20 + (40 * i), -660);
i++;
}
_parent.flyblock(100, -620);
_parent.flyblock(500, -620);
_parent.trapblock(260, -780);
_parent.trapblock(300, -780);
_parent.trapblock(340, -780);
_root.winblock(300, -900, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 12
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 100;
_root.hero._y = -20;
var i = 0;
while (i <= 14) {
_parent.toblock(20 + (40 * i), 140);
_parent.toblock(20 + (40 * i), 180);
_parent.toblock(20 + (40 * i), 220);
_parent.toblock(20 + (40 * i), 260);
_parent.toblock(20 + (40 * i), 300);
i++;
}
_root.winblock(140, 20, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 13
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.flyebul2(-270, 140);
_root.hero._x = 30;
_root.hero._y = 100;
_parent.flyblock(20, 140);
_parent.flyblock(60, 140);
_parent.toblock(540, 140);
_parent.flyblock(540, 180);
_parent.toblock(1020, 140);
_root.winblock(1020, 20, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 14
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.vcam._x = 100;
_root.hero._x = 20;
_root.hero._y = 60;
_parent.rblock(-420, 100);
_parent.rblock(-620, 100);
_parent.toblock(20, 100);
_parent.flyblock(20, 140);
_parent.moveblock(60, 20);
_parent.moveblock(20, -20);
_parent.xmoveblock(100, -60);
_parent.xmoveblock(140, 140);
_parent.moveblock(180, 20);
_parent.moveblock(220, 20);
_parent.toblock(220, 100);
_parent.flyblock(220, 140);
_parent.moveblock(220, -60);
_parent.xmoveblock(300, 20);
_parent.moveblock(260, 20);
_parent.moveblock(300, -60);
_parent.xmoveblock(380, 20);
_parent.xmoveblock(420, 20);
_parent.moveblock(420, 100);
_parent.toblock(420, 100);
_parent.flyblock(420, 140);
_parent.moveblock(500, 20);
_parent.xmoveblock(580, 20);
_parent.moveblock(540, -60);
_parent.toblock(620, 100);
_parent.flyblock(620, 140);
_parent.moveblock(820, 140);
_parent.rblock(1020, 100);
_parent.rblock(1020, 140);
_root.winblock(1020, 20, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 15
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.vcam._x = 100;
_root.hero._x = 20;
_root.hero._y = 60;
var i = 0;
while (i <= 2) {
_parent.rblock(-20, 60 - (40 * i));
_parent.rblock(-60, 60 - (40 * i));
_parent.rblock(-100, 60 - (40 * i));
_parent.rblock(-140, 60 - (40 * i));
i++;
}
var i = 0;
while (i <= 13) {
_parent.rblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
_parent.rblock(-140 + (40 * i), 180);
_parent.rblock(-140 + (40 * i), 220);
_parent.rblock(-140 + (40 * i), 260);
_parent.rblock(-140 + (40 * i), 300);
i++;
}
var i = 14;
while (i <= 25) {
_parent.trapblock(-140 + (40 * i), 100);
i++;
}
_parent.rblock(420, 220);
_parent.rblock(-100, -60);
_parent.rblock(-180, -100);
_parent.rblock(-220, 100);
_parent.rblock(-180, 140);
_parent.rblock(-180, 180);
_parent.moveblock(420, 20);
_parent.moveblock(460, -20);
_parent.xmoveblock(500, 20);
_parent.moveblock(540, -20);
_parent.moveblock(580, 20);
_parent.moveblock(620, -20);
_parent.xmoveblock(660, 20);
_parent.xmoveblock(700, -20);
_parent.moveblock(740, 20);
_parent.moveblock(780, -20);
_parent.xmoveblock(820, 20);
_parent.rblock(580, -60);
_parent.rblock(620, -60);
_root.winblock(820, -100, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 16
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.vcam._x = 100;
_root.hero._x = 20;
_root.hero._y = 60;
var i = 0;
while (i <= 1) {
_parent.rblock(-20, 60 - (40 * i));
_parent.rblock(-60, 60 - (40 * i));
_parent.rblock(-100, 60 - (40 * i));
_parent.rblock(-140, 60 - (40 * i));
i++;
}
_parent.rblock(-100, -20);
_parent.rblock(-60, -60);
_parent.rblock(-60, -20);
_parent.rblock(-20, -20);
_parent.rblock(-220, 20);
_parent.rblock(-180, 140);
_parent.rblock(-180, 180);
var i = 0;
while (i <= 35) {
_parent.rblock(-140 + (40 * i), 100);
_parent.rblock(-140 + (40 * i), 140);
_parent.rblock(-140 + (40 * i), 180);
_parent.rblock(-140 + (40 * i), 220);
_parent.rblock(-140 + (40 * i), 260);
_parent.rblock(-140 + (40 * i), 300);
i++;
}
_parent.rblock(300, 60);
_parent.rblock(340, 60);
_parent.jumpblock(340, 20);
_root.flyebul(340, -460);
_parent.rblock(380, 60);
_parent.rblock(540, 60);
_parent.rblock(580, 60);
_parent.jumpblock(580, 20);
_root.flyebul(580, -460);
_parent.toblock(540, -540);
_parent.toblock(620, -540);
_parent.rblock(620, 60);
_parent.rblock(780, 60);
_parent.rblock(820, 60);
_parent.jumpblock(820, 20);
_root.flyebul(820, -460);
_parent.rblock(860, 60);
_parent.rblock(1100, 60);
_parent.rblock(1140, 60);
_parent.rblock(1220, 60);
_parent.rblock(1300, 100);
_parent.rblock(1300, 140);
_parent.rblock(1340, 140);
_parent.rblock(1420, 100);
_root.flyebul(1380, -20);
_root.winblock(1540, -80, random(_root.itemsam) + 5);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 17
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.vcam._x = 100;
_root.hero._x = 380;
_root.hero._y = 60;
var i = 4;
while (i <= 22) {
_parent.toblock(-140 + (40 * i), 100);
_parent.toblock(-140 + (40 * i), 140);
_parent.toblock(-140 + (40 * i), 180);
_parent.toblock(-140 + (40 * i), 220);
i++;
}
var i = 1;
while (i <= 9) {
_parent.trapblock(-140 + (40 * (3 + (i * 2))), -20);
i++;
}
var i = 1;
while (i <= 10) {
_parent.trapblock(-140 + (40 * (2 + (i * 2))), -100);
i++;
}
var i = 1;
while (i <= 9) {
_parent.trapblock(-140 + (40 * (3 + (i * 2))), -180);
i++;
}
var i = 1;
while (i <= 10) {
_parent.trapblock(-140 + (40 * (2 + (i * 2))), -260);
i++;
}
var i = 1;
while (i <= 9) {
_parent.trapblock(-140 + (40 * (3 + (i * 2))), -340);
i++;
}
var i = 1;
while (i <= 9) {
_parent.rblock(-140 + (40 * (3 + (i * 2))), -460);
_root.winblock(-140 + (40 * (3 + (i * 2))), -580, 4);
i++;
}
_root.flyebul(-100, -460);
_root.flyebul(860, -460);
_root.flyebul(1380, -20);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 18
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.hero._x = 100;
_root.hero._y = 60;
var i = 0;
while (i <= 14) {
_parent.toblock(20 + (40 * i), 140);
_parent.toblock(20 + (40 * i), 180);
_parent.toblock(20 + (40 * i), 220);
_parent.toblock(20 + (40 * i), 260);
_parent.toblock(20 + (40 * i), 300);
i++;
}
var i = 0;
while (i <= 1) {
_parent.toblock(-20, 60 - (40 * i));
_parent.toblock(-60, 60 - (40 * i));
_parent.toblock(-100, 60 - (40 * i));
_parent.toblock(-140, 60 - (40 * i));
i++;
}
_parent.toblock(-100, -20);
_parent.toblock(-60, -60);
_parent.toblock(-60, -20);
_parent.toblock(-20, -20);
_parent.toblock(-220, 20);
_parent.toblock(-180, 20);
_parent.toblock(-180, 60);
var i = 0;
while (i <= 18) {
_parent.toblock(-140 + (40 * i), 100);
_parent.toblock(-140 + (40 * i), 140);
_parent.toblock(-140 + (40 * i), 180);
_parent.toblock(-140 + (40 * i), 220);
_parent.toblock(-140 + (40 * i), 260);
_parent.toblock(-140 + (40 * i), 300);
i++;
}
_parent.toblock(620, 140);
_parent.toblock(660, 100);
_root.eatebul(-140, -140, 4);
_root.eatebul(-260, -140, 4);
_root.eatebul(-380, -140, 4);
_parent.bombblock(260, -260);
_parent.bombblock(340, -260);
_parent.bombblock(420, -260);
_parent.toblock(1100, 60);
_parent.toblock(1140, 60);
_parent.toblock(1220, 60);
_parent.toblock(1300, 100);
_parent.toblock(1300, 140);
_parent.toblock(1340, 140);
_parent.toblock(1420, 100);
_root.winblock(500, -140, random(_root.itemsam) + 5);
_parent.toblock(500, -60);
spawned = true;
}
}
Instance of Symbol 367 MovieClip in Symbol 372 MovieClip Frame 19
onClipEvent (load) {
spawned = false;
}
onClipEvent (enterFrame) {
if ((spawned == false) && (_root.resett > 3)) {
_root.enemyspawns = 0;
_root.enemystart = false;
_root.enemycount = 0;
_root.needed = 0;
_root.talk.gotoAndStop(19);
_root.vcam._x = 100;
_root.hero._x = 340;
_root.hero._y = -20;
var i = 0;
while (i <= 1) {
_parent.toblock(-60, 20 - (40 * i));
_parent.toblock(-100, 20 - (40 * i));
_parent.toblock(-140, 20 - (40 * i));
_parent.toblock(-180, 20 - (40 * i));
i++;
}
_parent.toblock(-220, -20);
_parent.toblock(-100, -60);
_parent.toblock(-140, 180);
_parent.toblock(-100, 180);
_parent.toblock(-60, 220);
var i = -1;
while (i <= 25) {
_parent.toblock(-140 + (40 * i), 140);
i++;
}
var i = -1;
while (i <= 10) {
_parent.toblock(-140 + (40 * i), 100);
i++;
}
var i = 13;
while (i <= 25) {
_parent.toblock(-140 + (40 * i), 100);
i++;
}
_parent.toblock(340, 100);
var i = 4;
while (i <= 10) {
_parent.bombblock(-140 + (40 * i), -300);
i++;
}
var i = 14;
while (i <= 21) {
_parent.bombblock(-140 + (40 * i), -300);
i++;
}
_parent.jumpblock(300, 100);
_parent.fblock(340, 20);
_parent.jumpblock(380, 100);
_parent.toblock(260, 180);
_parent.toblock(300, 180);
_parent.toblock(340, 180);
_parent.toblock(380, 180);
_parent.toblock(340, 220);
_parent.toblock(500, 180);
_parent.toblock(-20, 180);
_parent.toblock(20, 180);
_parent.toblock(900, 100);
_parent.toblock(700, 180);
_parent.toblock(740, 180);
var i = 0;
while (i <= 1) {
_parent.toblock(740, 20 - (40 * i));
_parent.toblock(780, 20 - (40 * i));
_parent.toblock(820, 20 - (40 * i));
i++;
}
_parent.toblock(860, 20);
spawned = true;
}
}
Symbol 382 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
if (((((Key.isDown(65) && (_root.dudernow == false)) && (_root.proceednow == false)) && (_root.gameover == false)) && (_root.buffyo > 10)) || ((((Key.isDown(68) && (_root.dudernow == false)) && (_root.proceednow == false)) && (_root.gameover == false)) && (_root.buffyo > 10))) {
_parent.play();
}
}
onClipEvent (enterFrame) {
if (((((Key.isDown(65) && (_root.dudernow == false)) && (_root.proceednow == false)) && (_root.gameover == false)) && (_root.buffyo > 10)) || ((((Key.isDown(68) && (_root.dudernow == false)) && (_root.proceednow == false)) && (_root.gameover == false)) && (_root.buffyo > 10))) {
_parent.play();
}
}
Instance of Symbol 90 MovieClip in Symbol 382 MovieClip Frame 10
onClipEvent (load) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
_parent.gotoAndStop(1);
}
}
Symbol 390 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
if (((Key.isDown(65) && (_root.dudernow == false)) && (_root.gameover == false)) || ((Key.isDown(68) && (_root.dudernow == false)) && (_root.gameover == false))) {
_parent.play();
}
}
onClipEvent (enterFrame) {
if (((Key.isDown(65) && (_root.dudernow == false)) && (_root.gameover == false)) || ((Key.isDown(68) && (_root.dudernow == false)) && (_root.gameover == false))) {
_parent.play();
}
}
Instance of Symbol 90 MovieClip in Symbol 390 MovieClip Frame 10
onClipEvent (load) {
if ((!Key.isDown(65)) && (!Key.isDown(68))) {
_parent.gotoAndStop(1);
}
}
Instance of Symbol 90 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
if (Key.isDown(65) || (Key.isDown(68))) {
_parent.play();
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65) || (Key.isDown(68))) {
_parent.play();
}
}
Symbol 403 MovieClip Frame 1
_root.maintheme.stop();
_root.endtheme.stop();
Symbol 403 MovieClip Frame 9
stop();
Symbol 409 MovieClip Frame 1
_root.rumble1.play();
play();
Symbol 409 MovieClip Frame 16
stop();
Symbol 410 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 410 MovieClip Frame 1
onClipEvent (load) {
if ((_root.proceednow == true) && (_root.resett > 50)) {
_parent.gotoAndPlay("yay");
}
}
Instance of Symbol 90 MovieClip in Symbol 410 MovieClip Frame 2
onClipEvent (load) {
if (Key.isDown(65) || (Key.isDown(68))) {
_parent.play();
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65) || (Key.isDown(68))) {
_parent.play();
}
}
Instance of Symbol 90 MovieClip in Symbol 410 MovieClip Frame 4
onClipEvent (load) {
if (_root.proceednow == false) {
_parent.gotoAndStop(1);
}
if (_root.proceednow == true) {
_parent.gotoAndPlay("yay");
}
}
Symbol 410 MovieClip Frame 5
_root.rumble1.play();
play();
Symbol 410 MovieClip Frame 20
stop();
Symbol 410 MovieClip Frame 21
play();
Symbol 410 MovieClip Frame 23
stop();
Symbol 425 Button
on (release) {
nextFrame();
}
Symbol 428 Button
on (release) {
_root.proceednow = false;
_parent.gotoAndStop("no");
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 3
_root.hero._xscale = 100;
Symbol 431 Button
on (release) {
gotoAndStop ("no");
_root.proceednow = false;
}
Symbol 451 Button
on (release) {
gotoAndStop ("no");
_root.gotoAndStop("end");
_root.resett = -3;
_root.levelnow = 19;
_root.proceednow = false;
}
Symbol 455 MovieClip Frame 11
stop();
Symbol 456 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
_root.vcam._y = _root.vcam._y - 3;
Symbol 458 MovieClip Frame 3
_root.vcam._y = _root.vcam._y + 4;
_root.vcam._x = _root.vcam._x + 2;
Symbol 458 MovieClip Frame 4
_root.vcam._y = _root.vcam._y - 1;
_root.vcam._x = _root.vcam._x - 3;
Symbol 458 MovieClip Frame 5
_root.vcam._x = _root.vcam._x + 1;
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
_root.vcam._y = _root.vcam._y + 8;
_root.vcam._x = _root.vcam._x + 4;
Symbol 459 MovieClip Frame 3
_root.vcam._y = _root.vcam._y - 6;
Symbol 459 MovieClip Frame 4
_root.vcam._y = _root.vcam._y - 2;
_root.vcam._x = _root.vcam._x - 6;
Symbol 459 MovieClip Frame 5
_root.vcam._y = _root.vcam._y + 8;
_root.vcam._x = _root.vcam._x + 4;
_root.vcam._x = _root.vcam._x + 2;
Symbol 459 MovieClip Frame 6
_root.vcam._y = _root.vcam._y - 6;
Symbol 459 MovieClip Frame 7
_root.vcam._y = _root.vcam._y - 2;
_root.vcam._x = _root.vcam._x - 6;
Symbol 459 MovieClip Frame 8
_root.vcam._x = _root.vcam._x + 2;
Symbol 466 MovieClip Frame 27
gotoAndPlay (1);
Symbol 472 Button
on (release) {
play();
}
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 4
gotoAndStop (1);
Symbol 478 MovieClip Frame 7
gotoAndStop (1);
Symbol 478 MovieClip Frame 10
gotoAndStop (1);
Symbol 478 MovieClip Frame 13
gotoAndStop (1);
Symbol 480 Button
on (press) {
_quality = "Medium";
_root.qual = 2;
}
Symbol 482 Button
on (press) {
_quality = "Low";
_root.qual = 3;
}
Symbol 484 Button
on (press) {
_quality = "High";
_root.qual = 1;
}
Symbol 488 Button
on (release) {
_root.soundfx = false;
}
Symbol 490 Button
on (release) {
_root.soundfx = true;
}
Symbol 493 Button
on (release) {
_root.music = false;
}
Symbol 495 Button
on (release) {
_root.music = true;
}
Symbol 497 MovieClip Frame 1
stop();
Instance of Symbol 471 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.resetvis.gotoAndPlay(2);
}
}
Instance of Symbol 471 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.resetvis.gotoAndPlay(5);
}
}
Instance of Symbol 471 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.resetvis.gotoAndPlay(8);
}
}
Instance of Symbol 471 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.resetvis.gotoAndPlay(11);
}
}
Instance of Symbol 486 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.qual == 1) {
this.gotoAndStop(1);
}
if (_root.qual == 2) {
this.gotoAndStop(2);
}
if (_root.qual == 3) {
this.gotoAndStop(3);
}
}
Instance of Symbol 491 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundfx == true) {
this.gotoAndStop(1);
}
if (_root.soundfx == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 496 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.music == true) {
if (_root.levelnow < 18) {
_root.maintheme.setVolume(60);
_root.endtheme.setVolume(0);
_root.creditstheme.setVolume(0);
}
if (_root.levelnow == 18) {
_root.endtheme.setVolume(60);
_root.maintheme.setVolume(0);
_root.creditstheme.setVolume(0);
}
if (_root.levelnow == 19) {
_root.creditstheme.setVolume(60);
_root.maintheme.setVolume(0);
_root.endtheme.setVolume(0);
}
this.gotoAndStop(1);
}
if (_root.music == false) {
_root.maintheme.setVolume(0);
_root.endtheme.setVolume(0);
_root.creditstheme.setVolume(0);
this.gotoAndStop(2);
}
}
Symbol 497 MovieClip Frame 2
_root.gameover = true;
_parent.reseter.gotoAndPlay(2);
Symbol 497 MovieClip Frame 3
_root.gameover = false;
_root.resett = 0;
_root.dudernow = false;
_root.grnd.gotoAndStop(_root.levelnow + 1);
_root.hero._y = -50;
_root.hero._x = 100;
_root.fall = 0;
_root.enemyspawns = 0;
_root.enemystart = false;
_root.enemycount = 0;
_root.o = 0;
_root.i = 0;
_root.grnd.i = 150;
_root.grnd.e = 900;
_root.hero._visible = true;
_root.needed = 0;
_root.proceednow = true;
_root.hero.gotoAndStop(1);
_root.mugbreak = false;
_parent.gotoAndStop(1);
Symbol 511 Button
on (release) {
lj = lj + 1;
}
Symbol 513 Button
on (release) {
lj = lj - 1;
}
Symbol 515 Button
on (release) {
_root.resett = 0;
_root.grnd.gotoAndStop(lj + 1);
_root.levelnow = lj;
_root.hero._y = -100;
}
Symbol 525 MovieClip Frame 1
gotoAndStop(random(4) + 2);
Symbol 529 MovieClip Frame 1
gotoAndStop(random(4) + 2);
Symbol 532 MovieClip Frame 1
stop();
Symbol 532 MovieClip Frame 21
_root.fall = 0;
_root.hero.gotoAndStop(1);
_root.hero._xscale = 100;
_root.needed = 0;
Instance of Symbol 531 MovieClip in Symbol 532 MovieClip Frame 21
onClipEvent (enterFrame) {
_root.hero._y = _root.hero._y + 1;
}
Symbol 532 MovieClip Frame 36
_root.maintheme.start(0, 99999);
_root.endtheme.start(0, 99999);
Symbol 532 MovieClip Frame 44
_root.savenow = true;
Symbol 538 MovieClip Frame 1
gotoAndStop(random(4) + 2);
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 19
_root.needed = 0;
_root.birdpal._x = _root.hero._x;
_root.birdpal._y = _root.hero._y;
_root.hero._xscale = 100;
Instance of Symbol 531 MovieClip in Symbol 539 MovieClip Frame 19
onClipEvent (enterFrame) {
_root.hero._y = _root.hero._y + 1;
}
Symbol 539 MovieClip Frame 36
_root.maintheme.start(0, 99999);
_root.endtheme.start(0, 99999);
Symbol 539 MovieClip Frame 41
_root.savenow = true;
Instance of Symbol 531 MovieClip in Symbol 540 MovieClip Frame 4
onClipEvent (enterFrame) {
_root.hero._y = _root.hero._y + 1;
}
Symbol 540 MovieClip Frame 20
stop();
Symbol 544 Button
on (release) {
_root.gameover = false;
_root.resett = 0;
_root.dudernow = false;
_root.grnd.gotoAndStop(_root.levelnow + 1);
_root.hero._y = -50;
_root.hero._x = 100;
_root.fall = 0;
_root.enemyspawns = 0;
_root.enemystart = false;
_root.enemycount = 0;
_root.o = 0;
_root.i = 0;
_root.grnd.i = 150;
_root.grnd.e = 900;
_root.hero._visible = true;
_root.needed = 0;
_root.proceednow = true;
_root.hero.gotoAndStop(1);
_root.mugbreak = false;
_parent.reseter.gotoAndPlay(2);
_parent.gotoAndStop(1);
}
Symbol 546 Button
on (release) {
_root.gotoAndPlay(3);
_root.resett = 0;
_parent.gotoAndStop(1);
}
Symbol 549 MovieClip Frame 1
_root.maintheme.stop();
_root.endtheme.stop();
Symbol 549 MovieClip Frame 14
_root.rumble2.gotoAndPlay(2);
Symbol 549 MovieClip Frame 20
stop();
Symbol 550 MovieClip Frame 1
stop();
lj = 1;
Symbol 552 Button
on (release) {
gotoAndPlay ("menu");
_root.resett = 0;
}