STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229494
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2575 · P5149

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/89244518?noj=FRM89244518-14DC" width="1" height="1"></div>

Horror-Scape.swf

This is the info page for
Flash #108083

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { function deadClick() {} function gotoMySite() { getURL('http://www.facebook.com/home.php?#!/pages/Anthony-Ferriola-Design/306199918858', '_top'); } level = 0; continues = 5; checkpoint = 0; monDeath = 0; var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var copyrightNotice = new ContextMenuItem('© 2010 Anthony Ferriola', deadClick); var mySiteLink = new ContextMenuItem('Ferriola Design Studios', gotoMySite); myMenu.customItems.push(mySiteLink, copyrightNotice); _root.menu = myMenu; } frame 1 { remove = false; } frame 1 { _root.loaded = PercentLoaded + '%'; _root.maxLoad = '100%'; PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; completed = PercentLoaded * 360 / 100; if (PercentLoaded != 100) { _root.preloader.loadBar._xscale = PercentLoaded; _root.logo._alpha = PercentLoaded; } else { _root.bat.Start = true; gotoAndStop(3); } } movieClip 7 { } movieClip 10 { } instance of movieClip 10 { onClipEvent (enterFrame) { this._x -= 0.5; if (this._x + 700 <= _root._x) { this._x = _root._x + 700; } } } instance of movieClip 10 { onClipEvent (enterFrame) { this._x -= 0.5; if (this._x + 700 <= _root._x) { this._x = _root._x + 700; } } } movieClip 13 { } instance mounts of movieClip 13 { onClipEvent (enterFrame) { this._x -= 1; if (this._x + 700 <= _root._x) { this._x = _root._x + 700; } } } instance mounts of movieClip 13 { onClipEvent (enterFrame) { this._x -= 1; if (this._x + 700 <= _root._x) { this._x = _root._x + 700; } } } movieClip 15 { } movieClip 17 { } movieClip 19 { } movieClip 20 { } movieClip 22 { } movieClip 25 { } movieClip 26 { instance cloud of movieClip 25 { onClipEvent (load) { continued = true; maxCount = 50; count = 0; timer = 0; maxTime = 10; alphaSpeed = 3; size = random(45) + 35; xPos = 100; yPos = random(100) + 200; alphaMax = random(75) + 25; xMove = random(5) + 10; yMove = random(2) - 1; xrotate = random(8) + 1; if (this._name == 'cloud') { this._y = _root._y - 100; } if (this._name != 'cloud') { this._x = xPos; this._y = yPos; this._xscale = size; this._yscale = size; this._alpha = alphaMax; } } onClipEvent (enterFrame) { if (this._name != 'cloud') { this._x += xMove; } if (this._x >= _root._x + 600) { this.removeMovieClip(); } if (this._name == 'cloud') { ++timer; } if (this._name == 'cloud' && timer >= maxTime && continued == true) { maxTime = 0; ++count; this.duplicateMovieClip('cloud' + count, count); ++count; this.duplicateMovieClip('cloud' + count, count); } } } } movieClip 28 { } // unknown tag 88 length 96 movieClip 35 { } instance fader of movieClip 35 { onClipEvent (load) { fadeIn = false; fadeOut = false; } onClipEvent (enterFrame) { if (fadeIn == true) { if (this._alpha <= 100 && this._alpha >= 0) { this._alpha += 5; } } if (fadeOut == true) { if (this._alpha <= 100 && this._alpha >= 0) { this._alpha -= 5; } } } } frame 2 { gotoAndPlay(1); } movieClip 38 { } frame 3 { _root.fader._alpha = 0; _root.fader.fadeIn = false; _root.fader.fadeOut = false; } frame 3 { _root.fader._alpha = 0; } movieClip 46 { } movieClip 52 { } movieClip 53 { } movieClip 54 { } movieClip 56 { } movieClip 59 { } movieClip 60 { instance cloud of movieClip 59 { onClipEvent (load) { continued = true; maxCount = 50; count = 0; timer = 0; maxTime = 15; alphaSpeed = 3; size = random(150) + 100; xPos = random(400) + 100; yPos = random(150) + 5; alphaMax = random(75) + 25; xMove = random(4) - 2; yMove = random(2) - 1; xrotate = random(8) + 1; if (this._name == 'cloud') { this._y = _root._y - 100; } if (this._name != 'cloud') { this._x = xPos; this._y = yPos; this._xscale = size; this._yscale = size; this._alpha = 1; } } onClipEvent (enterFrame) { if (_root.marty._x >= _root.platforms._x) { if (this._name != 'cloud') { this._alpha += alphaSpeed; this._x += xMove; this._y += yMove; this._rotation += xrotate; if (this._alpha >= alphaMax) { alphaSpeed = -3; } } } if (this._alpha <= 0) { --_root.frontal.scloud.count; this.removeMovieClip(); } if (this._name == 'cloud') { ++timer; } if (this._name == 'cloud' && timer >= maxTime && continued == true) { maxTime = 0; ++count; this.duplicateMovieClip('cloud' + count, count); ++count; this.duplicateMovieClip('cloud' + count, count); ++count; this.duplicateMovieClip('cloud' + count, count); ++count; this.duplicateMovieClip('cloud' + count, count); } } } } movieClip 61 { } movieClip 62 { frame 530 { _root.gotoAndStop(4); } frame 2025 { _root.gotoAndStop(3); } } movieClip 64 { } button 66 { on (press) { _root.movie.gotoAndPlay(529); } } movieClip 71 { } movieClip 72 { instance sprite of movieClip 71 { onClipEvent (load) { maxCount = 45; count = 0; timer = 0; maxTime = 10; alphaSpeed = 3; size = random(25) + 15; xPos = random(700) + 0; yPos = random(300) + 0; alphaMax = random(50) + 50; xMove = random(4) - 2; yMove = random(4) - 2; if (this._name == 'sprite') { this._y = _root._y - 25; } if (this._name != 'sprite') { this._x = _root._x + xPos; this._y = _root._y + yPos; this._xscale = size; this._yscale = size; this._alpha = 1; } } onClipEvent (enterFrame) { if (_root.marty._x >= _root.platforms._x) { if (this._name != 'sprite') { this._alpha += alphaSpeed; if (this._alpha >= alphaMax) { alphaSpeed = -3; } } } if (this._alpha <= 0) { --_root.frontal.sprite.count; this.removeMovieClip(); } if (this._name == 'sprite') { ++timer; } if (this._name == 'sprite' && timer >= maxTime) { maxTime = 0; ++count; this.duplicateMovieClip('sprite' + count, count); } } } } movieClip 77 { } movieClip 82 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 83 { } movieClip 88 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 89 { instance flame of movieClip 83 { onClipEvent (load) { speed == 35; time == 0; } onClipEvent (enterFrame) { time += 1; if (time >= 5) { time = 0; this._alpha = random(50) + 25; } } } instance a of movieClip 88 { onClipEvent (load) { wait1 = 60; time = 0; this._alpha = 0; state = 1; soundfx = 1; } onClipEvent (enterFrame) { ++time; if (time >= wait1) { if (soundfx == 1) { thunder.start(); } if (soundfx == 2) { thunder2.start(); } if (soundfx == 3) { thunder3.start(); } this.gotoAndStop(state); this._alpha = random(55) + 15; soundfx = random(3) + 1; state = random(3) + 1; wait1 = random(280) + 10; time = 0; } if (this._alpha > 0) { this._alpha -= 5; } if (soundfx == 1) { thunder = new Sound(); thunder.attachSound('thunder3.mp3'); } if (soundfx == 2) { thunder2 = new Sound(); thunder2.attachSound('thunder2.mp3'); } if (soundfx == 3) { thunder3 = new Sound(); thunder3.attachSound('thunder.mp3'); } } } } instance back of movieClip 89 { onClipEvent (load) { this._alpha = 0; alphaSet = true; } onClipEvent (enterFrame) { if (alphaSet == true) { ++this._alpha; } if (this._alpha >= 100) { alphaSet = false; } } } movieClip 91 { } movieClip 94 { } movieClip 97 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { gotoAndStop(1); } } // unknown tag 88 length 101 button 102 { on (rollOver) { _root.blood1.gotoAndPlay(2); } on (rollOut) { _root.blood1.gotoAndPlay(11); } on (press) { _quality = 'low'; } } button 106 { on (rollOver) { _root.blood3.gotoAndPlay(2); } on (rollOut) { _root.blood3.gotoAndPlay(11); } on (press) { _quality = 'medium'; } } button 110 { on (rollOver) { _root.blood4.gotoAndPlay(2); } on (rollOut) { _root.blood4.gotoAndPlay(11); } on (press) { _quality = 'high'; } } movieClip 112 { } instance options of movieClip 112 { onClipEvent (load) { begin = false; menu = false; } onClipEvent (enterFrame) { if (begin == true) { --this._y; if (this._y + 130 < _root._y + 500) { ++this._y; } } begin = false; if (begin) { ++this._y; if (this._y > _root._y + 500) { --this._y; } } } } movieClip 114 { } button 116 { on (rollOver) { _root.blood2.gotoAndPlay(2); } on (rollOut) { _root.blood2.gotoAndPlay(11); } on (release) { _root.continues = 5; _root.fader.fadeIn = true; _root.fader.fadeOut = false; } } movieClip 117 { } instance of movieClip 117 { onClipEvent (enterFrame) { if (_root.fader.fadeIn == true && _root.fader._alpha >= 100) { stopAllSounds(); _root.gotoAndStop(5); } } } movieClip 120 { } button 122 { on (release) { getURL('http://www.facebook.com/home.php?#!/pages/Anthony-Ferriola-Design/306199918858', _blank); } } button 123 { on (release) { _root.continues = 5; _root.gotoAndStop(11); } } // unknown tag 88 length 123 movieClip 133 { frame 2 { _root.background._alpha = 0; _root.background1._alpha = 0; _root.farBack._alpha = 0; _root.platforms._alpha = 0; _root.frontal._alpha = 0; _root.animal1._alpha = 0; _root.animal2._alpha = 0; _root.animal3._alpha = 0; _root.animal4._alpha = 0; _root.movie.logo.gotoAndStop(2); _root.movie.logo.fadein = true; } frame 115 { _root.movie.logo.gotoAndStop(2); _root.movie.logo.fadein = false; } frame 150 { _root.movie.logo.gotoAndStop(3); _root.movie.logo.fadein = true; } frame 270 { _root.movie.logo.gotoAndStop(3); _root.movie.logo.fadein = false; } frame 300 { _root.background._alpha = 100; _root.background1._alpha = 100; _root.farBack._alpha = 100; _root.platforms._alpha = 100; _root.frontal._alpha = 100; _root.animal1._alpha = 100; _root.animal2._alpha = 100; _root.animal3._alpha = 100; _root.animal4._alpha = 100; _root.animal5._alpha = 100; } frame 302 { _root.movie.brak.gotoAndPlay(2); } frame 303 { stop(); } frame 304 { _root.clip.gotoAndStop(301); } frame 725 { _root.movie.brak.gotoAndPlay(2); } frame 845 { stop(); } } movieClip 136 { frame 2 { stop(); } } movieClip 139 { frame 2 { stop(); } } movieClip 142 { frame 2 { stop(); } } movieClip 145 { frame 2 { stop(); } } movieClip 150 { } movieClip 153 { frame 444 { _root.healthBar.death = true; } } movieClip 156 { frame 259 { _root.creature1.active = true; _root.creature1.part = 0; _root.marty.gravity = 0; _root.marty.active = true; _root.topBar.hide = true; _root.bottomBar.hide = true; } frame 260 { stop(); } } movieClip 159 { frame 2 { stop(); } } movieClip 162 { frame 2 { stop(); } } movieClip 163 { 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 5 { _root.music.gotoAndStop(2); } frame 5 { _root.fader._alpha = 100; _root.fader.fadeIn = false; stop(); } movieClip 169 { frame 1 { stop(); } frame 2 { stop(); } } instance farBack of movieClip 169 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } movieClip 177 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance background1 of movieClip 177 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } movieClip 180 { } movieClip 182 { } movieClip 184 { } movieClip 186 { } movieClip 188 { } movieClip 189 { } movieClip 207 { } movieClip 209 { } movieClip 218 { } movieClip 223 { } movieClip 224 { instance farBack of movieClip 169 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance background1 of movieClip 177 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 300 { stop(); } frame 301 { stop(); } } movieClip 236 { } movieClip 238 { } instance animal2 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } movieClip 244 { } instance animal4 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == true) { this._rotation -= 15; this._x -= 30; this._y -= 10 - gravity; } if (right == false) { this._rotation += 15; this._x += 30; this._y -= 10 - gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal1 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal3 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } movieClip 246 { } movieClip 248 { } movieClip 250 { } movieClip 253 { } movieClip 257 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 259 { } movieClip 264 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 270 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 271 { } movieClip 273 { } movieClip 277 { instance of movieClip 270 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } frame 6 { _root.marty.punch = false; _root.marty.upperBody.gotoAndStop(1); } } movieClip 278 { instance eyes of movieClip 264 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance mouth of movieClip 270 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } } movieClip 279 { instance of movieClip 270 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } instance of movieClip 257 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 15 { _root.marty.punch = false; _root.marty.upperBody.gotoAndStop(1); } } movieClip 280 { instance of movieClip 257 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance of movieClip 257 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } } movieClip 281 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 282 { } movieClip 283 { } movieClip 284 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 285 { } movieClip 286 { frame 30 { stop(); } } movieClip 287 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 288 { frame 30 { stop(); } } movieClip 289 { frame 30 { stop(); } } movieClip 294 { instance of movieClip 270 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } frame 3 { stop(); } } movieClip 295 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 299 { instance mouth of movieClip 270 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } instance eyes of movieClip 264 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 55 { stop(); } } movieClip 302 { } movieClip 309 { } movieClip 310 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 311 { instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 312 { instance eyes of movieClip 264 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } instance of movieClip 270 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } } movieClip 313 { instance eyes of movieClip 264 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } instance of movieClip 270 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } frame 80 { stop(); } } movieClip 314 { frame 155 { _root.movie.marty.gotoAndStop(1); } } movieClip 315 { frame 55 { gotoAndPlay(35); } } movieClip 316 { instance of movieClip 257 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance of movieClip 257 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 20 { stop(); } } movieClip 317 { 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(); } } instance marty of movieClip 317 { onClipEvent (load) { movieStill = false; movieUndeadStill = false; movieElectric = false; levelxMin = -25; levelxMax = 2430; punch = false; dustTimer = 0; screenMove = true; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (_root.platforms.hitTest(_x, _y, true)) { air = false; } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 500) { _root.healthBar.health = 0; } if (jump == true) { speedjump = 14; _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + levelxMax < _root._x + 710) { if (_root.platforms._x + levelxMax < _root._x + 710) { _root.movie._alpha = 100; _root.movie.gotoAndStop(153); active = false; edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x + levelxMin > _root._x - 10) { if (_root.platforms._x + levelxMin > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { state = 3; } else { state = 1; } } } } } } movieClip 322 { } movieClip 326 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 328 { } movieClip 330 { } movieClip 333 { } movieClip 334 { instance eyes of movieClip 333 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == 'eyes') { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } } movieClip 335 { } movieClip 336 { } movieClip 341 { frame 250 { stopAllSounds(); _root.movie.brak.gotoAndPlay(107); } } movieClip 342 { frame 1 { stop(); } frame 2 { _root.movie.logo.gotoAndStop(1); _root.movie.logo.fadein = true; } frame 30 { sprinkle = true; } instance sprite of movieClip 71 { onClipEvent (load) { maxCount = 45; count = 0; timer = 0; maxTime = 10; alphaSpeed = 3; size = random(50) + 20; xPos = _root.movie.brak.sprite._x; yPos = _root.movie.brak.sprite._y; alphaMax = random(50) + 50; xMove = random(4) + 1; yMove = random(4) + 1; if (this._name == 'sprite') { } if (this._name != 'sprite') { this._x = xPos; this._y = yPos; this._xscale = size; this._yscale = size; this._alpha = 1; } } onClipEvent (enterFrame) { if (_root.marty._x >= _root.platforms._x) { if (this._name != 'sprite') { this._alpha += alphaSpeed; this._y += yMove; if (this._alpha >= alphaMax) { alphaSpeed = -3; } } } if (this._alpha <= 0) { --_root.frontal.sprite.count; this.removeMovieClip(); } if (this._name == 'sprite') { ++timer; } if (this._name == 'sprite' && timer >= maxTime) { maxTime = 0; ++count; this.duplicateMovieClip('sprite' + count, count); } } } frame 69 { _root.movie.logo.gotoAndStop(1); _root.movie.logo.fadein = false; } instance sprite of movieClip 71 { onClipEvent (load) { maxCount = 45; count = 0; timer = 0; maxTime = 10; alphaSpeed = 3; size = random(50) + 20; xPos = this._x; yPos = this._y; alphaMax = random(50) + 50; xMove = random(4) + 1; yMove = random(4) + 1; if (this._name == 'sprite') { this._y = _root._y - 25; } if (this._name != 'sprite') { this._x = _root.marty.brak.xPos; this._y = _root.marty.brak.yPos; this._xscale = size; this._yscale = size; this._alpha = 1; } } onClipEvent (enterFrame) { if (_root.marty._x >= _root.platforms._x) { if (this._name != 'sprite') { this._alpha += alphaSpeed; this._y += yMove; if (this._alpha >= alphaMax) { alphaSpeed = -3; } } } if (this._alpha <= 0) { --_root.frontal.sprite.count; this.removeMovieClip(); } if (this._name == 'sprite') { ++timer; } if (this._name == 'sprite' && timer >= maxTime) { maxTime = 0; ++count; this.duplicateMovieClip('sprite' + count, count); } } } frame 95 { sprinkle = false; } frame 106 { stop(); } frame 107 { _root.music.music.gotoAndPlay(304); } frame 280 { _root.movie.gotoAndPlay(2); } } movieClip 346 { } movieClip 347 { instance of movieClip 346 { onClipEvent (load) { this.gotoAndPlay(22); } } instance of movieClip 346 { onClipEvent (load) { this.gotoAndPlay(15); } } instance of movieClip 346 { onClipEvent (load) { this.gotoAndPlay(7); } } frame 140 { stop(); } } movieClip 358 { frame 520 { _root.movie.brak.gotoAndPlay(82); } } movieClip 365 { frame 220 { _root.movie.brak.gotoAndPlay(237); } } movieClip 367 { } movieClip 370 { } movieClip 371 { } movieClip 378 { frame 152 { _root.movie.marty.gotoAndStop(1); } frame 245 { _root.movie.nextFrame(); } } movieClip 379 { frame 1 { stop(); } frame 80 { } frame 81 { stop(); } frame 126 { _root.movie.marty.gotoAndStop(10); } frame 166 { _root.movie.marty.upperBody.mouth.gotoAndStop(4); _root.movie.marty.upperBody.eyes.gotoAndStop(3); } frame 180 { _root.movie.marty.upperBody.mouth.gotoAndStop(3); } frame 195 { _root.movie.marty.upperBody.upperBody.mouth.gotoAndStop(2); _root.movie.marty.upperBody.upperBody.eyes.gotoAndStop(1); } frame 236 { stop(); } frame 237 { _root.movie.marty.gotoAndStop(11); _root.movie.marty.upperBody.mouth.gotoAndStop(1); _root.movie.marty.upperBody.eyes.gotoAndStop(1); } frame 250 { stop(); } } movieClip 380 { frame 81 { _root.marty._alpha = 100; _root.marty.active = true; _root.topBar.hide = true; _root.bottomBar.hide = true; _root.movie.gotoAndStop(152); } } movieClip 381 { frame 1 { _root.fader.fadeOut = true; } frame 1 { stop(); } instance logo of movieClip 82 { onClipEvent (load) { fadein = false; this._alpha = 0; } onClipEvent (enterFrame) { if (fadein == true && this._alpha < 100) { this._alpha += 10; } if (fadein == false && this._alpha > 0) { this._alpha -= 10; } } } frame 150 { stop(); } frame 151 { stop(); } frame 152 { _root.fader.fadeOut = false; stop(); } frame 153 { _root.marty._alpha = 0; stop(); _root.topBar.hide = false; _root.bottomBar.hide = false; _root.fader._alpha = 0; _root.fader.fadeIn = true; } instance marty of movieClip 317 { } } instance movie of movieClip 381 { onClipEvent (load) { _root.fader.fadeOut = true; } onClipEvent (enterFrame) { if (_root.fader.fadeIn == true && _root.fader._alpha >= 100) { _root.gotoAndStop(7); } } } movieClip 387 { } movieClip 388 { } instance topBar of movieClip 388 { onClipEvent (load) { hide = false; } onClipEvent (enterFrame) { if (hide == true) { if (this._y > _root._y - 50) { --this._y; } } if (hide == false) { if (this._y < _root._y) { ++this._y; } } } } movieClip 389 { } instance bottomBar of movieClip 389 { onClipEvent (load) { hide = false; } onClipEvent (enterFrame) { if (hide == true) { if (this._y < _root._y + 500) { ++this._y; } } if (hide == false) { if (this._y > _root._y + 450) { --this._y; } } } } movieClip 391 { } movieClip 392 { } movieClip 393 { instance cloud of movieClip 25 { onClipEvent (load) { continued = true; maxCount = 50; count = 0; timer = 0; maxTime = random(35) + 5; alphaSpeed = 3; size = random(45) + 25; xPos = 0; yPos = random(50) + 500; alphaMax = random(75) + 25; xMove = random(4) + 5; yMove = random(2) - 1; xrotate = random(8) + 1; if (this._name == 'cloud') { this._y = _root._y - 100; } if (this._name != 'cloud') { this._x = _root.xPos; this._y = _root.yPos; this._xscale = size; this._yscale = size; this._alpha = alphaMax; } } onClipEvent (enterFrame) { if (this._name != 'cloud') { this._x += xMove; } if (this._x >= _root._x + 450) { this.removeMovieClip(); } if (this._name == 'cloud') { ++timer; } if (this._name == 'cloud' && timer >= maxTime) { ++count; this.duplicateMovieClip('cloud' + count, count); maxTime = random(35) + 5; timer = 0; } } } } movieClip 399 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 400 { } instance healthBar of movieClip 400 { onClipEvent (load) { health = 100; power = 100; death == false; activate = false; } onClipEvent (enterFrame) { if (health > 100) { health = 100; } if (health < 101 && health > -1) { _root.healthBar.bar._xscale = health; } if (death == true) { stopAllSounds(); if (_root.continues == 0) { _root.gotoAndStop(3); } _root.music.gotoAndStop(1); _root.checkpoint = _root._currentframe; _root.gotoAndStop(6); health = 100; } if (activate == false) { power = 0; } if (power >= 100) { power = 100; } if (power < 101 && power > -1) { _root.healthBar.bar2._xscale = power; } if (power < 101 && _root.marty.brakPower == false) { power += 0.25; } if (power >= 100 && _root.marty.brakPower == false) { this.powerGlow._alpha = 100; } else { this.powerGlow._alpha = 0; } } } button 402 { on (press) { _root.fader._alpha = 0; _root.fader.fadeOut = false; _root.fader.fadeIn = true; stopAllSounds(); _root.music.gotoAndStop(1); _root.music.gotoAndStop(2); _root.music.music.gotoAndStop(845); } } frame 6 { stop(); _root.healthBar.death = false; } movieClip 405 { } button 407 { on (release) { stopAllSounds(); if (_root.checkpoint == 7) { _root.music.gotoAndStop(2); _root.music.music.gotoAndStop(845); } if (_root.checkpoint == 11 or _root.checkpoint == 12 or _root.checkpoint == 13) { _root.music.gotoAndStop(5); } if (_root.checkpoint == 14 or _root.checkpoint == 15) { _root.music.gotoAndStop(6); } _root.healthBar.health = 100; --_root.continues; _root.gotoAndStop(_root.checkpoint); } } movieClip 409 { } movieClip 416 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } instance of movieClip 416 { onClipEvent (enterFrame) { this.gotoAndStop(_root.continues); } } movieClip 418 { } button 420 { on (release) { stopAllSounds(); _root.gotoAndStop(3); } } frame 7 { stop(); } instance farBack of movieClip 169 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance background1 of movieClip 177 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } movieClip 432 { } instance animal2 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (this._y >= _root._x + 500) { removeMovieClip(this); } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal4 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == true) { this._rotation -= 15; this._x -= 30; this._y -= 10 - gravity; } if (right == false) { this._rotation += 15; this._x += 30; this._y -= 10 - gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal1 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (this._y >= _root._x + 500) { removeMovieClip(this); } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal3 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == true) { this._rotation -= 15; this._x -= 30; this._y -= 10 - gravity; } if (right == false) { this._rotation += 15; this._x += 30; this._y -= 10 - gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } movieClip 434 { } movieClip 436 { } movieClip 438 { } movieClip 440 { } movieClip 443 { } movieClip 447 { frame 72 { stop(); } } movieClip 453 { frame 107 { stop(); } } movieClip 456 { frame 90 { stop(); } } movieClip 459 { frame 45 { stop(); } } movieClip 460 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 461 { instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 462 { instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 464 { instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 465 { frame 1 { ++_root.monDeath; } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 45 { stop(); } } movieClip 466 { frame 1 { stop(); } frame 2 { stop(); } instance zombie of movieClip 462 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(2); } } frame 3 { stop(); } instance zombie of movieClip 461 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(3); } } frame 4 { stop(); } instance of movieClip 464 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(5); } } frame 5 { stop(); } instance of movieClip 465 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(4); } } } instance creature1 of movieClip 466 { onClipEvent (load) { active = true; health = 3; xSpeed = 5; lockOn = false; scale = _xscale; state = 1; gravity = 0; time = 0; done = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { if (_root.marty._x > this._x - 250 && _root.marty._x < this._x) { lockOn = true; } if (_root.marty._x < this._x + 250 && _root.marty._x > this._x) { lockOn = true; } if (lockOn == true) { if (_root.marty._x > this._x) { state = 2; this._x += xSpeed; this._xscale = -scale; } if (_root.marty._x < this._x) { state = 2; this._x -= xSpeed; this._xscale = scale; } if (_root.marty._x < this._x - 350) { state = 3; lockOn = false; } if (_root.marty._x > this._x + 350) { state = 3; lockOn = false; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (_root.marty.hurt == false && _root.marty.hitTest(_x, _y - 75, true)) { if (_root.marty.active == true && _root.healthBar.health <= 25) { stopAllSounds(); _root.music.gotoAndStop(7); _root.marty.state = 5; _root.marty.active = false; _root.marty.gravity = 0; _root.healthBar.health = 0; active = false; } if (_root.marty.active == true && _root.healthBar.health > 25) { _root.healthBar.health -= 25; _root.marty.hurt = true; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { state = 4; time = 0; --health; active = false; } } if (active == false) { if (health <= 0) { state = 5; } if (health > 0 && _root.marty.active == true) { ++time; if (time >= 30) { active = true; } } if (health > 0 && _root.marty.active == false) { state = 1; } } } } movieClip 468 { } movieClip 470 { } movieClip 472 { } movieClip 474 { } movieClip 477 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 479 { } movieClip 481 { } movieClip 482 { } movieClip 484 { } movieClip 488 { frame 90 { stop(); } } movieClip 493 { frame 125 { stop(); v; } } movieClip 496 { frame 60 { stop(); } } movieClip 498 { frame 75 { stop(); } } movieClip 499 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 500 { instance of movieClip 477 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 50 { stop(); } instance of movieClip 484 { onClipEvent (load) { time = 0; maxTime = random(150) + 55; } onClipEvent (enterFrame) { ++time; if (time >= maxTime) { gotoAndPlay(1); } } } } movieClip 501 { instance of movieClip 477 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 502 { instance of movieClip 477 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 503 { instance of movieClip 477 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; pounce = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 10 { stop(); } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; pounce = true; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 504 { frame 1 { ++_root.monDeath; } instance of movieClip 477 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 45 { stop(); } } movieClip 505 { instance of movieClip 477 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; pounce = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 40 { gotoAndPlay(10); } } movieClip 506 { frame 1 { stop(); } frame 2 { stop(); } instance zombie of movieClip 501 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(2); } } frame 3 { stop(); } instance zombie of movieClip 502 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(4); } } frame 4 { stop(); } frame 5 { stop(); } instance zombie of movieClip 504 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(5); } } frame 6 { stop(); } instance zombie of movieClip 500 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(3); } } frame 7 { stop(); } } instance creature2 of movieClip 506 { onClipEvent (load) { active = true; health = 3; xSpeed = 2; lockOn = false; scale = _xscale; state = 1; gravity = 0; time = 0; done = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { if (_root.marty._x > this._x - 250 && _root.marty._x < this._x) { lockOn = true; } if (_root.marty._x < this._x + 250 && _root.marty._x > this._x) { lockOn = true; } if (lockOn == true) { if (_root.marty._x > this._x) { state = 2; this._x += xSpeed; this._xscale = -scale; } if (_root.marty._x < this._x) { state = 2; this._x -= xSpeed; this._xscale = scale; } if (_root.marty._x < this._x - 350) { state = 6; lockOn = false; } if (_root.marty._x > this._x + 350) { state = 6; lockOn = false; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (_root.marty.hurt == false && _root.marty.hitTest(_x, _y - 75, true)) { if (_root.marty.active == true && _root.healthBar.health <= 25) { stopAllSounds(); _root.music.gotoAndStop(7); _root.marty.state = 5; _root.marty.active = false; _root.marty.gravity = 0; _root.healthBar.health = 0; active = false; } if (_root.marty.active == true && _root.healthBar.health > 25) { _root.healthBar.health -= 25; _root.marty.hurt = true; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { state = 3; time = 0; --health; active = false; } } if (active == false) { if (health <= 0) { state = 5; } if (health > 0) { ++time; if (time >= 15) { active = true; } } if (health > 0 && _root.marty.active == false) { state = 1; } } } } instance creature3 of movieClip 466 { onClipEvent (load) { active = true; health = 3; xSpeed = 5; lockOn = false; scale = _xscale; state = 1; gravity = 0; time = 0; done = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { if (_root.marty._x > this._x - 250 && _root.marty._x < this._x) { lockOn = true; } if (_root.marty._x < this._x + 250 && _root.marty._x > this._x) { lockOn = true; } if (lockOn == true) { if (_root.marty._x > this._x) { state = 2; this._x += xSpeed; this._xscale = -scale; } if (_root.marty._x < this._x) { state = 2; this._x -= xSpeed; this._xscale = scale; } if (_root.marty._x < this._x - 350) { state = 3; lockOn = false; } if (_root.marty._x > this._x + 350) { state = 3; lockOn = false; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (_root.marty.hurt == false && _root.marty.hitTest(_x, _y - 75, true)) { if (_root.marty.active == true && _root.healthBar.health <= 25) { stopAllSounds(); _root.music.gotoAndStop(7); _root.marty.state = 5; _root.marty.active = false; _root.marty.gravity = 0; _root.healthBar.health = 0; active = false; } if (_root.marty.active == true && _root.healthBar.health > 25) { _root.healthBar.health -= 25; _root.marty.hurt = true; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { state = 4; time = 0; --health; active = false; } } if (active == false) { if (health <= 0) { state = 5; } if (health > 0) { ++time; if (time >= 30) { active = true; } } if (health > 0 && _root.marty.active == false) { state = 1; } } } } instance marty of movieClip 317 { onClipEvent (load) { _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; maxX = 3500; punch = false; dustTimer = 0; screenMove = true; hurt = false; hurtTimer = 0; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.marty._x = 350; _root.marty._y = 450; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (_root.platforms.hitTest(_x, _y, true)) { if (hurt == false && Key.isDown(32) && _root.platforms.hitTest(_x, _y + 5, true)) { jump = true; } air = false; } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 500) { _root.healthBar.health = 0; } if (jump == true) { speedjump = 14; _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + maxX < _root._x + 710) { if (_root.platforms._x + maxX < _root._x + 710) { edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x > _root._x - 10) { if (_root.platforms._x > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { if (speedjump + gravity > 0) { state = 3; } if (speedjump + gravity < 0) { state = 4; } } else { state = 1; } } } if (hurt == true) { ++hurtTimer; _root.marty.upperBody.gotoAndStop(3); _root.marty.gotoAndStop(); if (hurtTimer >= 30) { _root.marty.upperBody.gotoAndStop(1); hurt = false; } } if (hurt == false) { hurtTimer = 0; } } if (active == false) { if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } } } onClipEvent (keyDown) { if (active == true && hurt == false && Key.getCode() == 65) { _root.marty.upperBody.gotoAndStop(2); punch = true; } } onClipEvent (enterFrame) { if (_root.marty.active == true && _root.marty._x >= _root.platforms._x + 3200 && _root.monDeath >= 3) { _root.movie.gotoAndPlay(111); _root.zombiesDead._alpha = 0; state = 1; this._alpha = 0; _root.topBar.hide = false; _root.bottomBar.hide = false; active = false; } } } movieClip 514 { } movieClip 516 { } movieClip 518 { } movieClip 520 { } movieClip 522 { } movieClip 524 { } movieClip 525 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance zombiesDead of movieClip 525 { onClipEvent (load) { state = _root.monDeath + 1; this._alpha = 0; } onClipEvent (enterFrame) { this.gotoAndStop(state); state = _root.monDeath + 1; } } instance topBar of movieClip 388 { onClipEvent (load) { hide = false; } onClipEvent (enterFrame) { if (hide == true) { if (this._y > _root._y - 50) { --this._y; } } if (hide == false) { if (this._y < _root._y) { ++this._y; } } } } movieClip 535 { } movieClip 536 { instance candle of movieClip 535 { onClipEvent (load) { time = 0; maxTime = random(7) + 1; } onClipEvent (enterFrame) { ++time; if (time >= maxTime) { this._alpha = random(50) + 50; maxTime = random(7) + 1; time = 0; } } } } movieClip 537 { } button 538 { on (press) { gotoAndStop(110); _root.zombiesDead._alpha = 100; } } movieClip 548 { frame 385 { _root.movie.marty.gotoAndStop(11); _root.movie.gotoAndStop(42); } } movieClip 553 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 570 { frame 138 { _root.movie.marty.gotoAndStop(1); } frame 195 { _root.movie.marty.gotoAndStop(12); } frame 263 { _root.movie.marty.gotoAndStop(1); } frame 347 { _root.movie.action.gotoAndStop(2); } frame 565 { _root.movie.gotoAndPlay(43); } } button 571 { on (press) { gotoAndStop(142); } } movieClip 586 { frame 489 { _root.movie.gotoAndPlay(142); } } movieClip 588 { instance marty of movieClip 317 { onClipEvent (load) { xSpeed = 10; } onClipEvent (enterFrame) { gotoAndStop(state); if (xSpeed > 0) { this._x += xSpeed; state = 2; } if (_root.fader2._alpha >= 100) { stopAllSounds(); _root.gotoAndStop(9); } } } frame 40 { _root.movie.marty.xSpeed = 0; _root.movie.marty.state = 1; } frame 41 { stop(); } instance marty of movieClip 317 { onClipEvent (enterFrame) { if (_root.fader2._alpha >= 100) { stopAllSounds(); _root.gotoAndStop(9); } } } frame 42 { stop(); } instance action of movieClip 553 { onClipEvent (load) { maxY = this._y; ySpeed = 1; this._alpha = 0; this._y += 15; } onClipEvent (enterFrame) { if (this._y > maxY) { this._y -= ySpeed; } if (this._alpha < 100) { this._alpha += 10; } } } instance of movieClip 570 { onClipEvent (load) { this._alpha = 0; } onClipEvent (enterFrame) { if (this._alpha < 100) { this._alpha += 10; } } } frame 43 { _root.zombiesDead._alpha = 100; } frame 110 { _root.topBar.hide = true; _root.bottomBar.hide = true; _root.marty.active = true; _root.marty._alpha = 100; _root.level = 2; stop(); removeMovieClip(_root.movie); } frame 141 { stop(); } frame 142 { stop(); } instance of movieClip 335 { onClipEvent (enterFrame) { this._x += 1.5; } } instance marty of movieClip 317 { onClipEvent (load) { beginX = this._x; } onClipEvent (enterFrame) { this.gotoAndStop(2); this._x += 2; if (this._x > beginX + 350) { _root.fader2.fadeOut = false; _root.fader2.fadeIn = true; } if (_root.fader2._alpha >= 100) { stopAllSounds(); _root.gotoAndStop(9); } } } } instance bottomBar of movieClip 389 { onClipEvent (load) { hide = false; } onClipEvent (enterFrame) { if (hide == true) { if (this._y < _root._y + 500) { ++this._y; } } if (hide == false) { if (this._y > _root._y + 450) { --this._y; } } } } instance fader2 of movieClip 35 { onClipEvent (load) { fadeIn = false; fadeOut = false; } onClipEvent (enterFrame) { if (fadeIn == true) { if (this._alpha <= 100 && this._alpha >= 0) { this._alpha += 5; } } if (fadeOut == true) { if (this._alpha <= 100 && this._alpha >= 0) { this._alpha -= 5; } } } } frame 8 { remove = false; } frame 8 { stop(); } instance marty of movieClip 317 { onClipEvent (load) { _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; punch = false; dustTimer = 0; screenMove = true; edge = 0; active = true; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.marty._x = 350; _root.marty._y = 300; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (_root.platforms.hitTest(_x, _y, true)) { if (Key.isDown(32) && _root.platforms.hitTest(_x, _y + 5, true)) { jump = true; } air = false; } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 500) { _root.healthBar.health = 0; } if (jump == true) { speedjump = 14; _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + 5050 < _root._x + 710) { if (_root.platforms._x + 5050 < _root._x + 710) { edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x > _root._x - 10) { if (_root.platforms._x > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { state = 3; } else { state = 1; } } } } } onClipEvent (keyDown) { if (Key.getCode() == 65) { _root.marty.upperBody.gotoAndStop(2); punch = true; } } } instance animal4 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == true) { this._rotation -= 15; this._x -= 30; this._y -= 10 - gravity; } if (right == false) { this._rotation += 15; this._x += 30; this._y -= 10 - gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal1 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal2 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal3 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal5 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } movieClip 594 { frame 10 { stop(); } } movieClip 601 { } movieClip 602 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 607 { } movieClip 620 { } movieClip 621 { frame 65 { stop(); } } movieClip 622 { frame 30 { stop(); } } movieClip 623 { frame 1 { stop(); } frame 2 { stop(); } frame 5 { stop(); } } instance creature1 of movieClip 623 { onClipEvent (load) { hit = false; health = 6; right = false; air = false; jump = false; sleep = true; dead = false; ySpeed = 14; xSpeed = 6; gravity = 0; ySpeed = 10; scale = _xscale; } onClipEvent (enterFrame) { if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (dead == false) { if (sleep == true) { if (jump == false) { if (_root.marty._x >= this._x - 300 && _root.marty._x < this._x - 200 or _root.marty._x <= this._x + 300 && _root.marty._x > this._x + 200) { this.pig.gotoAndStop(2); } if (_root.marty._x >= this._x - 200 && _root.marty._x < this._x - 150 or _root.marty._x <= this._x + 200 && _root.marty._x > this._x + 150) { this.pig.gotoAndStop(3); } if (_root.marty._x >= this._x - 150 && _root.marty._x <= this._x + 150) { this.gotoAndStop(2); sleep = false; jump = true; } if (_root.marty._x < this._x - 300 or _root.marty._x > this._x + 300) { this.pig.gotoAndPlay(1); } } } if (_root.marty._x <= this._x) { this._xscale = scale; } if (_root.marty._x > this._x) { this._xscale = -scale; } this._y += gravity; if (jump == true) { if (_root.marty._x <= this._x) { this._x -= xSpeed; this._y -= ySpeed; } if (_root.marty._x > this._x) { this._x += xSpeed; this._y -= ySpeed; } } if (_root.platforms.hitTest(_x, _y, true)) { air = false; jump = false; sleep = true; gravity = 0; this._rotation = 0; hit = false; } else { air = true; ++gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; --health; hit = true; } if (hit == true) { this.y -= 24; this._rotation += 40; } if (health <= 0 && _root.platforms.hitTest(_x, _y, true)) { dead = true; } if (_root.marty.hitTest(this)) { _root.healthBar.health -= 1; } } if (dead == true) { this.gotoAndStop(5); } if (this._y > _root._y + 500) { this.removeMovieClip; } } } movieClip 626 { } movieClip 628 { } movieClip 630 { } movieClip 632 { } movieClip 634 { } frame 9 { stop(); _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; _root.music.gotoAndStop(3); } instance farBack of movieClip 169 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance background1 of movieClip 177 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } movieClip 647 { } instance animal2 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (this._y >= _root._x + 500) { removeMovieClip(this); } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } movieClip 649 { } movieClip 650 { } movieClip 652 { } movieClip 654 { } movieClip 656 { } movieClip 658 { instance eyes of movieClip 333 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } } movieClip 659 { instance eyes of movieClip 658 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } } movieClip 660 { instance eyes of movieClip 333 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } frame 90 { stop(); } } movieClip 661 { instance eyes of movieClip 333 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } frame 90 { stop(); } } movieClip 662 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } instance creature2 of movieClip 662 { onClipEvent (load) { state = 1; scale = _xscale; ySpeed = 3; up = true; fric1 = 0; fric2 = 0; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (_root.marty._x < this._x) { this._xscale = scale; } if (_root.marty._x > this._x) { this._xscale = -scale; } if (up == true) { fric1 += 0.2; this._y -= fric1; if (fric1 > 5) { fric2 = 0; up = false; } } if (up == false) { fric2 += 0.2; this._y += fric2; if (fric2 > 5) { fric1 = 0; up = true; } } if (_root.creature1.laugh == true) { state = 2; } else { state = 1; } } } movieClip 664 { } movieClip 668 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 670 { } movieClip 672 { } movieClip 674 { } movieClip 676 { } movieClip 682 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 688 { frame 20 { stop(); } } movieClip 689 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 691 { } movieClip 692 { instance of movieClip 668 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 682 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 693 { instance of movieClip 668 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 682 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance of movieClip 668 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance eyes of movieClip 682 { onClipEvent (enterFrame) { this.gotoAndStop(5); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance of movieClip 668 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance eyes of movieClip 682 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } frame 81 { stop(); } } movieClip 694 { instance of movieClip 668 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 682 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 696 { instance of movieClip 668 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 682 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance hitZone of movieClip 273 { onClipEvent (load) { deathAni = false; } onClipEvent (enterFrame) { if (_root.marty.hitTest(this) && _root.marty.hurt == false) { if (_root.healthBar.health <= 40) { _root.healthBar.health -= 40; deathAni = true; } if (_root.healthBar.health > 40 && _root.marty.active == true) { _root.healthBar.health -= 40; _root.marty.hurt = true; } } } } frame 30 { attackEnd = true; } } movieClip 697 { frame 1 { laughEnd = false; } instance of movieClip 668 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 682 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance eyes of movieClip 682 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance eyes of movieClip 682 { onClipEvent (enterFrame) { this.gotoAndStop(5); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } frame 104 { laughEnd = true; stop(); } instance mouth of movieClip 689 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } } movieClip 698 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } instance creature3 of movieClip 698 { onClipEvent (load) { state = 1; scale = _xscale; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (_root.marty._x < this._x) { this._xscale = scale; } if (_root.marty._x > this._x) { this._xscale = -scale; } if (_root.creature1.laugh == true) { state = 2; } else { state = 1; } } } instance bag of movieClip 311 { onClipEvent (load) { this._alpha = 0; } onClipEvent (enterFrame) { if (_root.marty._x <= _root._x + 300) { _root.marty.state = 8; _root.marty._x += _root.marty.speed; } else { _root.topBar.hide = true; _root.bottomBar.hide = true; _root.marty.active = true; if (_root.marty._x >= _root.platforms._x + 2500) { _root.topBar.hide = false; _root.bottomBar.hide = false; _root.marty.active = false; } } } } movieClip 699 { } instance creature8 of movieClip 699 { onClipEvent (load) { xSpeed = 0; maxXspeed = 12; ySpeed = 0; maxYspeed = 5; scale = _xscale; movie = false; active = true; } onClipEvent (enterFrame) { if (movie == false) { if (active == true) { this._x += xSpeed; if (xSpeed > maxXspeed) { xSpeed = maxXspeed; } if (ySpeed > maxYspeed) { ySpeed = maxYspeed; } this._y += ySpeed; if (_root.marty._x - 25 > this._x) { ++this.xSpeed; _xscale = -scale; } if (_root.marty._x - 25 < this._x) { --this.xSpeed; _xscale = scale; } if (_root.marty._y - 145 < this._y) { --this.ySpeed; } if (_root.marty._y - 145 > this._y) { ++this.ySpeed; } } } if (movie == true) { if (active == true) { if (this._x < _root._x + 725) { xSpeed += 0.5; this._x += xSpeed; } else { _root.marty._alpha = 0; _root.movie.gotoAndPlay(2); this._alpha = 0; movie = false; active = false; } } } } } movieClip 701 { } movieClip 703 { } movieClip 705 { } movieClip 708 { frame 1 { stop(); } } movieClip 712 { frame 1 { stop(); } } movieClip 713 { } movieClip 715 { } movieClip 722 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 768 { frame 12 { _root.oliver.oliver.eyes.gotoAndStop(3); } frame 61 { _root.goblin.part = 1; } frame 81 { _root.oliver.oliver.eyes.gotoAndStop(4); } frame 174 { _root.oliver.oliver.eyes.gotoAndStop(5); } frame 245 { _root.oliver.oliver.eyes.gotoAndStop(3); } frame 278 { _root.oliver.oliver.eyes.gotoAndStop(5); } frame 376 { stop(); } } movieClip 783 { frame 7 { _root.oliver.oliver.eyes.gotoAndStop(5); } frame 69 { _root.oliver.oliver.eyes.gotoAndStop(4); } frame 113 { _root.oliver.oliver.eyes.gotoAndStop(3); } frame 166 { stop(); } } movieClip 790 { frame 11 { _root.oliver.oliver.eyes.gotoAndStop(4); } frame 43 { _root.oliver.oliver.eyes.gotoAndStop(5); } frame 80 { stop(); } } movieClip 799 { frame 139 { stop(); } } movieClip 803 { frame 101 { stop(); } } movieClip 814 { frame 130 { stop(); } } movieClip 815 { 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(); } } movieClip 816 { instance eyes of movieClip 722 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 817 { instance wrist2 of movieClip 712 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 722 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 818 { frame 1 { _root.music.gotoAndStop(5); } instance eyes of movieClip 722 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 60 { stop(); _root.marty.part = 5; } frame 60 { stop(); } } movieClip 819 { instance wrist2 of movieClip 712 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance eyes of movieClip 722 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance wrist2 of movieClip 712 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 344 { stop(); } } movieClip 820 { instance eyes of movieClip 722 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 821 { instance eyes of movieClip 722 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 30 { stopMove = true; } instance wrist2 of movieClip 712 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } frame 150 { gotoAndPlay(75); } } movieClip 822 { instance eyes of movieClip 722 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 450 { gotoAndPlay(400); } } movieClip 823 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } instance creature1 of movieClip 823 { onClipEvent (load) { gravity = 0; xSpeed = 7; state = 1; annoy = false; scale = _xscale; laugh = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (_root.marty._x > this._x - 200 && _root.marty._x < this._x + 200 && _root.marty._x < _root.platforms._x + 2200) { annoy = true; } if (annoy == true) { if (_root.marty._x - 80 > this._x) { state = 2; _root.creature1.oliver.eyes.gotoAndStop(5); this._xscale = -scale; this._x += xSpeed; } if (_root.marty._x + 80 < this._x) { state = 2; _root.creature1.oliver.eyes.gotoAndStop(5); this._xscale = scale; this._x -= xSpeed; } if (_root.marty._x - 80 <= this._x && _root.marty._x + 80 >= this._X) { laugh = true; _root.creature1.oliver.eyes.gotoAndStop(4); _root.creature1.oliver.mouth.gotoAndStop(3); state = 1; } else { laugh = false; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (_root.marty._x > _root.platforms._x + 2300) { annoy = false; } if (annoy == false) { state = 1; } } } instance animal1 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (this._y >= _root._x + 500) { removeMovieClip(this); } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } movieClip 825 { } movieClip 827 { } movieClip 829 { } movieClip 831 { } movieClip 834 { } movieClip 836 { } movieClip 839 { frame 72 { stop(); } } movieClip 840 { frame 107 { stop(); } } movieClip 841 { frame 90 { stop(); } } movieClip 843 { frame 45 { stop(); } } movieClip 844 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 847 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 848 { instance eyes of movieClip 847 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 849 { instance eyes of movieClip 847 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 850 { instance eyes of movieClip 847 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 851 { instance eyes of movieClip 847 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 45 { ++_root.monDeath; } frame 45 { stop(); } } movieClip 852 { frame 1 { stop(); } frame 2 { stop(); } instance zombie of movieClip 849 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(2); } } frame 3 { stop(); } instance zombie of movieClip 848 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(3); } } frame 4 { stop(); } instance of movieClip 850 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(5); } } frame 5 { stop(); } instance of movieClip 851 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(4); } } } instance creature5 of movieClip 852 { onClipEvent (load) { time = 0; maxTime = random(250) + 50; toDo = random(3) + 1; xSpeed = 3; state = 1; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { ++time; this.gotoAndStop(state); if (toDo == 1) { state = 1; } if (toDo == 2) { state = 2; this._xscale = -scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 45, true)) { toDo = 3; } } if (toDo == 3) { state = 2; this._xscale = scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 45, true)) { toDo = 2; } } if (time >= maxTime) { toDo = random(3) + 1; time = 0; } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } } } instance creature4 of movieClip 852 { onClipEvent (load) { time = 0; maxTime = random(250) + 50; toDo = random(3) + 1; xSpeed = 3; state = 1; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { ++time; this.gotoAndStop(state); if (toDo == 1) { state = 1; } if (toDo == 2) { state = 2; this._xscale = -scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 45, true)) { toDo = 3; } } if (toDo == 3) { state = 2; this._xscale = scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 45, true)) { toDo = 2; } } if (time >= maxTime) { toDo = random(3) + 1; time = 0; } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } } } movieClip 854 { } movieClip 856 { } movieClip 858 { } movieClip 860 { } movieClip 863 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 865 { } movieClip 867 { } movieClip 868 { } movieClip 870 { } movieClip 872 { frame 90 { stop(); } } movieClip 873 { frame 125 { stop(); v; } } movieClip 874 { frame 60 { stop(); } } movieClip 875 { frame 75 { stop(); } } movieClip 876 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 877 { instance of movieClip 863 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 847 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 878 { instance of movieClip 863 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 847 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 880 { } movieClip 881 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 882 { instance of movieClip 863 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 881 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 883 { instance of movieClip 863 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 881 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; pounce = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 10 { stop(); } instance eyes of movieClip 881 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; pounce = true; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 884 { instance of movieClip 863 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 881 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 45 { stop(); ++_root.monDeath; } } movieClip 885 { instance of movieClip 863 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 881 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; pounce = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 40 { gotoAndPlay(10); } } movieClip 886 { frame 1 { stop(); } frame 2 { stop(); } instance zombie of movieClip 878 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(2); } } frame 3 { stop(); } instance zombie of movieClip 882 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(4); } } frame 4 { stop(); } frame 5 { stop(); } instance zombie of movieClip 884 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(5); } } frame 6 { stop(); } instance zombie of movieClip 877 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(3); } } frame 7 { stop(); } } instance creature6 of movieClip 886 { onClipEvent (load) { time = 0; maxTime = random(250) + 50; toDo = random(3) + 1; xSpeed = 3; state = 1; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { ++time; this.gotoAndStop(state); if (toDo == 1) { state = 1; } if (toDo == 2) { state = 2; this._xscale = -scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 45, true)) { toDo = 3; } } if (toDo == 3) { state = 2; this._xscale = scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 45, true)) { toDo = 2; } } if (time >= maxTime) { toDo = random(3) + 1; time = 0; } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } } } instance marty of movieClip 317 { onClipEvent (load) { movieStill = false; movieUndeadStill = false; movieElectric = false; levelxMin = -25; levelxMax = 2850; punch = false; dustTimer = 0; screenMove = true; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.marty._x = 90; _root.marty._y = 450; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (_root.platforms.hitTest(_x, _y, true)) { air = false; } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 500) { _root.healthBar.health = 0; } if (jump == true) { speedjump = 14; _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + levelxMax < _root._x + 710) { if (_root.platforms._x + levelxMax < _root._x + 710) { _root.movie._alpha = 100; active = false; edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x + levelxMin > _root._x - 10) { if (_root.platforms._x + levelxMin > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 8; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 8; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { state = 9; } else { state = 7; } } } } else { if (this._x < _root.platforms._x + 1000) { state = 1; } if (this._x > _root.platforms._x + 1000 && _root.creature8.movie == false) { state = 7; _root.topBar.hide = false; _root.bottomBar.hide = false; _root.creature8.movie = true; } } } } movieClip 888 { } button 890 { on (press) { gotoAndPlay(71); } } movieClip 899 { frame 338 { _root.movie.gotoAndPlay(71); } } movieClip 900 { frame 1 { stop(); } instance marty of movieClip 317 { onClipEvent (enterFrame) { this.gotoAndStop(7); } } frame 70 { stop(); } frame 155 { stop(); } instance marty of movieClip 317 { onClipEvent (enterFrame) { this.gotoAndStop(8); this._x += 1; if (_root.fader._alpha < 0) { _root.fader._alpha = 0; } _root.fader.fadeOut = false; _root.fader.fadeIn = true; if (_root.fader._alpha >= 100) { _root.gotoAndStop(10); } } } } movieClip 904 { } movieClip 905 { } frame 10 { stop(); } movieClip 911 { instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 912 { } instance marty of movieClip 317 { onClipEvent (load) { time = 0; maxTime = 0; scale = _xscale; state = 1; xSpeed = 10; movie = true; active = false; part = 1; _root.fader._alpha = 100; _root.fader.fadeOut = true; _root.fader.fadeIn = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { } else { if (part == 0) { if (_root.oliver._x < this._x + 50) { part = 2; } } if (part == 1) { if (this._x > _root._x + 400) { this._xscale = -scale; state = 8; this._x -= xSpeed; } else { _root.butcher.act1 = true; state = 7; part = 0; } } if (part == 2) { if (_root.oliver._x < this._x + 50 && this._x < _root._x + 500) { this._xscale = scale; this._x += xSpeed; state = 2; } else { state = 1; this._xscale = -scale; this.upperBody.upperBody.mouth.gotoAndStop(3); this.upperBody.upperBody.eyes.gotoAndStop(4); } } if (part == 3) { this.upperBody.upperBody.mouth.gotoAndStop(5); this.upperBody.upperBody.eyes.gotoAndStop(5); } if (part == 4) { if (this._x > _root.oliver._x + 50) { state = 2; this._x -= xSpeed; } if (this._x <= _root.oliver._x + 50 && _root.oliver.part == 3) { state = 1; this.upperBody.gotoAndStop(2); ++time; maxTime = 6; if (time >= maxTime) { _root.oliver.part = 4; } } } if (part == 5) { _xscale = scale; state = 2; this._x += xSpeed; if (_root.fader._alpha < 0) { _root.fader._alpha = 0; } _root.fader.fadeOut = false; _root.fader.fadeIn = true; if (_root.fader._alpha >= 100) { _root.gotoAndStop(11); } } if (part == 6) { state = 11; } if (part == 7) { state = 1; this.upperBody.upperBody.mouth.gotoAndStop(1); this.upperBody.upperBody.eyes.gotoAndStop(1); } if (part == 8) { state = 12; } } } } movieClip 914 { } movieClip 916 { } movieClip 918 { } movieClip 920 { } movieClip 922 { } movieClip 924 { } movieClip 929 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 958 { frame 16 { _root.butcher.butcher.eyes.gotoAndStop(2); } frame 38 { _root.butcher.butcher.eyes.gotoAndStop(3); } frame 104 { _root.butcher.butcher.eyes.gotoAndStop(2); } frame 256 { stop(); } } movieClip 1008 { frame 3 { _root.butcher.butcher.eyes.gotoAndStop(3); } frame 73 { _root.butcher.butcher.eyes.gotoAndStop(1); } frame 190 { _root.butcher.butcher.eyes.gotoAndStop(2); } frame 361 { stop(); } } movieClip 1041 { frame 7 { _root.butcher.butcher.eyes.gotoAndStop(3); } frame 46 { _root.butcher.butcher.eyes.gotoAndStop(1); } frame 169 { _root.butcher.butcher.eyes.gotoAndStop(2); } frame 219 { _root.butcher.butcher.eyes.gotoAndStop(3); } frame 271 { _root.butcher.butcher.eyes.gotoAndStop(4); } frame 326 { stop(); } frame 326 { stopAllSounds(); } } movieClip 1047 { frame 1 { _root.butcher.butcher.eyes.gotoAndStop(4); } frame 123 { stop(); } } movieClip 1049 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 7 { stop(); } } movieClip 1050 { } movieClip 1051 { } movieClip 1052 { } movieClip 1053 { frame 90 { gotoAndPlay(31); } } movieClip 1054 { } movieClip 1055 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } instance butcher of movieClip 1055 { onClipEvent (load) { scale = _xscale; xSpeed = 5; act1 = false; act2 = false; act3 = false; act4 = false; this._alpha = 0; state = 1; originX = this._x; frameX = 0; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (act1 == true) { if (this._alpha < 100) { this._xscale = -scale; this._alpha += 5; } if (this._x < _root._x + 300) { state = 2; this._x += xSpeed; } else { state = 1; _root.movie.gotoAndStop(2); this.butcher.mouth.gotoAndStop(2); } } if (act2 == true) { _root.movie.gotoAndStop(3); this.butcher.mouth.gotoAndStop(3); state = 3; this._xscale = scale; if (this._x > _root._x + originX) { this._x -= xSpeed; } if (this._x < originX + 100 && this._alpha > 0) { this._alpha -= 5; } } if (act3 == true) { if (this._alpha < 100) { this._xscale = -scale; this._alpha += 5; } if (this._x < _root._x + 300) { state = 2; this._x += xSpeed; } else { this.butcher.mouth.gotoAndStop(4); _root.movie.gotoAndStop(4); state = 1; } } if (act4 == true) { state = 4; this.butcher.mouth.gotoAndStop(5); } if (act5 == true) { this.butcher.mouth.gotoAndStop(7); this.butcher.eyes.gotoAndStop(4); } } } movieClip 1058 { } instance goblin of movieClip 698 { onClipEvent (load) { xSpeed = 6; scale = _xscale; state = 1; part = 0; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (part == 1) { if (this._x > _root.butcher._x - 100) { this._x -= xSpeed; state = 3; } else { part = 2; } } if (part == 2) { if (this._x < _root._x + 800) { this._xscale = -scale; this._x += xSpeed; _root.butcher._x += xSpeed; _root.butcher.state = 5; _root.butcher.act5 = true; _root.butcher.act4 = false; } else { state = 1; _root.butcher.state = 1; } } } } instance oliver of movieClip 823 { onClipEvent (load) { movie = false; part = 0; xSpeed = 6; scale = _xscale; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (part == 1) { if (this._x > _root._x + 400) { state = 2; this._x -= xSpeed; } else { state = 4; _root.movie.gotoAndStop(5); this.oliver.mouth.gotoAndStop(4); if (_root.butcher._x > this._x) { this._xscale = -scale; } } } if (part == 2) { this.oliver.mouth.gotoAndStop(5); } if (part == 3) { state = 5; this.oliver.mouth.gotoAndStop(6); } if (part == 4) { state = 3; this.oliver.mouth.gotoAndStop(7); } } } movieClip 1061 { } movieClip 1071 { frame 145 { _root.marty.state = 9; } frame 240 { _root.marty.state = 12; } frame 255 { _root.butcher.act1 = false; _root.butcher.act2 = true; } } movieClip 1089 { frame 25 { _root.marty.state = 11; } frame 205 { _root.marty.state = 1; } frame 361 { _root.butcher.act2 = false; _root.butcher.act3 = true; _root.movie.gotoAndStop(1); } } movieClip 1100 { frame 325 { stopAllSounds(); _root.butcher.butcher.eyes.gotoAndStop(4); _root.butcher.butcher.mouth.gotoAndStop(5); _root.oliver.part = 1; _root.butcher.act4 = true; _root.butcher.act3 = false; _root.music.gotoAndStop(4); _root.movie.gotoAndStop(1); } } movieClip 1109 { frame 375 { _root.oliver.state = 1; _root.oliver.part = 2; _root.movie.gotoAndStop(6); } } movieClip 1115 { frame 150 { _root.marty.part = 3; } frame 185 { _root.oliver.part = 3; _root.movie.gotoAndStop(7); } } movieClip 1120 { frame 1 { stopAllSounds(); } frame 69 { _root.marty.part = 4; } frame 88 { stop(); } } movieClip 1121 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } button 1122 { on (press) { stopAllSounds(); _root.gotoAndStop(11); } } frame 11 { stop(); } instance farBack of movieClip 169 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance background1 of movieClip 177 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } movieClip 1125 { } instance creature1 of movieClip 823 { onClipEvent (load) { scale = _xscale; _xscale = -scale; _alpha = 0; time = 0; part = 0; } onClipEvent (enterFrame) { if (part == 1) { ++time; if (this._alpha < 100) { this._alpha += 5; } this.gotoAndStop(6); if (this.oliver.stopMove == true) { } else { this._x += 2; } if (time == 30) { this.oliver.mouth.gotoAndStop(8); } if (time >= 75) { _root.marty.part = 1; part = 2; } } if (part == 2) { if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { this.gotoAndStop(3); this.oliver.mouth.gotoAndStop(7); part = 0; } } } } instance marty of movieClip 317 { onClipEvent (load) { part = 0; _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; maxX = 3300; exitX = 3200; exit = false; punch = false; dustTimer = 0; screenMove = true; hurt = false; hurtTimer = 0; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (_root.platforms.hitTest(_x, _y, true)) { if (Key.isDown(32) && _root.platforms.hitTest(_x, _y + 5, true)) { jump = true; } if (jump == false) { air = false; } } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 600) { stopAllSounds(); _root.healthBar.health = 0; _root.music.gotoAndStop(7); gravity = 0; active = false; } if (jump == true) { speedjump = 14; _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; air = false; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; air = false; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; air = false; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; air = false; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; air = false; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + maxX < _root._x + 710) { if (_root.platforms._x + maxX < _root._x + 710) { edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x > _root._x - 10) { if (_root.platforms._x > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { if (speedjump + gravity > 0) { state = 3; } if (speedjump + gravity < 0) { state = 4; } } else { state = 1; } } } if (hurt == true) { ++hurtTimer; _root.marty.upperBody.gotoAndStop(3); _root.marty.gotoAndStop(); if (hurtTimer >= 30) { _root.marty.upperBody.gotoAndStop(1); hurt = false; } } if (hurt == false) { hurtTimer = 0; } if (this._x >= _root.platforms._x + exitX) { state = 1; gravity = 0; exit = true; active = false; } } if (active == false) { if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (part == 0) { if (this._x < _root._x + 600) { state = 2; this._x += xspeed; if (this._x > _root._x + 450) { _root.creature1.part = 1; } } else { _xscale = -scale; state = 1; } } if (part == 1) { if (this._x > _root.creature1._x + 50) { state = 2; this._x -= xspeed; } else { state = 1; this.upperBody.gotoAndStop(2); part = 2; } } if (part == 2) { _root.topBar.hide = true; _root.bottomBar.hide = true; _root.creature2.active = true; _root.creature4.active = true; _root.creature3.active = true; active = true; } if (exit == true) { if (_root.fader._alpha < 0) { _root.fader._alpha = 0; } _root.topBar.hide = false; _root.bottomBar.hide = false; _root.fader.fadeOut = false; _root.fader.fadeIn = true; if (_root.fader._alpha >= 100) { _root.gotoAndStop(12); } } } } onClipEvent (keyDown) { if (active == true && hurt == false && Key.getCode() == 65) { _root.marty.upperBody.gotoAndStop(2); punch = true; } } } instance animal3 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == true) { this._rotation -= 15; this._x -= 30; this._y -= 10 - gravity; } if (right == false) { this._rotation += 15; this._x += 30; this._y -= 10 - gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal1 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (this._y >= _root._x + 500) { removeMovieClip(this); } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal2 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (this._y >= _root._x + 500) { removeMovieClip(this); } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance creature3 of movieClip 698 { onClipEvent (load) { health = 5; active = false; attack = false; time = 0; xSpeed = 6; scale = _xscale; state = 1; hit = false; gravity = 0; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { if (attack == false) { if (health <= 0) { health = 5; } if (_root.marty._x > this._x && _root.marty._x < this._x + 300) { state = 3; this._x += xSpeed; _xscale = -scale; } if (_root.marty._x < this._x && _root.marty._x > this._x - 300) { state = 3; this._x -= xSpeed; _xscale = scale; } if (_root.marty._x > this._x + 300 or _root.marty._x < this._x - 300) { state = 1; } if (_root.marty._x > this._x - 100 && _root.marty._x <= this._x - 50) { attack = true; } if (_root.marty._x < this._x + 100 && _root.marty._x > this._x + 50) { attack = true; } } if (this._y > _root._y + 600) { health = 0; active = false; } if (this._x > _root._x + 900 or this._x < _root._x - 200) { health = 0; active = false; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { time = 0; --health; hit = true; active = false; } if (_root.marty.upperBody.upperBody.power.hitTest(this)) { time = 0; health -= 5; hit = true; active = false; } if (attack == true) { ++time; state = 4; if (this.goblin.attackEnd == true) { time = 0; attack = false; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (this.goblin.hitZone.deathAni == true) { stopAllSounds(); _root.marty.active = false; _root.marty.state = 5; _root.marty.part = 100; _root.marty.gravity = 0; _root.healthBar.health = 0; hit = false; attack = false; _root.music.gotoAndStop(7); active = false; } } if (active == false) { if (_root.marty.part == 100 && _root.marty.active == false) { state = 2; } if (health > 0 && hit == true) { state = 5; ++time; if (time >= 104) { active = true; } } if (health <= 0) { state = 6; ++time; this._alpha = 100 - time; if (time >= 200) { this._x = 800; this._y = 400; this._alpha = 100; attack = false; active = true; } } } } } movieClip 1130 { } movieClip 1136 { } movieClip 1137 { instance of movieClip 536 { onClipEvent (load) { light = random(55) + 1; this.light1.gotoAndPlay(light); this.light2.gotoAndPlay(light); } } instance of movieClip 536 { onClipEvent (load) { light = random(55) + 1; this.light1.gotoAndPlay(light); this.light2.gotoAndPlay(light); } } instance of movieClip 536 { onClipEvent (load) { light = random(55) + 1; this.light1.gotoAndPlay(light); this.light2.gotoAndPlay(light); } } instance of movieClip 536 { onClipEvent (load) { light = random(55) + 1; this.light1.gotoAndPlay(light); this.light2.gotoAndPlay(light); } } instance light of movieClip 536 { onClipEvent (load) { light = random(55) + 1; this.light1.gotoAndPlay(light); this.light2.gotoAndPlay(light); } } } movieClip 1144 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1145 { frame 1 { stop(); } instance glow of movieClip 1144 { onClipEvent (load) { this.gotoAndStop(random(4) + 0); } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance skullAura of movieClip 1145 { onClipEvent (load) { create = false; xPos = 0; yPos = 0; time = 0; maxTime = 15; count = 0; scale = random(100) + 50; xSpeed; xRotate = random(5) - 2; if (this._name == 'skullAura') { this._x = _root._x - 150; this._y = _root._y - 150; } if (this._name != 'skullAura') { if (scale >= 85) { state = 1; } if (scale < 85) { state = 5; } xSpeed = _root.creature4.xSpeed / 2; this._xscale = scale; this._yscale = scale; this._x = _root.creature4._x; this._y = _root.creature4._y; } } onClipEvent (enterFrame) { if (this._name == 'skullAura') { _root.yPos = count; _root.xPos = xPos; ++time; if (time > maxTime) { this.duplicateMovieClip('skullAura' + count, count); ++count; maxTime = random(5) + 1; time = 0; } if (count > 10) { count = 0; } } if (this._name != 'skullAura') { this._x -= xSpeed; this.gotoAndStop(state); this._rotation += xRotate; if (this._alpha > 0) { this._alpha -= 10; } else { this.removeMovieClip(); } } } } movieClip 1147 { } instance ecto of movieClip 1147 { onClipEvent (load) { time = 0; maxTime = 15; count = 0; size = random(50) + 50; xSpeed = random(10) - 5; ySpeed = random(10) - 5; if (this._name == 'ecto') { this._x = _root._x - 100; this._y = _root._y - 100; } if (this._name != 'ecto') { this._xscale = size; this._yscale = size; this._x = _root.creature4._x; this._y = _root.creature4._y; } } onClipEvent (enterFrame) { if (this._name == 'ecto') { ++time; if (time > maxTime) { ++count; this.duplicateMovieClip('ecto' + count, count); maxTime = random(5) + 1; time = 0; } if (count > 10) { count = 0; } } if (this._name != 'ecto') { this._x += xSpeed; this._y += ySpeed; this._alpha -= 5; if (this._alpha < 0) { this.removeMovieClip(); } } } } movieClip 1149 { } movieClip 1151 { } movieClip 1152 { instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } instance creature4 of movieClip 1152 { onClipEvent (load) { xSpeed = 0; maxXspeed = 12; ySpeed = 0; maxYspeed = 5; scale = _xscale; movie = false; active = false; time = 0; maxTime = 60; restart = false; hit = false; grab = false; free = false; time2 = 0; } onClipEvent (enterFrame) { if (active == true) { if (restart == true) { grab = false; this._alpha = 100; hit = false; time = 0; time2 = 0; restart = false; } if (grab == false) { ++time2; maxTime = 60; this._x += xSpeed; if (xSpeed > maxXspeed) { xSpeed = maxXspeed; } if (ySpeed > maxYspeed) { ySpeed = maxYspeed; } this._y += ySpeed; if (_root.marty._x > this._x) { ++this.xSpeed; _xscale = -scale; } if (_root.marty._x < this._x) { --this.xSpeed; _xscale = scale; } if (_root.marty._y - 45 < this._y) { --this.ySpeed; } if (_root.marty._y - 45 > this._y) { ++this.ySpeed; } if (_root.marty.hitTest(this) && _root.marty.punch == false && time2 > maxTime) { time = 0; grab = true; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { time = 0; hit = true; active = false; } } else { this._x = _root.marty._x; this._y = _root.marty._y - 45; ++time; maxTime = 60; _root.marty.xspeed = 5; _root.marty.speed = 5; if (time >= maxTime) { _root.marty.xspeed = 10; _root.marty.speed = 10; restart = true; } } } if (active == false) { if (hit == true) { maxTime = 90; if (this._alpha >= 0) { this._alpha -= 2; } else { ++time; this._y = _root._y - 100; this._x = _root._x + 350; } if (time >= maxTime) { restart = true; active = true; } } } } } frame 12 { stop(); } instance background1 of movieClip 177 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } movieClip 1154 { } instance marty of movieClip 317 { onClipEvent (load) { part = 0; _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; maxX = 3300; exitX = 3100; levelChange = 12; punch = false; dustTimer = 0; screenMove = true; hurt = false; hurtTimer = 0; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (_root.platforms.hitTest(_x, _y, true)) { if (Key.isDown(32) && _root.platforms.hitTest(_x, _y + 5, true)) { jump = true; } if (jump == false) { air = false; } } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 600) { stopAllSounds(); _root.healthBar.health = 0; _root.music.gotoAndStop(7); gravity = 0; active = false; } if (jump == true) { speedjump = 14; _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; air = false; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; air = false; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; air = false; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; air = false; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; air = false; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + maxX < _root._x + 710) { if (_root.platforms._x + maxX < _root._x + 710) { edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x > _root._x - 10) { if (_root.platforms._x > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { if (speedjump + gravity > 0) { state = 3; } if (speedjump + gravity < 0) { state = 4; } } else { state = 1; } } } if (hurt == true) { ++hurtTimer; _root.marty.upperBody.gotoAndStop(3); _root.marty.gotoAndStop(); if (hurtTimer >= 30) { _root.marty.upperBody.gotoAndStop(1); hurt = false; } } if (hurt == false) { hurtTimer = 0; } if (this._x >= _root.platforms._x + exitX) { state = 1; gravity = 0; exit = true; active = false; _root.creature4.active = false; } } if (active == false) { if (part == 0) { if (this._x < _root._x + 350) { this._x += xspeed; if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; state = 2; } else { state = 4; ++gravity; this._y += gravity; } } else { _root.topBar.hide = true; _root.bottomBar.hide = true; state = 1; part = 100; _root.creature4.active = true; active = true; } } if (part == 100) { if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } } if (exit == true) { if (_root.fader._alpha < 0) { _root.fader._alpha = 0; } _root.topBar.hide = false; _root.bottomBar.hide = false; _root.fader.fadeOut = false; _root.fader.fadeIn = true; if (_root.fader._alpha >= 100) { _root.gotoAndStop(13); } } } } onClipEvent (keyDown) { if (active == true && hurt == false && Key.getCode() == 65) { _root.marty.upperBody.gotoAndStop(2); punch = true; } } } movieClip 1157 { } movieClip 1160 { } movieClip 1162 { } movieClip 1164 { } movieClip 1166 { } movieClip 1168 { } movieClip 1169 { } movieClip 1170 { instance hitZone of movieClip 273 { onClipEvent (load) { deathAni = false; } onClipEvent (enterFrame) { if (_root.marty.hitTest(this) && _root.marty.hurt == false) { if (_root.healthBar.health <= 40) { _root.healthBar.health -= 40; deathAni = true; } if (_root.healthBar.health > 40 && _root.marty.active == true) { _root.healthBar.health -= 40; _root.marty.hurt = true; } } } } } movieClip 1171 { frame 1 { stop(); } frame 2 { stop(); } } instance creature1 of movieClip 1171 { onClipEvent (load) { xSpeed = -5; state = 1; scale = _xscale; hunt = true; gravity = 0; assault = false; surface = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (hunt == true) { if (assault == false) { gravity = 0; state = 1; this._x += xSpeed; if (_root.platforms.hitTest(_x - 176, _y + 25, true)) { _xscale = -scale; xSpeed = 5; } if (_root.platforms.hitTest(_x + 176, _y + 25, true)) { _xscale = scale; xSpeed = -5; } if (_root.marty._x + 25 < this._x + 175 && _root.marty._x - 25 > this._x - 175 && _root.marty.active == true) { assault = true; } else { assault = false; } if (this._y > _root._y + 485.45) { this._y -= 5; } } if (assault == true) { this._x += xSpeed; this._y += 5; if (this._y > _root._y + 600) { this._x = _root.marty._x; hunt = false; } } if (this.body.hitZone.deathAni == true) { stopAllSounds(); _root.marty.active = false; _root.marty.state = 5; _root.marty.part = 100; _root.healthBar.health = 0; _root.music.gotoAndStop(7); } } if (assault == true && hunt == false) { state = 2; this._y -= 20 - gravity; ++gravity; if (this._y > _root._y + 600) { hunt = true; assault = false; } } } } instance creature2 of movieClip 1171 { onClipEvent (load) { xSpeed = -5; state = 1; scale = _xscale; hunt = true; gravity = 0; assault = false; surface = false; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (hunt == true) { if (assault == false) { gravity = 0; state = 1; this._x += xSpeed; if (_root.platforms.hitTest(_x - 176, _y + 25, true)) { _xscale = -scale; xSpeed = 5; } if (_root.platforms.hitTest(_x + 176, _y + 25, true)) { _xscale = scale; xSpeed = -5; } if (_root.marty._x + 25 < this._x + 175 && _root.marty._x - 25 > this._x - 175 && _root.marty.active == true) { assault = true; } else { assault = false; } if (this._y > _root._y + 485.45) { this._y -= 5; } } if (assault == true) { this._x += xSpeed; this._y += 5; if (this._y > _root._y + 600) { this._x = _root.marty._x; hunt = false; } } if (this.body.hitZone.deathAni == true) { stopAllSounds(); _root.marty.active = false; _root.marty.state = 5; _root.marty.part = 100; _root.healthBar.health = 0; _root.music.gotoAndStop(7); } } if (assault == true && hunt == false) { state = 2; this._y -= 20 - gravity; ++gravity; if (this._y > _root._y + 600) { hunt = true; assault = false; } } } } movieClip 1173 { instance of movieClip 536 { onClipEvent (load) { light = random(55) + 1; this.light1.gotoAndPlay(light); this.light2.gotoAndPlay(light); } } } frame 13 { stop(); } instance farBack of movieClip 169 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance background1 of movieClip 177 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } movieClip 1176 { } instance arua of movieClip 1144 { onClipEvent (load) { scale = random(35) + 15; time = 30; count = 0; maxTime = random(30) + 15; rotate = random(10) - 5; fade = true; if (this._name == 'arua') { this._alpha = 0; } if (this._name != 'arua') { this.gotoAndStop(random(3) + 1); fade = true; this._alpha = 0; this._xscale = scale; this._yscale = scale; this._x = _root.marty._x + random(35) - 15; this._y = _root.marty._y + random(35) - 65; } } onClipEvent (enterFrame) { if (_root.marty.brakPower == true && this._name == 'arua') { ++time; if (time >= maxTime) { ++count; this.duplicateMovieClip('arua' + count, count); maxTime = random(6) + 2; time = 0; } } if (this._name != 'arua') { this._rotation += rotate; if (fade == true) { this._alpha += 5; } if (this._alpha >= 100) { fade = false; } if (fade == false) { this._alpha -= 5; } if (this._alpha < 0) { this.removeMovieClip(); } } } } instance glow of movieClip 1144 { onClipEvent (load) { scale = random(35) + 15; time = 30; count = 0; maxTime = random(30) + 15; rotate = random(10) - 5; fade = true; if (this._name == 'glow') { this._alpha = 0; } if (this._name != 'glow') { this.gotoAndStop(random(3) + 1); fade = true; this._alpha = 0; this._xscale = scale; this._yscale = scale; this._x = _root._x + random(70) + 315; this._y = _root._y + 480; } } onClipEvent (enterFrame) { if (_root.healthBar.power >= 100 && _root.marty.brakPower == false && this._name == 'glow') { ++time; if (time >= maxTime) { ++count; this.duplicateMovieClip('glow' + count, count); maxTime = random(6) + 2; time = 0; } } if (this._name != 'glow') { this._rotation += rotate; if (fade == true) { this._alpha += 5; } if (this._alpha >= 100) { fade = false; } if (fade == false) { this._alpha -= 5; } if (this._alpha < 0) { this.removeMovieClip(); } } } } instance marty of movieClip 317 { onClipEvent (load) { brakPower = false; gortPower = false; buttonTime = 30; maxButtonTime = 30; part = 0; _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; maxX = 3450; exitX = 3350; levelChange = 14; punch = false; dustTimer = 0; screenMove = true; hurt = false; hurtTimer = 0; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (Key.isDown(83) && _root.healthBar.power >= 100) { if (brakPower == false) { brakPower = true; } } if (brakPower == true) { _root.healthBar.power -= 0.5; } if (_root.healthBar.power <= 0) { brakPower = false; } if (_root.platforms.hitTest(_x, _y, true)) { if (Key.isDown(32) && _root.platforms.hitTest(_x, _y + 5, true)) { jump = true; } if (jump == false) { air = false; } } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 600) { stopAllSounds(); _root.healthBar.health = 0; _root.music.gotoAndStop(7); gravity = 0; active = false; } if (jump == true) { if (brakPower == true) { speedjump = 18; } else { speedjump = 14; } _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; air = false; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; air = false; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; air = false; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; air = false; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; air = false; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + maxX < _root._x + 710) { if (_root.platforms._x + maxX < _root._x + 710) { edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x > _root._x - 10) { if (_root.platforms._x > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { if (speedjump + gravity > 0) { state = 3; } if (speedjump + gravity < 0) { state = 4; } } else { state = 1; } } } if (hurt == true) { ++hurtTimer; _root.marty.upperBody.gotoAndStop(3); _root.marty.gotoAndStop(); if (hurtTimer >= 30) { _root.marty.upperBody.gotoAndStop(1); hurt = false; } } if (this._x >= _root.platforms._x + exitX) { state = 1; gravity = 0; exit = true; active = false; } if (hurt == false) { hurtTimer = 0; } } if (active == false) { if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (exit == true) { if (_root.fader._alpha < 0) { _root.fader._alpha = 0; } _root.topBar.hide = false; _root.bottomBar.hide = false; _root.fader.fadeOut = false; _root.fader.fadeIn = true; if (_root.fader._alpha >= 100) { stopAllSounds(); _root.music.gotoAndStop(6); _root.gotoAndStop(levelChange); } } } } onClipEvent (keyDown) { if (active == true && hurt == false && Key.getCode() == 65) { if (brakPower == false) { _root.marty.upperBody.gotoAndStop(2); } else { _root.marty.upperBody.gotoAndStop(4); } punch = true; } } } instance demon of movieClip 662 { onClipEvent (load) { part = 0; xSpeed = 5; ySpeed = 0; state = 1; time = 0; this._xscale = -_xscale; scale = _xscale; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (part == 1) { if (this._x < _root._x + 75) { this._x += xSpeed; } else { _root.marty.upperBody.upperBody.mouth.gotoAndStop(4); _root.marty.upperBody.upperBody.eyes.gotoAndStop(2); _root.marty._xscale = -_root.marty.scale; state = 3; ++time; if (time >= 90) { _root.movie.gotoAndStop(6); this.part = 0; } } } if (part == 2) { this._xscale = -scale; ++ySpeed; this._x -= xSpeed; this._y -= ySpeed; if (this._y <= _root._y - 35) { this._alpha = 0; part = 0; } } } } instance creature3 of movieClip 698 { onClipEvent (load) { health = 5; active = false; attack = false; time = 0; xSpeed = 6; scale = _xscale; state = 1; hit = false; gravity = 0; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { if (attack == false) { if (health <= 0) { health = 5; } if (_root.marty._x > this._x && _root.marty._x < this._x + 300) { state = 3; this._x += xSpeed; _xscale = -scale; } if (_root.marty._x < this._x && _root.marty._x > this._x - 300) { state = 3; this._x -= xSpeed; _xscale = scale; } if (_root.marty._x > this._x + 300 or _root.marty._x < this._x - 300) { state = 1; } if (_root.marty._x > this._x - 100 && _root.marty._x <= this._x - 50) { attack = true; } if (_root.marty._x < this._x + 100 && _root.marty._x > this._x + 50) { attack = true; } } if (this._y > _root._y + 600) { health = 0; active = false; } if (this._x > _root._x + 900 or this._x < _root._x - 200) { health = 0; active = false; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { time = 0; --health; hit = true; active = false; } if (_root.power.hitTest(this)) { time = 0; health -= 5; hit = true; active = false; } if (attack == true) { ++time; state = 4; if (this.goblin.attackEnd == true) { time = 0; attack = false; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (this.goblin.hitZone.deathAni == true) { stopAllSounds(); _root.marty.active = false; _root.marty.state = 5; _root.marty.part = 100; _root.marty.gravity = 0; _root.healthBar.health = 0; hit = false; attack = false; _root.music.gotoAndStop(7); active = false; } } if (active == false) { if (_root.marty.part == 100 && _root.marty.active == false) { state = 2; } if (health > 0 && hit == true) { state = 5; ++time; if (time >= 104) { active = true; } } if (health <= 0) { state = 6; ++time; this._alpha = 100 - time; if (time >= 200) { this._x = 800; this._y = 200; this._alpha = 100; attack = false; active = true; } } } } } movieClip 1178 { } movieClip 1180 { } movieClip 1182 { } movieClip 1183 { } movieClip 1185 { } movieClip 1187 { } movieClip 1189 { } movieClip 1191 { } movieClip 1194 { frame 1 { stop(); } instance of movieClip 1183 { onClipEvent (load) { this.gotoAndPlay(random(8) + 1); } } instance eyes of movieClip 333 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } frame 2 { stop(); } instance eyes of movieClip 333 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } } instance whore of movieClip 1194 { onClipEvent (load) { part = 0; xSpeed = 5; gravity = 0; scale = _xscale; } onClipEvent (enterFrame) { if (part == 1) { this._xscale = -scale; this._x += xSpeed; gravity += 0.25; this._y -= gravity; if (this._y < _root._y - 35) { this_alpha = 0; part = 0; } } } } movieClip 1195 { } movieClip 1196 { instance of movieClip 326 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 190 { stop(); } instance of movieClip 326 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } } movieClip 1197 { instance of movieClip 326 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance of movieClip 326 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance of movieClip 326 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance of movieClip 326 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } frame 125 { stop(); } } movieClip 1198 { frame 155 { stop(); } } movieClip 1199 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance brak of movieClip 1199 { onClipEvent (load) { part = 0; speed = 5; scale = _xscale; } onClipEvent (enterFrame) { if (part == 0) { if (_root.fader._alpha >= 100) { this._xscale = -scale; _root.movie.gotoAndStop(2); part = 1; } } if (part == 1) { } if (part == 2) { if (_root.marty._x < this._x - 65) { _root.marty._x += 10; _root.marty.state = 2; } else { _root.marty.state = 1; _root.marty.upperBody.gotoAndStop(2); _root.movie.gotoAndStop(5); this._xscale = scale; part = 1; } } if (part == 3) { if (_root.marty._x < _root._x + 350) { _root.marty._x += 10; _root.marty.state = 2; if (_root.marty._x >= this._x) { this._y = _root._y - 35; this._alpha = 0; } } else { _root.marty.state = 1; part = 1; } } } } movieClip 1203 { } movieClip 1204 { instance light of movieClip 1203 { onClipEvent (load) { this._x = _root.frontal._x - 500; active = false; } onClipEvent (enterFrame) { if (_root.power.active == true) { active = true; } else { active = false; } if (active == true) { this._x = -1 * _root.frontal._x + _root.power._x; this._y = _root.power._y + _root.frontal._y; } else { this._x = _root.frontal._x - 500; } } } instance light2 of movieClip 1203 { onClipEvent (load) { this._x = _root.frontal._x - 500; active = false; } onClipEvent (enterFrame) { if (_root.marty.brakPower == true) { active = true; } else { active = false; } if (active == true) { this._x = -1 * _root.frontal._x + _root.marty._x; this._y = _root.marty._y - 25 + _root.frontal._y; } else { this._x = _root.frontal._x - 500; } } } } button 1206 { on (press) { _root.marty._x = _root._x + 350; _root.brak._alpha = 0; _root.whore.part = 1; gotoAndStop(7); } } movieClip 1213 { frame 185 { stop(); _root.movie.gotoAndStop(3); } } movieClip 1216 { frame 6 { _root.whore.gotoAndStop(2); } frame 15 { _root.whore.part = 1; _root.whore.gotoAndStop(1); } frame 70 { _root.movie.gotoAndStop(4); } } movieClip 1224 { frame 11 { _root.brak.gotoAndStop(4); } frame 201 { stop(); _root.brak.part = 2; } } movieClip 1232 { frame 15 { _root.brak.gotoAndStop(2); } frame 229 { stop(); _root.demon.part = 1; } } movieClip 1239 { frame 1 { _root.demon.part = 2; } frame 13 { _root.brak.gotoAndStop(3); } frame 14 { } frame 32 { _root.marty._xscale = _root.marty.scale; } frame 90 { _root.marty.state = 12; } frame 150 { _root.marty.state = 1; _root.marty.upperBody.upperBody.mouth.gotoAndStop(1); _root.marty.upperBody.upperBody.eyes.gotoAndStop(1); } frame 190 { stop(); _root.brak.part = 3; _root.movie.gotoAndStop(7); } } button 1244 { on (release) { _root.topBar.hide = true; _root.bottomBar.hide = true; _root.healthBar.activate = true; _root.healthBar.power = 100; _root.creature3.active = true; _root.creature2.active = true; _root.marty.active = true; _root.movie.gotoAndStop(8); } } movieClip 1249 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 1261 { frame 80 { _root.power.active = false; stop(); } } instance power of movieClip 1261 { onClipEvent (load) { xSpeed = 17; xPos = -100; yPos = -100; active = false; scale = _xscale; resist = 0; begin == false; look = 1; this.gotoAndStop(80); } onClipEvent (enterFrame) { if (Key.isDown(65) && active == false && _root.marty.hurt == false && _root.marty.brakPower == true && _root.marty.active == true) { xPos = _root.marty._x; yPos = _root.marty._y - 35; begin = true; active = true; } if (active == true) { if (begin == true) { this.gotoAndPlay(1); this._x = _root._x + xPos; this._y = _root._y + yPos; resist = 0; if (_root.marty._xscale < 0) { look = 1; } else { look = 2; } begin = false; } if (look == 1) { resist += 0.5; if (xSpeed - resist >= 0) { this._x -= xSpeed - resist; } this._xscale = scale; } if (look == 2) { resist += 0.5; if (xSpeed - resist >= 0) { this._x += xSpeed - resist; } this._xscale = -scale; } } else { this._x = _root._x - 100; this._y = _root._y - 100; } } } frame 14 { stopAllSounds(); _root.healthBar.activate = true; } instance farBack of movieClip 169 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } movieClip 1264 { } instance dust of movieClip 1264 { onClipEvent (load) { count = 0; xMove = random(7) - 3; ySpeed = random(6) + 4; rotateSpeed = random(6) + 10; scale = random(85) + 15; gravity = 0; if (this._name == 'dust') { this._y = _root._y - 25; } else { this._x = _root.marty._x - 25; this._y = _root.marty._y - 25; } } onClipEvent (enterFrame) { if (this._name != 'dust') { gravity -= 2; this._y -= ySpeed + gravity; this._x += xMove; this._alpha -= 5; --scale; this._xscale = scale; this._yscale = scale; this._rotation -= rotateSpeed; if (this._alpha == 0) { this.removeMovieClip(); --_root.dust.count; } } } } movieClip 1268 { } movieClip 1270 { } movieClip 1272 { } instance splash of movieClip 1272 { onClipEvent (load) { count = 0; xStart = random(20) - 10; xMove = random(12) - 6; ySpeed = random(6) + 6; rotateSpeed = random(15) + 10; scale = random(45) + 15; gravity = 0; if (this._name == 'splash') { this._x = _root._x - 25; this._alpha = 0; } else { this._x = _root.marty._x + xStart; this._y = _root.marty._y - 25; this._alpha = 100; this._xscale = scale; this._yscale = scale; } } onClipEvent (enterFrame) { if (this._name != 'splash') { gravity -= 2; this._y -= ySpeed + gravity; this._x += xMove; this._alpha -= 5; --scale; this._rotation += rotateSpeed; if (this._alpha == 0 or _root.platforms.hitTest(_x, _y, true)) { this.removeMovieClip(); --_root.splash.count; } } } } instance glow of movieClip 1144 { onClipEvent (load) { scale = random(35) + 15; time = 30; count = 0; maxTime = random(30) + 15; rotate = random(10) - 5; fade = true; if (this._name == 'glow') { this._alpha = 0; } if (this._name != 'glow') { this.gotoAndStop(random(3) + 1); fade = true; this._alpha = 0; this._xscale = scale; this._yscale = scale; this._x = _root._x + random(70) + 315; this._y = _root._y + 490; } } onClipEvent (enterFrame) { if (_root.healthBar.power >= 100 && _root.marty.brakPower == false && this._name == 'glow') { ++time; if (time >= maxTime) { ++count; this.duplicateMovieClip('glow' + count, count); maxTime = random(6) + 2; time = 0; } } if (this._name != 'glow') { this._rotation += rotate; if (fade == true) { this._alpha += 5; } if (this._alpha >= 100) { fade = false; } if (fade == false) { this._alpha -= 5; } if (this._alpha < 0) { this.removeMovieClip(); } } } } instance marty of movieClip 317 { onClipEvent (load) { brakPower = false; gortPower = false; buttonTime = 30; maxButtonTime = 30; part = 1; _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; maxX = 5050; exitX = 5000; levelChange = 15; punch = false; dustTimer = 0; screenMove = true; hurt = false; hurtTimer = 0; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (Key.isDown(83) && _root.healthBar.power >= 100) { if (brakPower == false) { brakPower = true; } } if (brakPower == true) { _root.healthBar.power -= 0.5; } if (_root.healthBar.power <= 0) { brakPower = false; } if (_root.platforms.hitTest(_x, _y, true)) { if (Key.isDown(32) && _root.platforms.hitTest(_x, _y + 5, true)) { jump = true; } if (jump == false) { air = false; } } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 600) { stopAllSounds(); _root.healthBar.health = 0; _root.music.gotoAndStop(7); gravity = 0; active = false; } if (jump == true) { if (brakPower == true) { speedjump = 18; } else { speedjump = 14; } _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; air = false; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; air = false; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; air = false; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; air = false; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; air = false; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + maxX < _root._x + 710) { if (_root.platforms._x + maxX < _root._x + 710) { edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.spear1._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x > _root._x - 10) { if (_root.platforms._x > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.spear1._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { if (speedjump + gravity > 0) { state = 3; } if (speedjump + gravity < 0) { state = 4; } } else { state = 1; } } } if (hurt == true) { ++hurtTimer; _root.marty.upperBody.gotoAndStop(3); _root.marty.gotoAndStop(); if (hurtTimer >= 30) { _root.marty.upperBody.gotoAndStop(1); hurt = false; } } if (hurt == false) { hurtTimer = 0; } if (this._x >= _root.platforms._x + exitX) { state = 1; gravity = 0; exit = true; active = false; } } if (active == false) { if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (part == 1) { if (this._x < _root._x + 350) { state = 2; this._x += xspeed; } else { _root.topBar.hide = true; _root.bottomBar.hide = true; state = 1; part = 0; active = true; } } if (exit == true) { if (_root.fader._alpha < 0) { _root.fader._alpha = 0; } _root.topBar.hide = false; _root.bottomBar.hide = false; _root.fader.fadeOut = false; _root.fader.fadeIn = true; if (_root.fader._alpha >= 100) { _root.gotoAndStop(levelChange); } } } } onClipEvent (keyDown) { if (active == true && hurt == false && Key.getCode() == 65) { if (brakPower == false) { _root.marty.upperBody.gotoAndStop(2); } else { _root.marty.upperBody.gotoAndStop(4); } punch = true; } } } movieClip 1274 { } movieClip 1276 { } movieClip 1278 { } movieClip 1280 { } movieClip 1281 { } movieClip 1283 { } movieClip 1284 { } movieClip 1285 { instance hitZone of movieClip 273 { onClipEvent (load) { deathAni = false; } onClipEvent (enterFrame) { if (_root.marty.hitTest(this) && _root.marty.hurt == false) { if (_root.healthBar.health <= 30) { _root.healthBar.health -= 30; deathAni = true; } if (_root.healthBar.health > 30 && _root.marty.active == true) { _root.healthBar.health -= 30; _root.marty.hurt = true; } } } } frame 40 { attackEnd = true; stop(); } } movieClip 1286 { frame 30 { hitEnd = true; stop(); } } movieClip 1287 { frame 30 { deathEnd = true; stop(); } } movieClip 1289 { } movieClip 1290 { frame 174 { gotoAndPlay(120); } } movieClip 1291 { frame 1 { stop(); } instance of movieClip 1284 { onClipEvent (load) { this.gotoAndPlay(random(75) + 1); } } instance of movieClip 1284 { onClipEvent (load) { this.gotoAndPlay(random(75) + 1); } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } instance creature1 of movieClip 1291 { onClipEvent (load) { attack = false; hit = false; active = true; health = 5; state = 1; time = 0; maxTime = 30; refresher = false; gravity = 0; scale = _xscale; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { ++time; if (refresher == true) { this._alpha = 100; health = 5; state = 1; this._x = _root._x + 900; this._y = _root._y + 400; refresher = false; } this.gotoAndStop(state); if (_root.marty._x < this._x) { this._xscale = scale; } if (_root.marty._x >= this._x) { this._xscale = -scale; } if (_root.marty._x < this._x + 200 && _root.marty._x > this._x - 200 && maxTime <= time) { state = 2; time = 0; } if (this.body.attackEnd == true) { state = 1; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { health -= 1; hit = true; active = false; } if (_root.power.hitTest(this)) { health -= 5; hit = true; active = false; } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (this._y >= _root._x + 700 or this._x < _root._x - 200 or this._x > _root._x + 900) { refresher = true; } if (this.body.hitZone.deathAni == true) { state = 5; _root.marty._alpha = 0; _root.marty.active = false; _root.marty.part = 100; _root.healthBar.health = 0; hit = false; death = false; stopAllSounds(); _root.music.gotoAndStop(7); active = false; } } if (active == false) { if (health > 0 && hit == true) { state = 3; if (this.body.hitEnd == true) { state = 1; active = true; } } if (health <= 0) { state = 4; if (this.body.deathEnd == true) { this._alpha -= 5; if (this._alpha <= 0) { refresher = true; active = true; } } } } } } instance animal4 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == true) { this._rotation -= 15; this._x -= 30; this._y -= 10 - gravity; } if (right == false) { this._rotation += 15; this._x += 30; this._y -= 10 - gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal1 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal2 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal3 of movieClip 238 { onClipEvent (load) { dead = false; count = 0; right = false; jump = false; jumpSpeed = random(5) - 8; gravity = 0; xSpeed = random(11) - 5; countSpeed = random(2) + 1; state = 1; air = false; scale = _xscale; this.gotoAndStop(1); } onClipEvent (enterFrame) { if (dead == false) { if (xSpeed < 0) { right = false; this._xscale = scale; } if (xSpeed > 0) { right = true; this._xscale = -scale; } if (air == false) { count += countSpeed; xSpeed = 0; jumpSpeed = 0; if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (count >= 100) { count = 0; xSpeed = random(10) - 5; jumpSpeed = random(4) - 10; jump = true; } } if (jump == true) { this._y += jumpSpeed + gravity; if (_root.platforms.hitTest(_x, _y, true)) { } else { air = true; } } if (_root.platforms.hitTest(_x + 10, _y + 5, true) && right == true) { xSpeed *= -1; } if (_root.platforms.hitTest(_x - 10, _y + 5, true) && right == false) { xSpeed *= -1; } if (air == true) { this.gotoAndStop(2); this._x += xSpeed; gravity += 1; if (_root.platforms.hitTest(_x, _y, true)) { this.gotoAndStop(1); gravity = 0; countSpeed = random(5) + 1; air = false; } } if (this._y > _root._y + 500) { this._y = _root._y; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance animal5 of movieClip 244 { onClipEvent (load) { dead = false; xSpeed = random(3) + 5; right = true; scale = _xscale; gravity = 0; } onClipEvent (enterFrame) { if (dead == false) { if (right == true) { this._xscale = scale; this._x += xSpeed; if (_root.platforms.hitTest(_x + 25, _y - 15, true)) { right = false; } if (_root.platforms.hitTest(_x + 20, _y + 25, true)) { } else { right = false; } } if (right == false) { this._xscale = -scale; this._x -= xSpeed; if (_root.platforms.hitTest(_x - 25, _y - 15, true)) { right = true; } if (_root.platforms.hitTest(_x - 20, _y + 25, true)) { } else { right = true; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y + 2, true)) { gravity = 0; } else { ++gravity; } this._y += gravity; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { gravity = 0; dead = true; if (_root.marty.right == false) { right = false; } if (_root.marty.right == true) { right = true; } } if (dead == true) { this.gotoAndStop(1); if (this._x < _root._x + 700 && this._x > _root._x) { ++gravity; } if (right == false) { this._rotation -= 15; this._x -= 30; this._y -= 10 + gravity; } if (right == true) { this._rotation += 15; this._x += 30; this._y -= 10 + gravity; } if (this._x > _root._x + 700 or this._x < _root._x) { this.removeMovieClip; } } } } instance creature2 of movieClip 1291 { onClipEvent (load) { attack = false; hit = false; active = true; health = 5; state = 1; time = 0; maxTime = 30; refresher = false; gravity = 0; scale = _xscale; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { ++time; if (refresher == true) { this._alpha = 100; health = 5; state = 1; this._x = _root._x - 200; this._y = _root._y + 400; refresher = false; } this.gotoAndStop(state); if (_root.marty._x < this._x) { this._xscale = scale; } if (_root.marty._x >= this._x) { this._xscale = -scale; } if (_root.marty._x < this._x + 200 && _root.marty._x > this._x - 200 && maxTime <= time) { state = 2; time = 0; } if (this.body.attackEnd == true) { state = 1; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { health -= 1; hit = true; active = false; } if (_root.power.hitTest(this)) { health -= 5; hit = true; active = false; } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (this._y >= _root._x + 700 or this._x < _root._x - 200 or this._x > _root._x + 900) { refresher = true; } if (this.body.hitZone.deathAni == true) { state = 5; _root.marty._alpha = 0; _root.marty.active = false; _root.marty.part = 100; _root.healthBar.health = 0; hit = false; death = false; stopAllSounds(); _root.music.gotoAndStop(7); active = false; } } if (active == false) { if (health > 0 && hit == true) { state = 3; if (this.body.hitEnd == true) { state = 1; active = true; } } if (health <= 0) { state = 4; if (this.body.deathEnd == true) { this._alpha -= 5; if (this._alpha <= 0) { refresher = true; active = true; } } } } } } instance creature3 of movieClip 466 { onClipEvent (load) { active = true; health = 3; xSpeed = 5; lockOn = false; scale = _xscale; state = 1; gravity = 0; time = 0; done = false; refresher = true; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (refresher == true) { this._alpha = 100; this._x = _root._x + 900; this._y = _root._y + 400; gravity = 0; time = 0; health = 3; state = 1; lockOn = false; active = true; refresher = false; } if (active == true) { if (this._y > _root._y + 600) { health = 0; active = false; } if (_root.marty._x > this._x - 250 && _root.marty._x < this._x) { lockOn = true; } if (_root.marty._x < this._x + 250 && _root.marty._x > this._x) { lockOn = true; } if (lockOn == true) { if (_root.marty._x > this._x) { state = 2; this._x += xSpeed; this._xscale = -scale; } if (_root.marty._x < this._x) { state = 2; this._x -= xSpeed; this._xscale = scale; } if (_root.marty._x < this._x - 350) { state = 3; lockOn = false; } if (_root.marty._x > this._x + 350) { state = 3; lockOn = false; } } if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (_root.marty.hurt == false && _root.marty.hitTest(_x, _y - 75, true)) { if (_root.marty.active == true && _root.healthBar.health <= 25) { stopAllSounds(); _root.music.gotoAndStop(7); _root.marty.state = 5; _root.marty.active = false; _root.marty.gravity = 0; _root.healthBar.health = 0; active = false; } if (_root.marty.active == true && _root.healthBar.health > 25) { _root.healthBar.health -= 25; _root.marty.hurt = true; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { state = 4; time = 0; --health; active = false; } if (_root.power.hitTest(this)) { state = 4; time = 0; health -= 3; active = false; } } if (active == false) { if (health <= 0) { state = 5; this._alpha -= 1; if (this._alpha <= 0) { refresher = true; } } if (health > 0 && _root.marty.active == true) { ++time; if (time >= 30) { active = true; } } if (health > 0 && _root.marty.active == false) { state = 1; } } } } movieClip 1294 { instance light of movieClip 1203 { onClipEvent (load) { this._x = _root.frontal._x - 500; active = false; } onClipEvent (enterFrame) { if (_root.power.active == true) { active = true; } else { active = false; } if (active == true) { this._x = -1 * _root.frontal._x + _root.power._x; this._y = -1 * _root.frontal._y + _root.power._y; } else { this._x = _root.frontal._x - 500; } } } instance light2 of movieClip 1203 { onClipEvent (load) { this._x = _root.frontal._x - 500; active = false; } onClipEvent (enterFrame) { if (_root.marty.brakPower == true) { active = true; } else { active = false; } if (active == true) { this._x = -1 * _root.frontal._x + _root.marty._x; this._y = -1 * _root.frontal._y + _root.marty._y; } else { this._x = _root.frontal._x - 500; } } } } frame 15 { stop(); _root.healthBar.activate = true; } movieClip 1299 { } movieClip 1301 { } movieClip 1303 { } movieClip 1305 { } movieClip 1307 { } movieClip 1309 { } movieClip 1311 { } movieClip 1313 { } movieClip 1315 { } movieClip 1317 { } movieClip 1319 { } movieClip 1321 { instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 1322 { } movieClip 1324 { } movieClip 1326 { } movieClip 1327 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1329 { } movieClip 1331 { } movieClip 1333 { } movieClip 1337 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1339 { } movieClip 1341 { } movieClip 1343 { } movieClip 1355 { frame 150 { stop(); _root.creature9.gotoAndPlay(366); } } movieClip 1374 { frame 345 { stop(); } } movieClip 1391 { frame 340 { stop(); } } movieClip 1405 { frame 265 { stop(); } } movieClip 1409 { frame 77 { _root.creature2.active = true; _root.creature2.arrive = true; _root.creature3.active = true; _root.creature3.arrive = true; stop(); } } movieClip 1412 { frame 135 { stop(); } } movieClip 1423 { frame 106 { stop(); } } movieClip 1424 { 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(); } } movieClip 1425 { instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } } movieClip 1426 { frame 235 { if (_root.marty.part != 2) { gotoAndPlay(1); } } frame 236 { playNext = true; stop(); } frame 237 { playNext = false; } frame 365 { stop(); } instance thesela of movieClip 1425 { onClipEvent (enterFrame) { this.mouth.gotoAndStop(3); _root.movie.gotoAndStop(3); } } frame 446 { _root.marty.part = 101; _root.marty.active = true; _root.topBar.hide = true; _root.bottomBar.hide = true; _root.movie.gotoAndStop(1); stop(); } } movieClip 1428 { } instance marty of movieClip 317 { onClipEvent (load) { bossDamage = 0; brakPower = false; gortPower = false; buttonTime = 30; maxButtonTime = 30; mashTime = 0; part = 1; _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; maxX = 2050; maxX2 = 0; exitX = 5000; levelChange = 15; punch = false; dustTimer = 0; screenMove = true; hurt = false; hurtTimer = 0; edge = 0; active = false; air = false; gravity = 0; speed = 10; jump = false; xspeed = 10; xspeed2 = 2; xspeed3 = 2; xspeed4 = 0.75; xspeed5 = 0.75; speedjump = 0; scale = _xscale; _root.actionBar._x = _x - 30; _root.actionBar._y = _y - 75; if (_root.entrance == 2) { _root.platforms._x = _root._x - 1224; _root.background._x = _root._x - 1125; } } onClipEvent (enterFrame) { gotoAndStop(state); if (active == true) { if (Key.isDown(83) && _root.healthBar.power >= 100) { if (brakPower == false) { brakPower = true; } } if (brakPower == true) { _root.healthBar.power -= 0.5; } if (_root.healthBar.power <= 0) { brakPower = false; } if (_root.platforms.hitTest(_x, _y, true)) { if (Key.isDown(32) && _root.platforms.hitTest(_x, _y + 5, true)) { jump = true; } if (jump == false) { air = false; } } else { air = true; } if (air == true) { gravity -= 1; _root.marty._y += speed; _root.marty._y -= gravity; if (_root.platforms.hitTest(_x, _y, true)) { jump = false; } if (_root.platforms.hitTest(_x, _y - 100, true)) { jump = false; } } else { speed = 0; gravity = 0; } if (_root.background.action1.hitTest(_x, _y - 40, true) || _root.background.action2.hitTest(_x, _y - 40, true) && _root.background.action3.hitTest(_x, _y - 40, true)) { _root.actionBar.gotoAndStop(2); } else { _root.actionBar.gotoAndStop(1); } if (_root.background.action1.hitTest(_x, _y - 40, true) && Key.isDown(38)) { _root.gotoAndStop(8); } if (_y > _root._y + 600) { stopAllSounds(); _root.healthBar.health = 0; _root.music.gotoAndStop(7); gravity = 0; active = false; } if (jump == true) { if (brakPower == true) { speedjump = 18; } else { speedjump = 14; } _root.marty._y -= speedjump; } else { if (jump == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; air = false; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; air = false; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; air = false; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; air = false; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; air = false; } } } if (edge != 0) { if (Key.isDown(39)) { _root.marty._x += xspeed; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39)) { _root.marty._x -= xspeed; } if (_root.marty._x >= _root._x + 350 && edge == 1) { edge = 0; } } if (Key.isDown(37)) { _root.marty._x -= xspeed; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37)) { _root.marty._x += xspeed; } if (_root.marty._x <= _root._x + 350 && edge == 2) { edge = 0; } } } if (Key.isDown(39) && edge == 0) { _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.bonus._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; _xscale = scale; if (_root.platforms.hitTest(_x + 25, _y - 20, true) and Key.isDown(39) or _root.platforms.hitTest(_x + 25, _y - 80, true) and Key.isDown(39) or _root.platforms._x + maxX < _root._x + 710) { if (_root.platforms._x + maxX < _root._x + 710) { edge = 2; } _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.bonus._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; } } if (Key.isDown(37) && edge == 0) { _root.platforms._x += xspeed; _root.background1._x += xspeed2; _root.background2._x += xspeed4; _root.background._x += xspeed; _root.frontal._x += xspeed; _root.animal1._x += xspeed; _root.animal2._x += xspeed; _root.animal3._x += xspeed; _root.animal4._x += xspeed; _root.animal5._x += xspeed; _root.bonus._x += xspeed; _root.creature1._x += xspeed; _root.creature2._x += xspeed; _root.creature3._x += xspeed; _root.creature4._x += xspeed; _root.creature5._x += xspeed; _root.creature6._x += xspeed; _root.creature7._x += xspeed; _root.creature8._x += xspeed; _root.farBack._x += xspeed5; _xscale = -scale; if (_root.platforms.hitTest(_x - 25, _y - 20, true) and Key.isDown(37) or _root.platforms.hitTest(_x - 25, _y - 80, true) and Key.isDown(37) or _root.platforms._x + maxX2 > _root._x - 10) { if (_root.platforms._x + maxX2 > _root._x - 10) { edge = 1; } _root.platforms._x -= xspeed; _root.background1._x -= xspeed2; _root.background2._x -= xspeed4; _root.background._x -= xspeed; _root.frontal._x -= xspeed; _root.animal1._x -= xspeed; _root.animal2._x -= xspeed; _root.animal3._x -= xspeed; _root.animal4._x -= xspeed; _root.animal5._x -= xspeed; _root.bonus._x -= xspeed; _root.creature1._x -= xspeed; _root.creature2._x -= xspeed; _root.creature3._x -= xspeed; _root.creature4._x -= xspeed; _root.creature5._x -= xspeed; _root.creature6._x -= xspeed; _root.creature7._x -= xspeed; _root.creature8._x -= xspeed; _root.farBack._x -= xspeed5; } } if (Key.isDown(39) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (Key.isDown(37) && _root.platforms.hitTest(_x, _y + 10, true)) { state = 2; dustTimer += 1; if (dustTimer >= 2) { if (_root.frontal.water.hitTest(_x, _y - 5, true)) { _root.splash.duplicateMovieClip('splash' + _root.splash.count, _root.splash.count); ++_root.splash.count; } dustTimer = 0; } } else { if (air == true && _root.platforms.hitTest(_x, _y + 10, false)) { if (speedjump + gravity > 0) { state = 3; } if (speedjump + gravity < 0) { state = 4; } } else { state = 1; } } } if (hurt == true) { ++hurtTimer; _root.marty.upperBody.gotoAndStop(3); _root.marty.gotoAndStop(); if (hurtTimer >= 30) { _root.marty.upperBody.gotoAndStop(1); hurt = false; } } if (hurt == false) { hurtTimer = 0; } if (part == 0 && this._x > _root.platforms._x + 1050) { gravity = 0; part = 2; active = false; } if (part == 101 && this._x > _root.platforms._x + 1700) { part = 3; gravity = 0; active = false; } if (part == 102 && this._x < _root.platforms._x + 1150) { gravity = 0; active = false; } if (this._x >= _root.platforms._x + exitX) { state = 1; gravity = 0; exit = true; active = false; } if (_root.creature1.health <= 50 && _root.creature1._y <= _root._y + 205) { if (part != 201) { if (this._x > _root.creature1._x - 25 && this._x < _root.creature1._x + 25 && this._y - 75 > _root.creature1._y - 120 && this._y - 75 < _root.creature1._y - 21) { _root.movie.gotoAndStop(7); } else { _root.movie.gotoAndStop(1); } } } } if (active == false) { if (_root.platforms.hitTest(_x, _y - 2, true)) { _root.marty._y -= 2; air = false; } if (_root.platforms.hitTest(_x, _y - 4, true)) { _root.marty._y -= 4; air = false; } if (_root.platforms.hitTest(_x, _y - 6, true)) { _root.marty._y -= 6; air = false; } if (_root.platforms.hitTest(_x, _y - 8, true)) { _root.marty._y -= 8; air = false; } if (_root.platforms.hitTest(_x, _y - 10, true)) { _root.marty._y -= 10; air = false; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } if (part == 1) { if (this._x < _root._x + 350) { _root.topBar.hide = false; _root.bottomBar.hide = false; state = 2; this._x += xspeed; } else { state = 1; _root.movie.gotoAndStop(2); part = 0; } } if (part == 2) { _root.topBar.hide = false; _root.bottomBar.hide = false; state = 1; this.upperBody.gotoAndStop(5); this.upperBody.upperBody.eyes.gotoAndStop(2); if (_root.creature9.playNext == true) { _root.creature9.gotoAndPlay(237); } } if (part == 3) { if (this._x < _root.platforms._x + 1900) { _root.topBar.hide = false; _root.bottomBar.hide = false; state = 2; this._x += xspeed; } else { maxX2 = 850; _root.platforms.platformsAdd.gotoAndStop(1); this._xscale = -_xscale; state = 1; this.upperBody.gotoAndStop(5); this.upperBody.upperBody.eyes.gotoAndStop(3); this.upperBody.upperBody.eyes.gotoAndStop(2); this.upperBody.upperBody.eyes.gotoAndStop(2); _root.creature1._x = _root._x - 200; _root.creature1._y = _root._y + 243; _root.creature1.part = 1; _root.creature9.gotoAndStop(236); part = 100; } } if (part == 102) { this._xscale = scale; state = 1; this.upperBody.gotoAndStop(5); this.upperBody.upperBody.eyes.gotoAndStop(2); this.upperBody.upperBody.eyes.gotoAndStop(2); _root.creature1._x = _root._x + 900; _root.creature1._y = _root._y + 243; _root.creature1.part = 3; part = 103; } if (exit == true) { if (_root.fader._alpha < 0) { _root.fader._alpha = 0; } _root.fader.fadeOut = false; _root.fader.fadeIn = true; if (_root.fader._alpha >= 100) { _root.gotoAndStop(levelChange); } } if (part == 201) { if (mashTime < 120) { _root.creature1.mash = true; ++mashTime; state = 6; _root.creature1.state = 5; _root.marty.upperBody.gotoAndStop(6); _root.movie.gotoAndStop(8); if (Key.isDown(32)) { bossDamage = 0.5; _root.marty.upperBody.upperBody.gotoAndPlay(1); } else { _root.creature1.health -= bossDamage; bossDamage = 0; } if (_root.creature1.movement == 1) { this._xscale = -scale; this._x = _root.creature1._x + 20; this._y = _root.creature1._y - 70; } if (_root.creature1.movement == 2) { this._xscale = scale; this._x = _root.creature1._x - 20; this._y = _root.creature1._y - 70; } } else { _root.creature1.state = 1; _root.creature1.mash = false; _root.movie.gotoAndStop(1); mashTime = 0; jump = false; gravity = 0; part = 200; active = true; } } if (part == 202) { if (_root.platforms.hitTest(_x, _y, true)) { state = 5; } else { state = 4; } } } } onClipEvent (keyDown) { if (active == true && hurt == false && Key.getCode() == 65) { if (_root.creature1.mash == false) { punch = true; if (brakPower == false) { _root.marty.upperBody.gotoAndStop(2); } else { _root.marty.upperBody.gotoAndStop(4); } if (_root.creature1.health <= 50 && this._x > _root.creature1._x - 25 && this._x < _root.creature1._x + 25 && this._y - 75 > _root.creature1._y - 120 && this._y - 75 < _root.creature1._y - 21 && _root.creature1._y <= _root._x + 200) { part = 201; active = false; } } } } } instance oliver of movieClip 823 { onClipEvent (load) { movie = false; part = 0; xSpeed = 6; gravity = 0; scale = _xscale; state = 1; } onClipEvent (enterFrame) { if (_root.creature1.part == 6) { this._y = _root._y + 340; } if (part == 1) { if (_root.platforms.hitTest(_x, _y - 2, true)) { this._y -= 2; } if (_root.platforms.hitTest(_x, _y - 4, true)) { this._y -= 4; } if (_root.platforms.hitTest(_x, _y - 6, true)) { this._y -= 6; } if (_root.platforms.hitTest(_x, _y - 8, true)) { this._y -= 8; } if (_root.platforms.hitTest(_x, _y - 10, true)) { this._y -= 10; } if (_root.platforms.hitTest(_x, _y, true)) { gravity = 0; } else { ++gravity; this._y += gravity; } this.gotoAndStop(state); this._alpha = 100; if (this._x < _root._x + 100) { _xscale = -scale; state = 2; this._x += xSpeed; } else { state = 1; _root.movie.gotoAndStop(11); _root.movie.exit1 = true; part = 0; } } } } movieClip 1429 { instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance claw2 of movieClip 1327 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance claw1 of movieClip 1327 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance hitZone of movieClip 273 { onClipEvent (load) { deathAni = false; } onClipEvent (enterFrame) { if (_root.marty.hitTest(this) && _root.marty.hurt == false) { if (_root.healthBar.health <= 25) { _root.healthBar.health -= 25; deathAni = true; } if (_root.healthBar.health > 25 && _root.marty.active == true) { _root.healthBar.health -= 25; _root.marty.hurt = true; } } } } frame 24 { gotoAndPlay(16); } } movieClip 1431 { frame 1 { hitOver = false; } instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 24 { hitOver = true; stop(); } } movieClip 1432 { frame 1 { hitOver = false; } frame 1 { death = false; } instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 50 { stop(); death = true; } } movieClip 1434 { instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance mouth of movieClip 1424 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance mouth of movieClip 1424 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } frame 79 { gotoAndPlay(41); } } movieClip 1435 { instance mouth of movieClip 1424 { onClipEvent (enterFrame) { this.gotoAndStop(5); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(3); } } instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 283 { gotoAndPlay(243); } } movieClip 1436 { instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance mouth of movieClip 1424 { onClipEvent (enterFrame) { this.gotoAndStop(6); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 245 { _root.creature1.state = 1; } } movieClip 1437 { instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance mouth of movieClip 1424 { onClipEvent (enterFrame) { this.gotoAndStop(8); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } frame 157 { gotoAndPlay(132); } } movieClip 1438 { instance wrist2 of movieClip 1337 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance mouth of movieClip 1424 { onClipEvent (enterFrame) { this.gotoAndStop(4); } } instance eyes of movieClip 310 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == eyes) { ++time; } if (time >= maxTime) { state = 2; } if (time >= maxTime + 20) { state = 1; time = 0; } } } instance mouth of movieClip 1424 { onClipEvent (enterFrame) { this.gotoAndStop(84); } } frame 313 { _root.creature1.state = 1; } } movieClip 1439 { 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 creature1 of movieClip 1439 { onClipEvent (load) { mash = false; health = 100; topHeight = 300; xSpeed = 8; attack = false; retreat = false; active = false; ySpeed = 5; maxX = 1950; time = 0; movement = 1; state = 1; scale = _xscale; lockOn = false; hit = false; part = 0; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { if (health > 50) { if (retreat == false && attack == false) { if (lockOn == false) { if (movement <= 1) { _xscale = scale; state = 1; this._x -= xSpeed; if (this._x < _root.platforms._x + 850) { movement = 2; } if (_root.marty._x > this._x - 250 && _root.marty._x <= this._x) { lockOn = true; } } if (movement >= 2) { _xscale = -scale; state = 1; this._x += xSpeed; if (this._x > _root.platforms._x + maxX) { movement = 1; } if (_root.marty._x < this._x + 250 && _root.marty._x > this._x) { lockOn = true; } } } if (lockOn == true) { if (_root.marty._x < this._x) { _xscale = scale; this._x -= xSpeed; if (_root.marty._x > this._x - 250 && _root.marty._x <= this._x) { xSpeed = -8; attack = true; } else { state = 1; } } if (_root.marty._x > this._x) { _xscale = -scale; this._x += xSpeed; if (_root.marty._x < this._x + 250 && _root.marty._x > this._x) { xSpeed = 8; attack = true; } else { state = 1; } } } } if (attack == true) { this.spectral.mouth.gotoAndStop(2); this._x += xSpeed; state = 2; this._y += ySpeed; if (_root.platforms.hitTest(_x, _y, true)) { this.spectral.mouth.gotoAndStop(1); xSpeed = 8; retreat = true; } } if (retreat == true) { lockOn = false; attack = false; state = 1; this._y -= ySpeed; if (this._y <= _root._y + topHeight) { retreat = false; } } if (this.spectral.hitZone.deathAni == true) { stopAllSounds(); _root.marty.active = false; _root.marty.state = 5; _root.marty.part = 200; _root.marty.gravity = 0; _root.healthBar.health = 0; hit = false; attack = false; _root.music.gotoAndStop(7); part = 0; active = false; } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { time = 0; --health; hit = true; active = false; } if (_root.power.hitTest(this)) { time = 0; health -= 0.25; hit = true; active = false; } } if (health <= 50) { if (this._y > _root._y + 200) { state = 1; xSpeed = 8; --this._y; this.spectral.mouth.gotoAndStop(7); } if (this._y < _root._y + 210) { if (movement <= 1 && mash == false) { _xscale = scale; state = 1; this._x -= xSpeed; if (this._x < _root.platforms._x + 850) { movement = 2; } } if (movement >= 2 && mash == false) { _xscale = -scale; state = 1; this._x += xSpeed; if (this._x > _root.platforms._x + maxX) { movement = 1; } } if (mash == true) { } } } } if (active == false) { if (hit == true && health > 0) { this.spectral.mouth.gotoAndStop(2); state = 3; if (this.spectral.hitOver == true) { this.spectral.mouth.gotoAndStop(1); active = true; } } if (part == 1) { if (this._x < _root._x + 200) { this._xscale = -scale; this._x += xSpeed; } else { _root.movie.gotoAndStop(4); } } if (part == 2) { if (this._x > _root._x - 200) { this._x -= xSpeed; this._xscale = scale; } else { this._y = _root._y - 200; _root.topBar.hide = true; _root.bottomBar.hide = true; _root.marty.part = 102; _root.marty.active = true; part = 0; } } if (part == 3) { if (this._x > _root._x + 500) { _root.topBar.hide = false; _root.bottomBar.hide = false; this._x -= xSpeed; this._xscale = scale; } else { state = 6; _root.movie.gotoAndStop(5); part = 0; } } if (part == 4) { state = 7; _root.movie.gotoAndStop(6); part = 0; } if (part == 5) { _xscale = scale; } if (part == 6) { if (_root.marty._x > this._x) { _xscale = -scale; } else { _xscale = scale; } } if (part == 7) { if (this._y > _root._y - 100) { this._y -= 4; } else { this._alpha = 0; _root.oliver.part = 1; } } } } } movieClip 1440 { } movieClip 1441 { frame 1 { stop(); } frame 2 { stop(); } } instance creature2 of movieClip 1441 { onClipEvent (load) { xSpeed = 6; ySpeed = 6; active = false; arrive = false; state = 1; health = 1; scale = _xscale; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { this._x += xSpeed; this._y += ySpeed; if (this._alpha < 100) { this._alpha += 5; } if (arrive == true) { state = 1; this._x = _root.platforms._x + random(700) + 950; this._y = _root.platforms._y + random(200) + 100; ySpeed = 6; xSpeed = 6; health = 1; this._alpha = 0; arrive = false; } if (_root.platforms.hitTest(_x - 25, _y, true)) { xSpeed = 6; this._xscale = -scale; } if (_root.platforms.hitTest(_x + 25, _y, true)) { xSpeed = -6; this._xscale = scale; } if (_root.platforms.hitTest(_x, _y - 25, true)) { ySpeed = 6; } if (_root.platforms.hitTest(_x, _y + 25, true)) { ySpeed = -6; } if (_root.marty.hurt == false && _root.marty.punch == false && _root.marty.hitTest(this.spectral.spike)) { if (_root.marty.active == true && _root.healthBar.health <= 5 && this._alpha >= 100) { stopAllSounds(); _root.music.gotoAndStop(7); _root.marty.state = 5; _root.marty.active = false; _root.marty.gravity = 0; _root.healthBar.health = 0; active = false; } if (_root.marty.active == true && _root.healthBar.health > 5 && this._alpha >= 100) { _root.healthBar.health -= 10; _root.marty.hurt = true; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { --health; active = false; } if (_root.power.hitTest(this)) { --health; active = false; } } if (active == false && health < 1) { state = 2; ++ySpeed; this._y += ySpeed; if (this._y > _root._y + 600) { ySpeed = 0; arrive = true; active = true; } } } } instance creature3 of movieClip 1441 { onClipEvent (load) { xSpeed = 6; ySpeed = 6; active = false; arrive = false; state = 1; health = 1; scale = _xscale; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (active == true) { this._x += xSpeed; this._y += ySpeed; if (this._alpha < 100) { this._alpha += 5; } if (arrive == true) { state = 1; this._x = _root.platforms._x + random(700) + 950; this._y = _root.platforms._y + random(200) + 100; ySpeed = 6; xSpeed = 6; health = 1; this._alpha = 0; arrive = false; } if (_root.platforms.hitTest(_x - 25, _y, true)) { xSpeed = 6; this._xscale = -scale; } if (_root.platforms.hitTest(_x + 25, _y, true)) { xSpeed = -6; this._xscale = scale; } if (_root.platforms.hitTest(_x, _y - 25, true)) { ySpeed = 6; } if (_root.platforms.hitTest(_x, _y + 25, true)) { ySpeed = -6; } if (_root.marty.hurt == false && _root.marty.punch == false && _root.marty.hitTest(this.spectral.spike)) { if (_root.marty.active == true && _root.healthBar.health <= 5 && this._alpha >= 100) { stopAllSounds(); _root.music.gotoAndStop(7); _root.marty.state = 5; _root.marty.active = false; _root.marty.gravity = 0; _root.healthBar.health = 0; active = false; } if (_root.marty.active == true && _root.healthBar.health > 5 && this._alpha >= 100) { _root.healthBar.health -= 10; _root.marty.hurt = true; } } if (_root.marty.upperBody.upperBody.hitZone.hitTest(this)) { --health; active = false; } if (_root.power.hitTest(this)) { --health; active = false; } } if (active == false && health < 1) { state = 2; ++ySpeed; this._y += ySpeed; if (this._y > _root._y + 600) { ySpeed = 0; arrive = true; active = true; } } } } movieClip 1443 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1445 { instance platformsAdd of movieClip 1443 { onClipEvent (load) { this._alpha = 0; this.gotoAndStop(2); } } } movieClip 1448 { instance light of movieClip 1203 { onClipEvent (load) { this._x = _root.frontal._x - 500; active = false; } onClipEvent (enterFrame) { if (_root.power.active == true) { active = true; } else { active = false; } if (active == true) { this._x = -1 * _root.frontal._x + _root.power._x; this._y = -1 * _root.frontal._y + _root.power._y; } else { this._x = _root.frontal._x - 500; } } } instance light2 of movieClip 1203 { onClipEvent (load) { this._x = _root.frontal._x - 500; active = false; } onClipEvent (enterFrame) { if (_root.marty.brakPower == true) { active = true; } else { active = false; } if (active == true) { this._x = -1 * _root.frontal._x + _root.marty._x; this._y = -1 * _root.frontal._y + _root.marty._y; } else { this._x = _root.frontal._x - 500; } } } } movieClip 1455 { frame 182 { _root.marty.active = true; _root.topBar.hide = true; _root.bottomBar.hide = true; _root.movie.gotoAndStop(1); } } movieClip 1461 { frame 152 { stop(); } } movieClip 1472 { frame 1 { _root.creature1.state = 9; } frame 332 { stop(); _root.creature1.part = 2; } } movieClip 1482 { frame 343 { _root.creature1.part = 4; stop(); } } movieClip 1491 { frame 240 { stopAllSounds(); _root.music.gotoAndStop(8); _root.bossHealth.entrance = true; _root.movie.gotoAndStop(1); } } movieClip 1502 { frame 85 { _root.creature1.state = 8; _root.creature1.spectral.mouth.gotoAndStop(8); } frame 244 { stop(); _root.creature1.state = 1; _root.creature1.part = 6; _root.movie.gotoAndStop(10); } } movieClip 1505 { frame 1 { _root.creature1.spectral.mouth.gotoAndStop(9); } frame 105 { _root.creature1.part = 7; } frame 140 { _root.oliver.part = 1; _root.movie.gotoAndStop(1); } } movieClip 1508 { frame 16 { _root.oliver.oliver.mouth.gotoAndStop(9); _root.movie.exit1 = true; } frame 165 { _root.fader._alpha = 0; _root.fader.fadeIn = true; _root.fader.fadeOut = false; if (_root.fader._alpha >= 100) { _root.gotoAndStop(16); } stop(); } } movieClip 1509 { 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(); } } instance movie of movieClip 1509 { onClipEvent (load) { levelChange = 16; exit1 = false; } onClipEvent (enterFrame) { if (exit1 == true) { if (_root.fader._alpha >= 100) { stopAllSounds(); _root.music.gotoAndStop(9); _root.gotoAndStop(levelChange); } } } } movieClip 1512 { } movieClip 1513 { instance cloud of movieClip 25 { onClipEvent (load) { continued = true; maxCount = 50; count = 0; timer = 0; maxTime = random(35) + 5; alphaSpeed = 3; size = random(45) + 25; yPos = 0; xPos = 0; alphaMax = random(75) + 25; yMove = random(4) + 5; xMove = random(4) - 2; xrotate = random(8) + 1; if (this._name == 'cloud') { this._y = _root._y; this._x = _root._x; } if (this._name != 'cloud') { this._x = _root.xPos; this._y = _root.yPos; this._xscale = size; this._yscale = size; this._alpha = alphaMax; } } onClipEvent (enterFrame) { if (this._name != 'cloud') { this._y -= yMove; this._x += xMove; } if (this._y <= _root._y - 250) { this.removeMovieClip(); } if (this._name == 'cloud') { ++timer; } if (this._name == 'cloud' && timer >= maxTime) { ++count; this.duplicateMovieClip('cloud' + count, count); maxTime = random(35) + 5; timer = 0; } } } } movieClip 1514 { } movieClip 1516 { } instance bossHealth of movieClip 1516 { onClipEvent (load) { health = 100; entrance = false; time = 0; } onClipEvent (enterFrame) { health = _root.creature1.health; if (entrance == true) { if (this._y < _root._y + 80) { ++this._y; } } else { if (this._y > _root._y - 95) { --this._y; } } if (health > 100) { health = 100; } if (health < 101 && health > -1) { _root.bossHealth.bar.bar._yscale = health; if (_root.marty._y - 75 < this._y + 50) { this._alpha = 25; } else { this._alpha = 100; } } if (health <= 0 && time == 0) { this._x = _root._x - 150; this._y = _root._y - 150; this._alpha = 0; stopAllSounds(); _root.creature1.part = 5; _root.creature1.active = false; _root.creature1.state = 1; _root.creature2.active = false; _root.creature3.active = false; _root.creature2._x = _root._x - 200; _root.creature3._x = _root._x - 200; _root.marty.active = false; _root.marty.gravity = 0; _root.marty.part = 202; _root.movie.gotoAndStop(9); _root.music.gotoAndStop(4); _root.platforms.platformsAdd.gotoAndStop(2); _root.topBar.hide = false; _root.bottomBar.hide = false; ++time; } } } frame 16 { stop(); } movieClip 1521 { } instance of movieClip 1521 { onClipEvent (load) { this.gotoAndStop(1); } } instance oliver of movieClip 823 { onClipEvent (load) { part = 0; xSpeed = 8; scale = _xscale; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); } } movieClip 1531 { } instance marty of movieClip 317 { onClipEvent (load) { _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; part = 1; xSpeed = 8; scale = _xscale; time = 0; maxTime = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (part == 1) { maxTime = 150; ++time; if (time >= maxTime) { if (_root.oliver._x > _root._x + 470) { _root.oliver.state = 2; _root.oliver._x -= _root.oliver.xSpeed; } else { _root.oliver.state = 1; this.upperBody.upperBody.eyes.gotoAndStop(5); this.upperBody.upperBody.mouth.gotoAndStop(5); _root.movie.gotoAndStop(2); part = 0; } } } if (part == 2) { if (_root.oliver._x <= _root._x + 750) { _root.oliver.state = 2; _root.oliver._xscale = -_xscale; _root.oliver._x += _root.oliver.xSpeed; } else { this.upperBody.upperBody.eyes.gotoAndStop(1); this.upperBody.upperBody.mouth.gotoAndStop(1); part = 3; } } if (part == 3) { if (_root.marty._x > _root._x + 175) { state = 2; _xscale = -scale; this._x -= xSpeed / 2; time = 0; } else { if (time <= 2) { _root.sfx.gotoAndPlay(2); } _root.dust.active1 = true; state = 1; maxTime = 90; ++time; if (time >= maxTime) { _root.sfx.gotoAndStop(71); _root.platforms.gotoAndStop(2); _root.dust.active1 = false; part = 4; } } } if (part == 4) { _xscale = scale; if (_root.gort._x >= _root._x + 450) { _root.gort._x -= 6; } else { _root.movie.gotoAndStop(3); part = 4.2; } } if (part == 5) { state = 12; ++time; maxTime = 30; if (time >= maxTime) { part = 6; } } if (part == 4.2) { if (_root.marty._x <= _root._x + 350) { state = 2; this._x += xSpeed; } else { state = 1; time = 0; } } if (part == 6) { if (_root.marty._x > _root._x + 175) { state = 2; _xscale = -scale; this._x -= xSpeed / 2; } else { state = 1; time = 0; } } if (part == 7) { ++time; maxTime = 60; _xscale = scale; this.upperBody.upperBody.eyes.gotoAndStop(3); this.upperBody.upperBody.mouth.gotoAndStop(2); if (time >= maxTime) { part = 8; } } if (part == 8) { if (_root.marty._x <= _root._x + 900) { state = 2; this._x += xSpeed; _root.gort._xscale = -scale; _root.gort._x += xSpeed / 2; } else { _root.fader._alpha = 0; _root.fader.fadeIn = true; _root.fader.fadeOut = false; part = 9; } } if (part == 9) { if (_root.fader._alpha >= 100) { stopAllSounds(); _root.gotoAndStop(17); } } } } movieClip 1541 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1544 { } movieClip 1547 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1549 { } movieClip 1551 { } movieClip 1553 { } movieClip 1554 { instance eyes of movieClip 1553 { onClipEvent (load) { maxTime = random(100) + 65; time = 0; state = 1; } onClipEvent (enterFrame) { this.gotoAndStop(state); if (this.name == 'eyes') { ++time; } if (time >= maxTime) { this._yscale -= 20; } if (this._yscale < 10) { this._yscale = 100; time = 0; } } } } movieClip 1555 { } movieClip 1556 { } movieClip 1557 { instance of movieClip 1547 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } frame 279 { stop(); } instance of movieClip 1547 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } } movieClip 1558 { instance of movieClip 1547 { onClipEvent (enterFrame) { this.gotoAndStop(2); } } instance of movieClip 1547 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } frame 165 { stop(); } instance of movieClip 1547 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } } movieClip 1559 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 1562 { frame 1 { stop(); } frame 70 { _root.sfx.gotoAndPlay(2); } frame 71 { stop(); } } movieClip 1565 { instance candle of movieClip 535 { onClipEvent (load) { time = 0; maxTime = random(7) + 1; } onClipEvent (enterFrame) { ++time; if (time >= maxTime) { this._alpha = random(50) + 50; maxTime = random(7) + 1; time = 0; } } } } movieClip 1566 { instance cloud of movieClip 1144 { onClipEvent (load) { maxCount = 50; count = 0; timer = 0; maxTime = random(30) + 30; alphaSpeed = 3; size = random(100) + 35; xPos = random(600) + 0; yPos = random(60) - 15; alphaMax = random(25) + 25; xMove = random(2) - 1; yMove = random(2) - 1; xrotate = random(1) + 0; if (this._name == 'cloud') { this._alpha = 0; } if (this._name != 'cloud') { this.gotoAndStop(random(2) + 1); this._x = xPos; this._y = yPos; this._xscale = size; this._yscale = size; this._alpha = 1; } } onClipEvent (enterFrame) { if (_root.marty._x >= _root.platforms._x) { if (this._name != 'cloud') { this._alpha += alphaSpeed; this._x += xMove; this._y += yMove; this._rotation += xrotate; if (this._alpha >= alphaMax) { alphaSpeed = -3; } } } if (this._alpha <= 0) { --_root.frontal.scloud.count; this.removeMovieClip(); } if (this._name == 'cloud') { ++timer; } if (this._name == 'cloud' && timer >= maxTime) { ++count; this.duplicateMovieClip('cloud' + count, count); maxTime = random(30) + 30; } } } } instance dust of movieClip 1144 { onClipEvent (load) { active1 = false; maxCount = 50; count = 0; timer = 0; maxTime = random(30) + 30; alphaSpeed = 3; size = random(25) + 35; xPos = random(50) + 650; yPos = random(150) + 250; alphaMax = random(50) + 50; xMove = random(2) - 1; yMove = random(2) - 1; xrotate = random(1) + 0; if (this._name == 'dust') { this._alpha = 0; } if (this._name != 'dust') { this.gotoAndStop(random(2) + 1); this._x = _root._x + xPos; this._y = _root._y + yPos; this._xscale = size; this._yscale = size; this._alpha = 1; } } onClipEvent (enterFrame) { if (this._name != 'dust') { this._alpha += alphaSpeed; this._x += xMove; this._y += yMove; this._rotation += xrotate; if (this._alpha >= alphaMax) { alphaSpeed = -3; } if (this._alpha <= 0) { --_root.frontal.scloud.count; this.removeMovieClip(); } } if (active1 == true) { if (this._name == 'dust') { ++timer; } if (this._name == 'dust' && timer >= maxTime) { ++count; this.duplicateMovieClip('dust' + count, count); maxTime = random(8) + 1; } } } } movieClip 1568 { instance light2 of movieClip 1203 { onClipEvent (enterFrame) { this._alpha = _root.light.candle._alpha; } } } movieClip 1590 { frame 5 { _root.oliver.state = 7; } frame 435 { } frame 435 { _root.oliver.state = 1; } frame 480 { _root.oliver._xscale = -_xscale; } frame 664 { _root.oliver._xscale = _xscale; } frame 800 { stop(); _root.marty.part = 2; } } movieClip 1614 { frame 2 { _root.gort.gotoAndStop(2); } frame 315 { _root.marty.part = 5; } frame 385 { _root.gort.gotoAndStop(3); } frame 575 { _root.marty.part = 7; _root.gort.gotoAndStop(1); stop(); } } movieClip 1615 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } button 1616 { on (press) { stopAllSounds(); _root.gotoAndStop(17); } } frame 17 { _root.music.gotoAndStop(10); } movieClip 1618 { } movieClip 1620 { } movieClip 1621 { } instance of movieClip 1621 { onClipEvent (load) { _root.fader._alpha = 100; _root.fader.fadeIn = false; _root.fader.fadeOut = true; } onClipEvent (enterFrame) { _root.music.gotoAndStop(10); if (this._y + 2595 >= _root._y + 350) { --this._y; } } } movieClip 1624 { } instance effect of movieClip 1624 { onClipEvent (load) { xSpeed = random(10) - 5; xPos = random(650) + 25; yPos = random(2); count = 0; rotate = random(10) + 4; size = random(50) + 50; alphaPart = 1; if (this._name != 'effect') { if (yPos == 0) { this._y = _root._y; ySpeed = random(2); } if (yPos == 1) { this._y = _root._y + 500; ySpeed = random(2) - 1; } this._alpha = 1; this._x = _root._x + xPos; this._xscale = size; this._yscale = size; } else { this._x = -150; } } onClipEvent (enterFrame) { ++time; if (this._name == 'effect' && time >= maxTime) { ++count; this.duplicateMovieClip('effect' + count, count); maxTime = random(2); time = 0; } if (this._name != 'effect') { this._rotation += rotate; this._x += xSpeed; this._y += ySpeed; if (alphaPart == 1) { if (this._alpha < 100) { this._alpha += 2; } else { alphaPart = 2; } } if (alphaPart == 2) { if (this._alpha >= 0) { this._alpha -= 2; } } if (this._alpha <= 0) { this.removeMovieClip(); } } } } button 1625 { on (press) { stopAllSounds(); _root.gotoAndStop(2); } }




http://swfchan.com/22/108083/info.shtml
Created: 10/8 -2019 11:43:50 Last modified: 10/8 -2019 11:43:50 Server time: 14/11 -2024 17:19:07