Combined Code
frame 1 {
ifFrameLoaded (6) {
gotoAndStop(4);
}
}
frame 2 {
ifFrameLoaded (6) {
gotoAndStop(4);
}
}
movieClip 9 {
}
movieClip 10 {
}
frame 3 {
gotoAndPlay(2);
}
frame 4 {
/:level = '1';
/:lives = '4';
/:character = '1';
/:score = '0';
/:scoretop = '0';
/:scorebtm = '0000';
}
button 49 {
on (release, keyPress '<Space>') {
gotoAndStop(5);
}
}
button 93 {
on (release, keyPress '<Space>') {
gotoAndPlay(6);
}
}
frame 6 {
ifFrameLoaded (10) {
gotoAndPlay(10);
}
}
frame 7 {
gotoAndPlay(6);
}
movieClip 112 {
frame 1 {
stop();
}
frame 2 {
gotoAndStop(1);
}
frame 3 {
gotoAndStop(1);
}
}
button 115 {
on (release, keyPress '<Space>') {
tellTarget ('/sound') {
gotoAndStop('playAgain');
}
gotoAndPlay(4);
}
}
button 122 {
on (release, keyPress '<Space>') {
/:level += '1';
gotoAndPlay(10);
}
}
frame 10 {
startDrag('/mouse', true);
/:crash = '0';
/:jump = '0';
if (/:level == '1') {
/:character = '1';
/:objects = '30';
/:random = '10';
/:extralife = '0';
} else {
if (/:level == '2') {
/:character = '2';
/:objects = '30';
/:random = '12';
/:extralife = '1';
} else {
if (/:level == '3') {
/:character = '3';
/:objects = '45';
/:random = '14';
/:extralife = '1';
} else {
if (/:level == '4') {
/:character = '4';
/:objects = '60';
/:random = '16';
/:extralife = '1';
} else {
if (/:level == '5') {
/:character = '5';
/:objects = '75';
/:random = '18';
/:extralife = '1';
}
}
}
}
}
tellTarget ('/player') {
gotoAndStop(/:character);
}
}
movieClip 127 {
}
movieClip 129 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 17 {
call('../:crash');
}
frame 18 {
call('../:crash');
}
frame 19 {
call('../:crash');
}
frame 20 {
call('../:crash');
}
frame 21 {
call('../:next');
}
frame 30 {
call('../:done');
}
}
movieClip 131 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:crash');
}
frame 26 {
call('../:next');
}
frame 46 {
call('../:done');
}
}
movieClip 133 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 19 {
call('../:crash');
}
frame 20 {
call('../:crash');
}
frame 21 {
call('../:crash');
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:next');
}
frame 45 {
call('../:done');
}
}
movieClip 135 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:crash');
}
frame 26 {
call('../:next');
}
frame 43 {
call('../:done');
}
}
movieClip 136 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:crash');
}
frame 26 {
call('../:next');
}
frame 43 {
call('../:done');
}
}
movieClip 138 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:crash');
}
frame 26 {
call('../:next');
}
frame 45 {
call('../:done');
}
}
movieClip 140 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:crash');
}
frame 26 {
call('../:next');
}
frame 43 {
call('../:done');
}
}
movieClip 142 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:crash');
}
frame 26 {
call('../:next');
}
frame 43 {
call('../:done');
}
}
movieClip 146 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:crash');
}
frame 26 {
call('../:next');
}
frame 43 {
call('../:done');
}
}
movieClip 149 {
}
movieClip 150 {
frame 5 {
tellTarget ('../') {
gotoAndStop(2);
}
}
frame 21 {
call('../:crash');
}
frame 22 {
call('../:crash');
}
frame 23 {
call('../:crash');
}
frame 24 {
call('../:crash');
}
frame 25 {
call('../:next');
}
frame 38 {
call('../:done');
}
}
movieClip 151 {
frame 1 {
hazard = substring(_name, '1', '7');
bonus = '0';
stop();
}
frame 2 {
if (_x < /:x + '40' and /:x - '40' < _x and /:crash == '0') {
if ('0' < /:jump and '0' < mode) {
/:bonus = '10';
} else {
if (mode == '2') {
trace('EXTRA LIFE');
tellTarget ('/lives') {
/:lives += '1';
prevFrame();
}
tellTarget ('/sound') {
gotoAndStop('bonus');
}
tellTarget (''/' add hazard add 'a'') {
gotoAndStop(1);
}
gotoAndStop(1);
} else {
trace('CRASH');
/:crash = '1';
/crash._x = /player._x;
/crash._y = /player._y;
/crash._rotation = /player._rotation;
tellTarget ('/crash') {
gotoAndPlay(2);
}
tellTarget ('/player/character') {
gotoAndStop(3);
}
tellTarget ('/lives') {
/:lives -= '1';
nextFrame();
}
/:jump = '0';
}
}
}
}
frame 3 {
eval('/' add hazard add 'c')._x = _x;
tellTarget (''/' add hazard add 'c'') {
gotoAndStop(eval('/:' add hazard) + '4');
}
if (/:crash == '0') {
if ('0' < /:bonus) {
tellTarget ('/boat') {
gotoAndStop(2);
}
}
/:score = /:score + '1' + /:bonus;
/:bonus = '0';
}
gotoAndStop(1);
}
frame 4 {
tellTarget ('object') {
gotoAndPlay('b');
}
}
frame 5 {
mode = '1';
call('play');
}
frame 6 {
mode = '1';
call('play');
}
frame 7 {
mode = '1';
call('play');
}
frame 8 {
mode = '1';
call('play');
}
frame 9 {
mode = '1';
call('play');
}
frame 10 {
mode = '1';
call('play');
}
frame 11 {
mode = '1';
call('play');
}
frame 12 {
mode = '1';
call('play');
}
frame 13 {
mode = '1';
call('play');
}
frame 14 {
mode = '1';
call('play');
}
frame 15 {
mode = '0';
call('play');
}
frame 16 {
mode = '0';
call('play');
}
frame 17 {
mode = '1';
call('play');
}
frame 18 {
mode = '1';
call('play');
}
frame 19 {
mode = '1';
call('play');
}
frame 20 {
mode = '1';
call('play');
}
frame 21 {
mode = '1';
call('play');
}
frame 22 {
mode = '1';
call('play');
}
frame 25 {
mode = '2';
call('play');
}
}
movieClip 158 {
}
movieClip 162 {
frame 1 {
gotoAndStop(random('2') + '2');
}
}
movieClip 163 {
frame 12 {
tellTarget ('../') {
gotoAndStop(1);
}
}
}
movieClip 164 {
frame 12 {
tellTarget ('../') {
gotoAndStop(1);
}
}
}
movieClip 165 {
frame 1 {
stop();
}
}
movieClip 167 {
}
movieClip 168 {
}
movieClip 171 {
frame 1 {
if (/:crash == '0') {
stop();
}
}
frame 14 {
/:crash = '0';
gotoAndStop(1);
}
}
movieClip 178 {
frame 15 {
tellTarget ('../') {
gotoAndStop(1);
}
stop();
}
}
movieClip 179 {
frame 1 {
stop();
}
}
movieClip 181 {
frame 15 {
tellTarget ('../') {
gotoAndStop(1);
}
stop();
}
}
movieClip 182 {
frame 5 {
stop();
}
}
movieClip 183 {
frame 1 {
stop();
}
}
movieClip 184 {
frame 15 {
tellTarget ('../') {
gotoAndStop(1);
}
stop();
}
}
movieClip 185 {
frame 5 {
stop();
}
}
movieClip 186 {
frame 1 {
stop();
}
}
movieClip 188 {
frame 15 {
tellTarget ('../') {
gotoAndStop(1);
}
stop();
}
}
movieClip 189 {
frame 5 {
stop();
}
}
movieClip 190 {
frame 1 {
stop();
}
}
movieClip 191 {
frame 15 {
tellTarget ('../') {
gotoAndStop(1);
}
stop();
}
}
movieClip 192 {
frame 1 {
stop();
}
}
movieClip 193 {
frame 1 {
gotoAndStop(/:character);
}
}
movieClip 194 {
frame 1 {
hazard = substring(_name, '1', '7');
stop();
}
frame 2 {
/:objects -= '1';
if ('0' < /:objects) {
tellTarget (''/' add hazard add 'a'') {
gotoAndStop(1);
}
gotoAndStop(1);
} else {
tellTarget ('/') {
if (/:level == '5') {
gotoAndStop('gameover');
} else {
gotoAndStop('level');
}
}
}
}
frame 4 {
tellTarget ('object') {
gotoAndPlay('c');
}
}
frame 5 {
call('play');
}
frame 6 {
call('play');
}
frame 7 {
call('play');
}
frame 8 {
call('play');
}
frame 9 {
call('play');
}
frame 10 {
call('play');
}
frame 11 {
call('play');
}
frame 12 {
call('play');
}
frame 13 {
call('play');
}
frame 14 {
call('play');
}
frame 15 {
call('play');
}
frame 16 {
call('play');
}
frame 17 {
call('play');
}
frame 18 {
call('play');
}
frame 19 {
call('play');
}
frame 20 {
call('play');
}
frame 21 {
call('play');
}
frame 22 {
call('play');
}
frame 25 {
call('play');
}
}
movieClip 196 {
frame 1 {
gotoAndStop('5' - /:lives);
stop();
}
}
movieClip 201 {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 2 {
/:crash = '1';
play();
}
frame 2 {
play();
}
frame 3 {
play();
}
frame 14 {
if ('0' < /:lives) {
tellTarget ('/player/character') {
gotoAndStop(1);
}
} else {
tellTarget ('/') {
gotoAndStop('gameover');
}
}
}
}
button 202 {
on (release, keyPress '<Space>') {
if (/:jump == '0' and /:crash == '0') {
/:jump = '15';
tellTarget ('/player/character') {
gotoAndStop(2);
}
}
}
}
movieClip 203 {
frame 1 {
if ('40' < _x and _x < '360') {
/player._x = int(_x);
} else {
if (_x < '40') {
/player._x = '40';
} else {
if ('360' < _x) {
/player._x = '360';
}
}
}
y = int(/player._x - '200');
/:angle = int((y - (y + y)) / '3');
/player._y = '300' - y * y / '500';
/player._xscale = '100';
/player._yscale = '100';
/player._rotation = y / '5';
if ('0' < /:jump) {
if ('7' < /:jump and /:jump < '14') {
n += '0.07';
r += '1';
} else {
if ('2' < /:jump and /:jump < '14') {
n -= '0.08';
r -= '1';
} else {
n = '0';
r = '0';
}
}
if ('0' < /:angle) {
rope = r * (('53' - /:angle) / '5');
} else {
rope = r * (('53' + /:angle) / '5');
}
/:jump -= '1';
} else {
rope = '0';
r = '0';
n = '0';
}
/rope/length._yscale = '100' - rope;
/rope._xscale = '100';
/rope._yscale = '100';
/rope._rotation = y / ('1.5' + n) - y;
wake = '30';
while ('1' < wake) {
eval('/wake' add wake)._y = (eval('/wake' add (wake - '1')))._y + '5';
eval('/wake' add wake)._x = (eval('/wake' add (wake - '1')))._x;
wake -= '1';
}
if ('0' < /:jump) {
/wake1._x = '500';
} else {
/wake1._y = /player._y + '5';
/wake1._x = /player._x;
}
if (/:scoretop != /:score) {
/:scoretop += '1';
if (/:scoretop < '10') {
/:scorebtm = '000' add /:scoretop;
} else {
if (/:scoretop < '100') {
/:scorebtm = '00' add /:scoretop;
} else {
if (/:scoretop < '1000') {
/:scorebtm = '0' add /:scoretop;
} else {
/:scorebtm = /:scoretop;
}
}
}
}
/:x = /player._x;
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 207 {
frame 1 {
if ('0' < /:objects) {
hazard = substring(_name, '1', '7');
_x = (random('32') + '4') * '10';
if (/:objects == '10' and /:lives < '4' and '0' < /:extralife) {
/:extralife -= '1';
eval('/:' add hazard) = '21';
} else {
eval('/:' add hazard) = random(/:random) + '1';
}
gotoAndStop(eval('/:' add hazard) + '4');
}
if ('140' < _x and _x < '260') {
tellTarget ('/boat') {
gotoAndStop(3);
}
}
}
frame 2 {
eval('/' add hazard add 'b')._x = _x;
tellTarget (''/' add hazard add 'b'') {
gotoAndStop(eval('/:' add hazard) + '4');
}
}
}
frame 20 {
if (/:level == '1' or /:level == '2') {
stop();
}
}
frame 25 {
if (/:level == '3') {
stop();
}
}
frame 30 {
if (/:level == '4') {
stop();
}
}
frame 35 {
stop();
}