Frame 1
stop();
initX = _root.preloader.mask._x;
onEnterFrame = function () {
var _local2 = (this.getBytesLoaded() * 100) / this.getBytesTotal();
this.preloader.mask._x = initX + ((_local2 * this.preloader.mask._width) / 100);
this.percentageLoaded.text = Math.floor(_local2);
if (_local2 == 100) {
delete onEnterFrame;
menuSound = new Sound(this);
menuSound.attachSound("menu_music");
menuSound.start(0, 1);
gotoAndStop (2);
}
};
Instance of Symbol 16 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.grinderSound.stop();
_root.factorySound.stop();
_root.levelSound2.stop();
}
Frame 2
grinderSound.stop();
factorySound.stop();
levelSound.stop();
function menuChoiceOne() {
getURL ("http://www.zombiecreations.org", "_blank");
}
function menuChoiceTwo() {
getURL ("http://www.brainsick.com.au", "_blank");
}
stop();
i = 100;
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("ZombieCreations.org", menuChoiceOne));
NewMenu.customItems.push(new ContextMenuItem("BrainSick.com.au", menuChoiceTwo));
this.menu = NewMenu;
Frame 4
chunk_speed = 10;
powerup_speed = 7;
powerup_bonus = -4;
chunk_backwards = 3;
default_char_speed = 0.5;
powerupsgotten = 0;
movingchar = 0;
char_speed = default_char_speed;
score = 0;
stop();
onEnterFrame = function () {
_root.powerup._x = 100;
_root.powerup._y = -500;
_root.deathcan._x = 100;
_root.deathcan._y = -500;
_root.chunk._x = 100;
_root.chunk._y = -500;
if (Math.floor(Math.random(1) * powerup_spawn_chance) == 0) {
duplicateMovieClip (powerup, i, i);
i++;
}
if (Math.floor(Math.random(1) * deathcan_spawn_chance) == 0) {
duplicateMovieClip (deathcan, i, i);
i++;
}
if (Math.floor(Math.random(1) * chunk_spawn_chance) == 0) {
duplicateMovieClip (chunk, i, i);
i++;
}
};
menuSound.stop();
factorySound = new Sound(this);
factorySound.attachSound("factory");
factorySound.start(0, 999);
grinderSound = new Sound(this);
grinderSound.attachSound("grinder_sound");
grinderSound.start(0, 999);
Instance of Symbol 57 MovieClip "chunk" in Frame 4
onClipEvent (load) {
random_frame = Math.floor(Math.random(1) * 5);
if (random_frame == 0) {
random_frame = 5;
}
this.gotoAndStop(random_frame);
this._x = 750;
this._y = 220;
gotten = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.unloader) || (this.hitTest(_root.unloader5))) {
this.unloadMovie();
}
this._x = this._x - _root.chunk_speed;
if (this._x <= ((-this._width) - 50)) {
this.unloadMovie();
}
if (this.hitty.hitTest(_root.char.char)) {
if (gotten == 0) {
if (_root.score > 0) {
_root.score--;
}
chunkSound = new Sound(this);
chunkSound.attachSound("chunk_sound");
chunkSound.start(0, 1);
gotten = 1;
_root.move_backwarder.gotoAndPlay(2);
}
}
}
Instance of Symbol 127 MovieClip "char" in Frame 4
onClipEvent (enterFrame) {
this._x = this._x - _root.char_speed;
if (Key.isDown(38)) {
if ((this._currentframe != 4) && (this._currentframe != 1)) {
this.gotoAndStop("jump");
}
}
if (this._currentframe == 2) {
if (_root.powerupsgotten >= 1) {
if (_root.movingchar <= 0) {
_root.move_forwarder.play();
_root.powerupsgotten--;
}
}
}
}
Instance of Symbol 138 MovieClip "powerup" in Frame 4
onClipEvent (load) {
random_frame = Math.floor(Math.random(1) * _root.powerups_avaliable);
if (random_frame == 0) {
random_frame = _root.powerups_avaliable;
}
this.powerup.gotoAndStop(random_frame);
this._x = 750;
this._y = 75;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.unloader) || (this.hitTest(_root.unloader5))) {
this.unloadMovie();
}
this._x = this._x - _root.powerup_speed;
if (this._x <= ((-this._width) - 50)) {
this.unloadMovie();
}
if (this.hitTest(_root.char.char)) {
_root.powerupsgotten = 1;
_root.score++;
powerupSound = new Sound(this);
powerupSound.attachSound("powerup_sound");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 140 MovieClip "deathcan" in Frame 4
onClipEvent (load) {
this._x = 750;
this._y = 75;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.unloader) || (this.hitTest(_root.unloader5))) {
this.unloadMovie();
}
this._x = this._x - _root.powerup_speed;
if (this._x <= ((-this._width) - 50)) {
this.unloadMovie();
}
if (this.hitTest(_root.char.char)) {
deathcanSound = new Sound(this);
deathcanSound.attachSound("click_sound");
deathcanSound.start(0, 1);
_root.move_backwarder.gotoAndPlay(2);
_root.score--;
this.unloadMovie();
}
}
Instance of Symbol 169 MovieClip "grindy" in Frame 4
onClipEvent (load) {
swapDepths(9999);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.unloader5)) {
this.unloadMovie();
}
if (_root.fader.fader._currentframe == 1) {
swapDepths(_root.getNextHighestDepth());
}
}
Instance of Symbol 142 MovieClip "winblock" in Frame 4
onClipEvent (load) {
this._visible = false;
level = 1;
_root.powerup_spawn_chance = 35;
_root.chunk_spawn_chance = 100;
_root.deathcan_spawn_chance = 250;
_root.powerups_avaliable = 3;
_root.bgs.gotoAndStop(1);
_root.grindy.gotoAndStop(1);
_root.unloader.play();
_root.death = "death";
_root.char._x = 275;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.char)) {
if (level == 1) {
_root.powerupsgotten = 0;
_root.powerup_spawn_chance = 35;
_root.chunk_spawn_chance = 75;
_root.deathcan_spawn_chance = 175;
_root.powerups_avaliable = 6;
_root.death = "death";
_root.unloader.play();
level++;
_root.fader.gotoAndStop(1);
_root.fader.fader.play();
_root.char._x = 275;
_root.char._visible = false;
} else if (level == 2) {
_root.powerupsgotten = 0;
_root.powerup_spawn_chance = 35;
_root.chunk_spawn_chance = 75;
_root.deathcan_spawn_chance = 150;
_root.powerups_avaliable = 9;
_root.death = "death2";
_root.unloader.play();
level++;
_root.fader.gotoAndStop(2);
_root.fader.fader.play();
_root.char._x = 275;
_root.char._visible = false;
} else if (level == 3) {
_root.powerupsgotten = 0;
_root.gotoAndStop("win");
}
}
}
Instance of Symbol 180 MovieClip "fader" in Frame 4
onClipEvent (load) {
click2Sound = new Sound(this);
click2Sound.attachSound("click_sound");
click2Sound.start(0, 1);
_root.levelSound2 = new Sound(this);
_root.levelSound2.attachSound("level_music");
_root.levelSound2.start(0, 999);
}
onClipEvent (enterFrame) {
swapDepths(_root.getNextHighestDepth());
}
Frame 5
grinderSound.stop();
factorySound.stop();
levelSound.stop();
menuSound = new Sound(this);
menuSound.attachSound("menu_music");
menuSound.start(0, 1);
Instance of Symbol 190 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.grinderSound.stop();
_root.factorySound.stop();
_root.levelSound2.stop();
}
Instance of Symbol 184 MovieClip "unloader5" in Frame 5
onClipEvent (load) {
this.gotoAndStop(2);
}
Frame 6
menuSound = new Sound(this);
menuSound.attachSound("menu_music");
menuSound.start(0, 1);
Instance of Symbol 196 MovieClip in Frame 6
onClipEvent (enterFrame) {
_root.grinderSound.stop();
_root.factorySound.stop();
_root.levelSound2.stop();
}
Symbol 24 Button
on (release) {
_root.gotoAndStop("levels");
}
on (rollOver) {
hoverSound = new Sound(this);
hoverSound.attachSound("powerup_sound");
hoverSound.start(0, 1);
}
Symbol 27 Button
on (release) {
click2Sound = new Sound(this);
click2Sound.attachSound("click_sound");
click2Sound.start(0, 1);
_root.gotoAndStop("instructions");
}
on (rollOver) {
hoverSound = new Sound(this);
hoverSound.attachSound("powerup_sound");
hoverSound.start(0, 1);
}
Symbol 35 Button
on (release) {
click2Sound = new Sound(this);
click2Sound.attachSound("click_sound");
click2Sound.start(0, 1);
_root.gotoAndStop("menu");
}
on (rollOver) {
hoverSound = new Sound(this);
hoverSound.attachSound("powerup_sound");
hoverSound.start(0, 1);
}
Symbol 42 MovieClip Frame 1
stop();
Instance of Symbol 52 MovieClip "hitty" in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 67 MovieClip Frame 9
chunkSound = new Sound(this);
chunkSound.attachSound("chunk_sound");
chunkSound.start(0, 1);
Symbol 67 MovieClip Frame 19
_root.char.gotoAndStop(2);
Symbol 102 MovieClip Frame 25
_root.char.gotoAndStop("walk");
Symbol 112 MovieClip Frame 19
stop();
_root.gotoAndStop("game_over");
Symbol 126 MovieClip Frame 14
stop();
_root.gotoAndStop("game_over");
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 4
deathSound = new Sound(this);
deathSound.attachSound("death");
deathSound.start(0, 1);
Symbol 127 MovieClip Frame 5
deathSound = new Sound(this);
deathSound.attachSound("death");
deathSound.start(0, 1);
Symbol 137 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.char)) {
_root.char.gotoAndStop("death");
}
}
Instance of Symbol 151 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(15);
}
Instance of Symbol 142 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.char)) {
_root.char.gotoAndStop("death2");
}
}
Symbol 166 MovieClip Frame 10
stomperSound = new Sound(this);
stomperSound.attachSound("stomper_sound");
stomperSound.start(0, 1);
Instance of Symbol 142 MovieClip in Symbol 166 MovieClip Frame 10
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.char)) {
_root.char._x = _root.char._x + _root.char_speed;
}
}
Symbol 169 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.char)) {
_root.char.gotoAndStop("death");
}
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
_root.char_speed = _root.powerup_bonus;
_root.movingchar = 1;
Symbol 171 MovieClip Frame 25
_root.char_speed = _root.default_char_speed;
_root.movingchar = 0;
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 3
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 4
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 5
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 6
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 7
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 8
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 9
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 10
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 11
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 12
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 13
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 14
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 15
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 16
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 17
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 18
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 19
_root.char_speed = _root.chunk_backwards;
Symbol 173 MovieClip Frame 20
_root.char_speed = _root.default_char_speed;
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip in Symbol 176 MovieClip Frame 10
onClipEvent (enterFrame) {
_root.char.gotoAndStop(1);
_root.char.char.gotoAndStop(1);
_root.char._x = 275;
_root.char._visible = true;
_root.bgs.gotoAndStop(2);
_root.grindy.gotoAndStop(2);
}
Instance of Symbol 175 MovieClip in Symbol 176 MovieClip Frame 30
onClipEvent (enterFrame) {
_root.char.gotoAndStop(1);
_root.char.char.gotoAndStop(1);
_root.char._x = 275;
}
Instance of Symbol 178 MovieClip in Symbol 179 MovieClip Frame 10
onClipEvent (enterFrame) {
_root.char.gotoAndStop(1);
_root.char.char.gotoAndStop(1);
_root.char._x = 275;
_root.char._visible = true;
_root.bgs.gotoAndStop(3);
_root.grindy.gotoAndStop(3);
}
Instance of Symbol 178 MovieClip in Symbol 179 MovieClip Frame 30
onClipEvent (enterFrame) {
_root.char.gotoAndStop(1);
_root.char.char.gotoAndStop(1);
_root.char._x = 275;
_root.char._visible = true;
}
Symbol 179 MovieClip Frame 40
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 188 Button
on (release) {
_root.gotoAndStop("levels");
}
on (rollOver) {
hoverSound = new Sound(this);
hoverSound.attachSound("powerup_sound");
hoverSound.start(0, 1);
}