Combined Code
frame 1 {
game = 'gandy';
stop();
}
movieClip 6 {
}
movieClip 8 {
}
instance of movieClip 8 {
onClipEvent (enterFrame) {
_root.ploaded = (_root.getBytesLoaded() / totalsize) * 100;
this._xscale = _root.ploaded;
if (_root._framesloaded == _root._totalframes && _root._currentframe == 1) {
_root.gotoAndPlay(5);
}
}
onClipEvent (load) {
totalsize = _root.getBytesTotal();
}
}
movieClip 12 {
}
movieClip 14 {
}
movieClip 15 {
}
frame 5 {
stop();
}
button 22 {
on (release) {
_root.infotext._visible = true;
}
}
button 26 {
on (release) {
getURL('http://webgames.thefellowship.nl/txt/gandy.html', '_blank');
}
}
button 30 {
on (release) {
gotoAndStop(6);
}
}
movieClip 32 {
}
button 40 {
on (release) {
getURL('http://www.onetwofree.nl', '_blank');
}
}
movieClip 43 {
}
movieClip 45 {
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 57 {
}
movieClip 59 {
}
movieClip 61 {
}
movieClip 63 {
}
movieClip 65 {
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 71 {
}
button 78 {
on (release) {
this._visible = false;
}
}
movieClip 79 {
}
instance infotext of movieClip 79 {
onClipEvent (load) {
this._visible = false;
}
}
frame 6 {
function GandyHit() {
_root.gandy._x = _root.gandyxstart;
_root.gandy._y = _root.gandyystart;
_root.gandy.leftspeed = 0;
_root.gandy.rightspeed = 0;
_root.gandy.upspeed = 0;
_root.score -= 25;
--_root.lives;
s = new Sound();
s.attachSound('ouchsound');
s.setVolume(100);
s.start();
if (_root.lives < 1) {
_root.level = 16;
_root.platforms.gotoAndStop(16);
_root.obstacles.gotoAndStop(16);
_root.background.gotoAndStop(16);
_root.foreground.gotoAndStop(16);
_root.gandy.leftspeed = 0;
_root.gandy.rightspeed = 0;
_root.gandy.upspeed = 0;
_root.steam._x = -200;
_root.ospikes._x = -100;
_root.spikes._x = -100;
_root.moriaspikes._x = -100;
_root.ospikes2.removeMovieClip();
_root.ospikes3.removeMovieClip();
_root.moriaspikes2.removeMovieClip();
_root.spikes2.removeMovieClip();
_root.spikes3.removeMovieClip();
_root.spider2.removeMovieClip();
_root.bigflame._x = -200;
_root.ickywater._x = -400;
_root.orc._x = -200;
_root.orc2._x = -200;
_root.spider1._x = -200;
_root.spiderdown1._x = -200;
_root.troll._x = -200;
_root.orcarcher._x = -200;
_root.arrowpath._x = -400;
_root.saruman._x = -550;
_root.bliksem._x = -550;
_root.mypipe._x = -610;
_root.exitsign._x = -610;
_root.goldxpos = new Array(-200, -200, -200, -200, -200, -200);
_root.goldypos = new Array(-200, -200, -200, -200, -200, -200);
_root.BuildLevel();
}
}
function BuildLevel() {
aa = 0;
while (aa < 6) {
_root['coin' + aa]._x = goldxpos[aa];
_root['coin' + aa]._y = goldypos[aa];
++aa;
}
}
game = 'gandy';
level = 1;
lives = 20;
goldxpos = new Array(15, 180, 230, 390, 610, 520);
goldypos = new Array(90, 90, 300, 400, 30, 400);
aa = 0;
while (aa < 6) {
_root.coin0.duplicateMovieClip('coin' + aa, aa);
_root['coin' + aa]._x = goldxpos[aa];
_root['coin' + aa]._y = goldypos[aa];
++aa;
}
stop();
}
movieClip 81 {
}
movieClip 83 {
}
movieClip 86 {
}
movieClip 94 {
}
movieClip 106 {
}
movieClip 110 {
}
movieClip 123 {
}
movieClip 125 {
}
movieClip 127 {
}
movieClip 129 {
}
movieClip 131 {
}
movieClip 133 {
}
movieClip 135 {
}
movieClip 137 {
}
movieClip 139 {
}
movieClip 141 {
}
movieClip 143 {
}
movieClip 145 {
}
movieClip 147 {
}
movieClip 149 {
}
movieClip 150 {
}
button 155 {
on (release) {
_root.gotoAndPlay(1);
}
}
button 162 {
on (release) {
_root.getURL('http://webgames.thefellowship.nl/cgi-bin/highscore.pl', '_blank', 'POST');
_root.gotoAndPlay(1);
}
}
movieClip 166 {
}
movieClip 167 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
instance of movieClip 94 {
onClipEvent (enterFrame) {
if (_root.oldscore < _root.score) {
++_root.oldscore;
}
}
}
frame 5 {
stop();
}
frame 6 {
stop();
}
instance of movieClip 94 {
onClipEvent (enterFrame) {
if (_root.oldscore < _root.score) {
++_root.oldscore;
}
}
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
instance of movieClip 94 {
onClipEvent (enterFrame) {
if (_root.oldscore < _root.score) {
++_root.oldscore;
}
}
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
instance of movieClip 94 {
onClipEvent (enterFrame) {
if (_root.oldscore < _root.score) {
++_root.oldscore;
}
}
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 174 {
}
movieClip 175 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 190 {
}
movieClip 191 {
}
instance bigflame of movieClip 191 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
}
movieClip 194 {
}
movieClip 203 {
}
movieClip 205 {
}
movieClip 208 {
}
movieClip 210 {
}
movieClip 212 {
}
movieClip 214 {
}
movieClip 216 {
}
movieClip 218 {
}
movieClip 220 {
}
movieClip 222 {
}
movieClip 224 {
}
movieClip 226 {
}
movieClip 227 {
frame 1 {
stop();
}
frame 42 {
stop();
}
}
movieClip 229 {
}
movieClip 233 {
}
movieClip 234 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
instance of movieClip 227 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
this.play();
}
}
}
instance of movieClip 227 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
this.play();
}
}
}
instance of movieClip 227 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
this.play();
}
}
}
instance of movieClip 227 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
this.play();
}
}
}
instance of movieClip 227 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
this.play();
}
}
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 238 {
frame 1 {
stop();
}
frame 15 {
this._x = -300;
}
}
instance coin0 of movieClip 238 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy) && this._currentframe == 1) {
_root.score += 100;
play();
}
}
}
movieClip 240 {
}
movieClip 242 {
}
movieClip 243 {
}
movieClip 244 {
}
movieClip 245 {
}
movieClip 246 {
}
movieClip 247 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance gandy of movieClip 247 {
onClipEvent (load) {
grav = 1.15;
downspeed = 0.5;
upspeed = 0;
fall = true;
leftspeed = 0;
rightspeed = 0;
speedup = 1.2;
maxspeed = 5;
maxdownspeed = 10;
}
onClipEvent (enterFrame) {
if (downspeed < maxdownspeed && fall == true) {
downspeed *= grav;
}
if (Key.isDown(Key.LEFT)) {
this._xscale = 17.9;
if (leftspeed == 0) {
leftspeed = 0.5;
}
if (leftspeed < maxspeed) {
leftspeed *= speedup;
}
}
if (Key.isDown(Key.UP)) {
if (fall == false) {
s = new Sound();
s.attachSound('jumpsound');
s.setVolume(100);
s.start();
upspeed = 12;
}
}
if (Key.isDown(Key.RIGHT)) {
this._xscale = -17.9;
if (rightspeed == 0) {
rightspeed = 0.5;
}
if (rightspeed < maxspeed) {
rightspeed *= speedup;
}
}
if (!Key.isDown(Key.LEFT)) {
if (0 < leftspeed) {
leftspeed -= 0.2;
}
if (leftspeed < 0) {
leftspeed = 0;
}
}
if (!Key.isDown(Key.RIGHT)) {
if (0 < rightspeed) {
rightspeed -= 0.2;
}
if (rightspeed < 0) {
rightspeed = 0;
}
}
if (0 < upspeed) {
upspeed *= 0.95;
if (upspeed < 0) {
upspeed = 0;
}
}
this._x -= leftspeed;
this._x += rightspeed;
this._y -= upspeed;
if (fall) {
this._y += downspeed;
}
if (_root.platforms.hitTest(this._x, this._y, true) || _root.obstacles.hitTest(this._x, this._y, true)) {
if (_root.platforms.hitTest(this._x, this._y - 3, true)) {
this._y -= 2;
}
fall = false;
upspeed = 0;
downspeed = 0.5;
} else {
fall = true;
}
if (_root.obstacles.hitTest(this._x + 15, this._y - 10, true)) {
this._x -= rightspeed;
rightspeed = 0;
}
if (_root.obstacles.hitTest(this._x - 15, this._y - 10, true)) {
this._x += leftspeed;
leftspeed = 0;
}
if (_root.ickywater.hitTest(this)) {
if (1 < leftspeed) {
leftspeed *= 0.5;
}
if (1 < rightspeed) {
rightspeed *= 0.5;
}
if (1 < rightspeed) {
downspeed *= 0.5;
}
if (1 < upspeed) {
upspeed *= 0.5;
}
}
if (fall == false && (0 < leftspeed || 0 < rightspeed)) {
this.gotoAndStop('walk');
} else {
if (fall == false) {
this.gotoAndStop('stand');
} else {
if (fall == true && downspeed < upspeed) {
this.gotoAndStop('jump');
} else {
if (fall == true && upspeed < downspeed) {
this.gotoAndStop('fall');
}
}
}
}
}
}
movieClip 249 {
}
instance spikes of movieClip 249 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
}
movieClip 251 {
}
instance moriaspikes of movieClip 251 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
}
movieClip 253 {
}
instance ospikes of movieClip 253 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
}
movieClip 258 {
}
movieClip 260 {
}
movieClip 262 {
}
movieClip 263 {
}
instance spider1 of movieClip 263 {
onClipEvent (enterFrame) {
if (_root.level == 2 || _root.level == 3) {
if (dir == 'left') {
this._x -= 4;
} else {
if (dir == 'right') {
this._x += 4;
}
}
if (this._name == 'spider1') {
if (this._x < _root.spider1left) {
dir = 'right';
this._xscale = -43.8;
} else {
if (_root.spider1right < this._x) {
dir = 'left';
this._xscale = 43.8;
}
}
} else {
if (this._name == 'spider2') {
if (this._x < 160) {
dir = 'right';
this._xscale = -43.8;
} else {
if (400 < this._x) {
dir = 'left';
this._xscale = 43.8;
}
}
}
}
}
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
onClipEvent (load) {
dir = 'left';
}
}
movieClip 265 {
}
movieClip 267 {
}
movieClip 268 {
}
instance spiderdown1 of movieClip 268 {
onClipEvent (enterFrame) {
if (_root.level == 3) {
if (dir == 'up') {
this._y -= 4;
} else {
if (dir == 'down') {
this._y += 4;
}
}
if (this._y < 60) {
dir = 'down';
this._yscale = 35.2;
} else {
if (300 < this._y) {
dir = 'up';
this._yscale = -35.2;
}
}
}
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
onClipEvent (load) {
dir = 'down';
}
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 274 {
}
movieClip 276 {
}
movieClip 277 {
}
instance orc of movieClip 277 {
onClipEvent (enterFrame) {
if (_root.level == 7 || _root.level == 8 || _root.level == 9 || _root.level == 12 || _root.level == 13) {
if (dir == 'left') {
this._x -= 5;
} else {
if (dir == 'right') {
this._x += 5;
}
}
if (this._x < _root.orc1left) {
dir = 'right';
this._xscale = -100;
} else {
if (_root.orc1right < this._x) {
dir = 'left';
this._xscale = 100;
}
}
}
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
onClipEvent (load) {
dir = 'left';
}
}
movieClip 278 {
}
instance orc2 of movieClip 278 {
onClipEvent (enterFrame) {
if (_root.level == 8) {
if (dir == 'left') {
this._x -= 5;
} else {
if (dir == 'right') {
this._x += 5;
}
}
if (_root.orc2left >= this._x) {
dir = 'right';
this._xscale = -100;
} else {
if (_root.orc2right < this._x) {
dir = 'left';
this._xscale = 100;
}
}
}
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
onClipEvent (load) {
dir = 'left';
}
}
movieClip 280 {
}
movieClip 281 {
}
movieClip 283 {
}
movieClip 285 {
}
movieClip 287 {
}
movieClip 289 {
}
movieClip 290 {
}
instance troll of movieClip 290 {
onClipEvent (enterFrame) {
if (_root.level == 9 || _root.level == 10) {
if (dir == 'left') {
this._x -= 2;
} else {
if (dir == 'right') {
this._x += 2;
}
}
if (_root.troll1left >= this._x) {
dir = 'right';
this._xscale = -100;
} else {
if (_root.troll1right < this._x) {
dir = 'left';
this._xscale = 100;
}
}
}
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
onClipEvent (load) {
dir = 'left';
}
}
movieClip 292 {
}
movieClip 294 {
}
movieClip 295 {
}
movieClip 297 {
}
movieClip 299 {
}
movieClip 300 {
}
movieClip 301 {
frame 1 {
stop();
}
}
instance saruman of movieClip 301 {
onClipEvent (enterFrame) {
if (_root.level == 13) {
++count;
if (count == 75) {
this.gotoAndPlay(2);
count = 0;
}
if (this._currentframe == 15) {
_root.bliksem._x = this._x;
_root.bliksem._y = this._y - 10;
}
}
}
}
movieClip 302 {
}
instance mypipe of movieClip 302 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
_root.gandyxstart = 50;
_root.gandyystart = 400;
_root.exitsign._x = 610;
_root.exitsign._y = 420;
_root.score += 2000;
++_root.level;
_root.platforms.nextFrame();
_root.obstacles.nextFrame();
_root.background.nextFrame();
_root.foreground.nextFrame();
_root.gandy.leftspeed = 0;
_root.gandy.rightspeed = 0;
_root.gandy.upspeed = 0;
_root.steam._x = -200;
_root.ospikes._x = -100;
_root.ospikes2.removeMovieClip();
_root.ospikes3.removeMovieClip();
_root.orc._x = -200;
_root.saruman._x = -550;
_root.bliksem._x = -550;
_root.mypipe._x = -610;
_root.gandy._x = _root.gandyxstart;
_root.gandy._y = _root.gandyystart;
if (_root.timer < 2500) {
_root.timebonus = Math.round((2500 - _root.timer) / 3);
_root.oldscore = _root.score;
_root.score += _root.timebonus;
} else {
_root.oldscore = _root.score;
_root.timebonus = 0;
}
_root.timer = 0;
}
}
}
movieClip 304 {
}
movieClip 305 {
}
instance bliksem of movieClip 305 {
onClipEvent (enterFrame) {
if (-100 < this._x) {
this._x -= 11;
}
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
}
movieClip 307 {
}
movieClip 309 {
}
instance steam of movieClip 309 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
++_root.gandy.upspeed;
_root.gandy.downspeed = 0.5;
}
}
}
movieClip 311 {
}
instance exitsign of movieClip 311 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
++_root.level;
_root.platforms.nextFrame();
_root.obstacles.nextFrame();
_root.background.nextFrame();
_root.foreground.nextFrame();
_root.gandy.leftspeed = 0;
_root.gandy.rightspeed = 0;
_root.gandy.upspeed = 0;
if (_root.level == 2) {
_root.gandyxstart = 50;
_root.gandyystart = 400;
this._x = 610;
this._y = 75;
_root.goldxpos = new Array(230, 380, 610, 230, 260, 550);
_root.goldypos = new Array(340, 420, 420, 170, 100, 150);
_root.BuildLevel();
_root.spider1left = 200;
_root.spider1right = 500;
_root.spider1._x = 430;
_root.spider1._y = 430;
_root.spider1.duplicateMovieClip('spider2', 100);
_root.spider2._x = 220;
_root.spider2._y = 119;
}
if (_root.level == 3) {
_root.gandyxstart = 20;
_root.gandyystart = 40;
_root.spider1left = 40;
_root.spider1right = 200;
this._x = 610;
this._y = 322;
_root.goldxpos = new Array(230, 400, 40, 190, 300, 540);
_root.goldypos = new Array(340, 420, 180, 180, 60, 150);
_root.BuildLevel();
_root.spider1._x = 100;
_root.spider1._y = 185;
_root.spider2.removeMovieClip();
_root.spiderdown1._x = 302;
_root.spiderdown1._y = 100;
_root.spikes._x = 340;
_root.spikes._y = 423;
_root.spikes.duplicateMovieClip('spikes2', 101);
_root.spikes.duplicateMovieClip('spikes3', 102);
_root.spikes2._x = 490;
_root.spikes2._y = 423;
_root.spikes3._x = 520;
_root.spikes3._y = 423;
}
if (_root.level == 4) {
_root.gandyxstart = 50;
_root.gandyystart = 400;
_root.spider1left = 0;
_root.spider1right = 0;
this._x = 610;
this._y = 415;
_root.goldxpos = new Array(-200, -200, -200, -200, -200, -200);
_root.goldypos = new Array(-200, -200, -200, -200, -200, -200);
_root.BuildLevel();
_root.spider1._x = -200;
_root.spider1._y = -200;
_root.spiderdown1._x = -300;
_root.spiderdown1._y = -100;
_root.spikes._x = -300;
_root.spikes._y = -400;
_root.spikes2.removeMovieClip();
_root.spikes3.removeMovieClip();
if (_root.timer < 2500) {
_root.timebonus = Math.round((2500 - _root.timer) / 3);
_root.oldscore = _root.score;
_root.score += _root.timebonus;
} else {
_root.oldscore = _root.score;
_root.timebonus = 0;
}
_root.timer = 0;
}
if (_root.level == 5) {
if (249 < _root.timebonus) {
_root.oldscore = _root.score;
_root.timer = 300;
_root.gandyxstart = 50;
_root.gandyystart = 400;
_root.spider1left = 0;
_root.spider1right = 0;
this._x = -100;
this._y = -100;
_root.goldxpos = new Array(230, 400, 40, 190, 300, 540);
_root.goldypos = new Array(340, 420, 160, 160, 60, 150);
_root.BuildLevel();
_root.spider1._x = -200;
_root.spider1._y = -200;
_root.spiderdown1._x = -300;
_root.spiderdown1._y = -100;
_root.spikes._x = -300;
_root.spikes._y = -400;
} else {
_root.level += 2;
_root.platforms.nextFrame();
_root.obstacles.nextFrame();
_root.background.nextFrame();
_root.platforms.nextFrame();
_root.obstacles.nextFrame();
_root.background.nextFrame();
_root.foreground.nextFrame();
_root.foreground.nextFrame();
}
}
if (_root.level == 7) {
_root.gandyxstart = 20;
_root.gandyystart = 400;
this._x = 610;
this._y = 415;
_root.goldxpos = new Array(230, 450, 600, 190, 560, 540);
_root.goldypos = new Array(240, 420, 210, 180, 160, 150);
_root.BuildLevel();
_root.moriaspikes._x = 425;
_root.moriaspikes._y = 425;
_root.orc._x = 600;
_root.orc._y = 218;
_root.orc1left = 470;
_root.orc1right = 615;
}
if (_root.level == 8) {
_root.gandyxstart = 20;
_root.gandyystart = 20;
this._x = 30;
this._y = 230;
_root.goldxpos = new Array(200, 450, 600, 410, 300, 200);
_root.goldypos = new Array(210, 420, 210, 240, -30, 410);
_root.BuildLevel();
_root.moriaspikes._x = 590;
_root.moriaspikes._y = 425;
_root.orc._x = 230;
_root.orc._y = 80;
_root.orc1left = 100;
_root.orc1right = 360;
_root.orc2._x = 420;
_root.orc2._y = 80;
_root.orc2left = 340;
_root.orc2right = 500;
_root.ickywater._x = 210;
_root.ickywater._y = 414;
}
if (_root.level == 9) {
_root.gandyxstart = 20;
_root.gandyystart = 20;
this._x = 380;
this._y = 415;
_root.goldxpos = new Array(440, 440, 545, 545, 235, 200);
_root.goldypos = new Array(230, 260, 230, 260, 40, 410);
_root.BuildLevel();
_root.moriaspikes._x = 270;
_root.moriaspikes._y = 425;
_root.moriaspikes.duplicateMovieClip('moriaspikes2', 101);
_root.moriaspikes2._x = 290;
_root.moriaspikes2._y = 425;
_root.orc._x = 230;
_root.orc._y = 444;
_root.orc1left = 20;
_root.orc1right = 220;
_root.orc2._x = -400;
_root.ickywater._x = 255;
_root.ickywater._y = 242;
_root.ickywater._xscale = 60;
_root.ickywater._yscale = 70;
_root.troll._x = 500;
_root.troll._y = 120;
_root.troll1left = 380;
_root.troll1right = 520;
}
if (_root.level == 10) {
_root.gandyxstart = 600;
_root.gandyystart = 340;
this._x = 620;
this._y = 135;
_root.goldxpos = new Array(440, 440, 25, 25, 160, 380);
_root.goldypos = new Array(230, 260, 390, 420, 120, 410);
_root.BuildLevel();
_root.moriaspikes._x = -270;
_root.moriaspikes._y = -425;
_root.moriaspikes2.removeMovieClip();
_root.orc._x = -230;
_root.orc._y = 444;
_root.orcarcher._x = 30;
_root.orcarcher._y = 120;
_root.arrowpath._x = 45;
_root.arrowpath._y = 95;
_root.arrowpath.gotoAndPlay(1);
_root.orc1left = 20;
_root.orc1right = 220;
_root.ickywater._x = -300;
_root.ickywater._y = 200;
_root.troll._x = 130;
_root.troll._y = 442;
_root.troll1left = 20;
_root.troll1right = 120;
_root.bigflame._x = 440;
_root.bigflame._y = 415;
}
if (_root.level == 11) {
_root.gandyxstart = 50;
_root.gandyystart = 400;
this._x = 610;
this._y = 415;
_root.goldxpos = new Array(-200, -200, -200, -200, -200, -200);
_root.goldypos = new Array(-200, -200, -200, -200, -200, -200);
_root.BuildLevel();
_root.orcarcher._x = -300;
_root.arrowpath._x = -450;
_root.troll._x = -230;
_root.bigflame._x = -440;
if (_root.timer < 2500) {
_root.timebonus = Math.round((2500 - _root.timer) / 3);
_root.oldscore = _root.score;
_root.score += _root.timebonus;
} else {
_root.oldscore = _root.score;
_root.timebonus = 0;
}
_root.timer = 0;
}
if (_root.level == 12) {
_root.gandyxstart = 10;
_root.gandyystart = 420;
this._x = 620;
this._y = 40;
_root.goldxpos = new Array(90, 260, 250, 420, 420, 600);
_root.goldypos = new Array(250, 90, 420, 420, 120, 200);
_root.BuildLevel();
_root.steam._x = 90;
_root.steam._y = 420;
_root.ospikes._x = 55;
_root.ospikes._y = 10;
_root.ospikes.duplicateMovieClip('ospikes2', 106);
_root.ospikes2._x = 115;
_root.ospikes2._y = 10;
_root.ospikes.duplicateMovieClip('ospikes3', 107);
_root.ospikes3._yscale = -100;
_root.ospikes3._x = 560;
_root.ospikes3._y = 435;
_root.orc._x = 300;
_root.orc._y = 444;
_root.orc1left = 240;
_root.orc1right = 400;
}
if (_root.level == 13) {
_root.gandyxstart = 10;
_root.gandyystart = 340;
this._x = -620;
this._y = 40;
_root.goldxpos = new Array(-200, -200, -200, -200, -200, -200);
_root.goldypos = new Array(-200, -200, -200, -200, -200, -200);
_root.BuildLevel();
_root.steam._x = 130;
_root.steam._y = 420;
_root.ospikes._x = 100;
_root.ospikes._y = 10;
_root.ospikes2._x = 160;
_root.ospikes2._y = 10;
_root.ospikes3._yscale = -100;
_root.ospikes3._x = 430;
_root.ospikes3._y = 435;
_root.orc._x = 200;
_root.orc._y = 444;
_root.orc1left = 160;
_root.orc1right = 300;
_root.saruman._x = 550;
_root.saruman._y = 444;
_root.mypipe._x = 610;
_root.mypipe._y = 420;
}
if (_root.level == 15) {
_root.gandyxstart = 10;
_root.gandyystart = 340;
this._x = -620;
this._y = 40;
}
_root.gandy._x = _root.gandyxstart;
_root.gandy._y = _root.gandyystart;
}
}
}
movieClip 313 {
}
movieClip 314 {
}
instance arrowpath of movieClip 314 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gandy)) {
_root.GandyHit();
}
}
}
movieClip 322 {
}
instance of movieClip 322 {
onClipEvent (load) {
_root.timer = 0;
_root.score = 0;
}
onClipEvent (enterFrame) {
if (_root.level == 1 || _root.level == 2 || _root.level == 3 || _root.level == 7 || _root.level == 8 || _root.level == 9 || _root.level == 10 || _root.level == 12 || _root.level == 13) {
++_root.timer;
}
if (_root.level == 5) {
--_root.timer;
if (_root.timer < 0) {
++_root.level;
_root.platforms.nextFrame();
_root.obstacles.nextFrame();
_root.background.nextFrame();
_root.foreground.nextFrame();
_root.timebonus = _root.score - _root.oldscore;
_root.gandyxstart = 50;
_root.gandyystart = 400;
_root.exitsign._x = 610;
_root.exitsign._y = 415;
_root.coin1._x = -200;
_root.coin1._y = -200;
_root.coin2._x = -200;
_root.coin2._y = -200;
_root.coin3._x = -200;
_root.coin3._y = -200;
_root.coin4._x = -200;
_root.coin4._y = -200;
_root.coin5._x = -200;
_root.coin5._y = -200;
_root.coin6._x = -200;
_root.coin6._y = -200;
}
}
}
}
movieClip 324 {
}
movieClip 325 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 327 {
}
instance of movieClip 327 {
onClipEvent (load) {
count = 0;
}
onClipEvent (load) {
}
onClipEvent (enterFrame) {
justthen = rightnow;
now = new Date();
rightnow = now.getMilliseconds();
if (rightnow < justthen) {
myfps = count;
kwal = _root._quality;
if (myfps < 30 && _root._quality == 'HIGH') {
_root._quality = 'MEDIUM';
}
if (38 < myfps && _root._quality == 'MEDIUM') {
_root._quality = 'HIGH';
}
count = 0;
}
++count;
}
}
button 332 {
on (release) {
if (music == 1) {
stopAllSounds();
music = 0;
} else {
ss = new Sound();
ss.attachSound('musicsound');
ss.setVolume(100);
ss.start(0, 999999);
music = 1;
}
}
}
movieClip 333 {
}
instance of movieClip 333 {
onClipEvent (load) {
stopAllSounds();
ss = new Sound();
ss.attachSound('musicsound');
ss.setVolume(100);
ss.start(0, 999999);
music = 1;
}
}