Frame 1
stop();
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this.PercentLoaded == 50) {
_root.play();
}
}
Frame 2
stop();
Stage.showMenu = false;
Frame 3
stop();
stopAllSounds();
mu = new Sound();
mu.attachSound("mu");
mu.start(0, 10000);
pos.data = SharedObjects.getLocal("ostrichsave");
pos.data.saved = saved;
if (saved == true) {
bestscore = pos.data.best;
}
Frame 4
stopAllSounds();
music = new Sound();
music.attachSound("music");
music.start(0, 10000);
_root.footstep1 = new Sound();
_root.footstep1.attachSound("fs1");
_root.footstep2 = new Sound();
_root.footstep2.attachSound("fs2");
_root.jump = new Sound();
_root.jump.attachSound("jump");
stop();
score2 = 0;
_root.score = 350;
Instance of Symbol 67 MovieClip "ground" in Frame 4
onClipEvent (load) {
_root.falltime = 0;
groundspeed = 10;
}
onClipEvent (enterFrame) {
if ((Key.isDown(32) && (!jumping)) and (_root.character._currentframe < 4)) {
vel_y = 28;
jumping = true;
_root.character.gotoAndStop(2);
}
if (jumping == true) {
vel_y = vel_y - 2;
if (vel_y <= -15) {
vel_y = -15;
}
if (vel_y < 15) {
if (_root.character._currentframe < 4) {
_root.character.gotoAndStop(3);
}
_root.falltime2++;
}
_root.character._y = _root.character._y - vel_y;
}
if (this.hitTest(_root.character._x, _root.character._y + 18, true)) {
vel_y = 0;
if (_root.character._currentframe < 4) {
_root.character.gotoAndStop(1);
}
_root.falling = false;
_root.falltime = 0;
jumping = false;
}
}
Instance of Symbol 72 MovieClip in Frame 4
onClipEvent (enterFrame) {
speed = (1 / (0.2 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= 0) {
this._x = 600;
}
}
Instance of Symbol 75 MovieClip in Frame 4
onClipEvent (enterFrame) {
speed = (1 / (0.142857142857143 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= 0) {
this._x = 600;
}
}
Instance of Symbol 77 MovieClip in Frame 4
onClipEvent (load) {
function reset() {
this._x = 700;
this._yscale = 30 + random(80);
this._xscale = 20 + random(80);
}
}
onClipEvent (enterFrame) {
speed = (1 / (0.142857142857143 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= 0) {
reset();
}
}
Instance of Symbol 77 MovieClip in Frame 4
onClipEvent (load) {
function reset() {
this._x = 680;
this._yscale = 40 + random(130);
this._xscale = 30 + random(130);
}
}
onClipEvent (enterFrame) {
speed = (1 / (0.142857142857143 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= 0) {
reset();
}
}
Instance of Symbol 75 MovieClip in Frame 4
onClipEvent (enterFrame) {
speed = (1 / (0.1 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= 0) {
this._x = 600;
}
}
Instance of Symbol 79 MovieClip "cactus1" in Frame 4
onClipEvent (load) {
function reset() {
if (_root.score > 200) {
this._x = _root.cactus2._x + 600;
} else {
this._x = 600 + random(100);
}
this._yscale = 70 + random(35);
}
this._x = 1000;
}
onClipEvent (enterFrame) {
speed = (1 / (0.1 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= -100) {
reset();
}
if (_root.character.hitTest(this.hit) and (_root.character._currentframe < 4)) {
_root.character.gotoAndPlay("death");
}
}
Instance of Symbol 79 MovieClip "cactus2" in Frame 4
onClipEvent (load) {
function reset() {
this._x = _root.cactus1._x + 600;
this._yscale = 70 + random(35);
}
this._x = 1000;
}
onClipEvent (enterFrame) {
if (_root.score > 200) {
speed = (1 / (0.1 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= -100) {
reset();
}
if (_root.character.hitTest(this.hit) and (_root.character._currentframe < 4)) {
_root.character.gotoAndPlay("death");
}
}
}
Instance of Symbol 79 MovieClip "cactus3" in Frame 4
onClipEvent (load) {
function reset() {
this._x = (_root.cactus1._x + _root.cactus2._x) + 600;
this._yscale = 70 + random(35);
}
this._x = 800;
}
onClipEvent (enterFrame) {
if (_root.score > 400) {
speed = (1 / (0.1 * _root.score)) * _root.score;
this._x = this._x - speed;
if (this._x <= -100) {
reset();
}
if (_root.character.hitTest(this.hit) and (_root.character._currentframe < 4)) {
_root.character.gotoAndPlay("death");
}
}
}
Instance of Symbol 84 MovieClip "character" in Frame 4
onClipEvent (load) {
score = 0;
}
onClipEvent (enterFrame) {
score = score + 0.25;
_root.score = Math.round(score);
}
Frame 5
stop();
if (bestscore == undefined) {
bestscore = 0;
}
if (_root.score > bestscore) {
bestscore = _root.score;
}
pos.data = SharedObjects.getLocal("ostrichsave");
pos.data.best = bestscore;
pos.data.saved = true;
Symbol 18 Button
on (release) {
_root.nextFrame();
}
Symbol 19 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
KB_out = (int(_root.getBytesLoaded() / 1000) + "/") + int(_root.getBytesTotal() / 1000);
if (PercentLoaded != 100) {
setProperty(barmask.bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 19 MovieClip Frame 2
gotoAndPlay (1);
Symbol 19 MovieClip Frame 3
Symbol 36 MovieClip Frame 177
stop();
_root.nextFrame();
Instance of Symbol 43 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Symbol 58 Button
on (release) {
getURL ("http://www.backbreaker.net", "_blank");
}
Symbol 61 Button
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 65 Button
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 80 MovieClip Frame 7
_root.footstep1.start();
Symbol 80 MovieClip Frame 17
_root.footstep2.start();
Symbol 83 MovieClip Frame 3
stop();
Symbol 84 MovieClip Frame 1
stop();
jump = false;
_root.footstep2.start();
Symbol 84 MovieClip Frame 2
stop();
_root.jump.start();
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
time++;
if ((Key.isDown(32) and (_root.character.jump == false)) and (time > 10)) {
_root.ground.vel_y = 22;
_root.jump.start();
_root.character.jump = true;
}
}
Instance of Symbol 44 MovieClip in Symbol 84 MovieClip Frame 2
/* no clip actions */
Symbol 84 MovieClip Frame 3
stop();
Symbol 84 MovieClip Frame 6
crash = new Sound(_root.ground);
crash.attachSound("crash");
crash.setVolume(30);
crash.start();
Symbol 84 MovieClip Frame 10
_root.jump.start();
Symbol 84 MovieClip Frame 18
_root.footstep1.start();
_root.footstep2.start();
Symbol 84 MovieClip Frame 33
_root.gotoAndStop("gameover");
Symbol 91 Button
on (release) {
gotoAndStop (3);
}
Symbol 94 MovieClip Frame 1
pfff = new Sound();
pfff.attachSound("pfff");
pfff.start();
crash = new Sound();
crash.attachSound("crash");
Symbol 94 MovieClip Frame 30
crash.start();
Symbol 94 MovieClip Frame 34
stop();