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

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

TeddysExcellentAdventure.swf

This is the info page for
Flash #106753

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


ActionScript [AS1/AS2]
Combined Code
movieClip 34 { } movieClip 35 rain_id { frame 404 { stop(); } } movieClip 37 { } movieClip 39 { } movieClip 41 { } movieClip 43 { } movieClip 45 { } movieClip 47 { } movieClip 49 { } movieClip 51 { } movieClip 52 { } movieClip 54 { } movieClip 55 { frame 10 { _root.player_mc.gotoAndStop(1); } } movieClip 56 player_ship_mc { frame 1 { stop(); } frame 2 { stop(); } } frame 1 { stop(); Playtomic.Log.View(7725, '8df07228425475c', _root._url); } movieClip 61 { } movieClip 62 { } movieClip 65 { } button 69 { on (release) { getURL('http://www.playkidsgames.com', '_blank'); } } movieClip 73 { } movieClip 74 { } movieClip 76 { } movieClip 79 { } movieClip 80 { } movieClip 83 { } movieClip 84 { instance of movieClip 83 { onClipEvent (release) { getURL('http://www.playkidsgames.com/', '_blank'); } } } // unknown tag 88 length 62 movieClip 87 { } movieClip 91 { } movieClip 92 { } movieClip 95 { } movieClip 96 { } movieClip 97 { frame 1 { function timerHandler() { if (!loadingComplete) { var v4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v4; if (v4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; var v3 = 0; for (;;) { if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break; advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum -= FRAME_TIME; v3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } frame 170 { startMovie(); } } movieClip 99 { } movieClip 100 { } movieClip 1461 __Packages.Playtomic.LogRequest { #initclip if (!_global.Playtomic) { _global.Playtomic = new Object(); } if (!_global.Playtomic.LogRequest) { var v1 = function () {}; Playtomic.LogRequest = v1; var v2 = v1.prototype; v2.Queue = function (data) { ++this.Pieces; this.Data += ((this.Data == '') ? '' : '~') + data; if (this.Pieces == 8 || this.Data.length > 300) { this.Pieces = 0; this.Ready = true; } }; v2.Send = function () { var v3 = function (success) { if (this.Data.indexOf('v/') == 0 || this.Data.indexOf('~v/') > -1) { Playtomic.Log.IncreaseViews(); } if (this.Data.indexOf('p/') == 0 || this.Data.indexOf('~p/') > -1) { Playtomic.Log.IncreasePlays(); } }; var v2 = new LoadVars(); v2.sendAndLoad('http://g' + Playtomic.Log.GUID + '.api.playtomic.com/Tracker/q.aspx?swfid=' + Playtomic.Log.SWFID + '&q=' + this.Data + '&url=' + Playtomic.Log.SourceUrl + '&' + Math.random() + 'z', v3, 'POST'); }; v2.Data = ''; v2.Ready = false; ASSetPropFlags(Playtomic.LogRequest.prototype, null, 1); } #endinitclip } movieClip 1462 __Packages.Playtomic.Log { #initclip if (!_global.Playtomic) { _global.Playtomic = new Object(); } if (!_global.Playtomic.Log) { var v1 = function () {}; Playtomic.Log = v1; var v2 = v1.prototype; v1.View = function (swfid, guid, defaulturl) { if (swfid == undefined) { swfid = 0; } if (guid == undefined) { guid = ''; } if (defaulturl == undefined) { defaulturl = ''; } if (Playtomic.Log.SWFID > 0) { return undefined; } Playtomic.Log.SWFID = swfid; Playtomic.Log.GUID = guid; Playtomic.Log.Enabled = true; if (Playtomic.Log.SWFID == 0 || Playtomic.Log.GUID == '') { Playtomic.Log.Enabled = false; return undefined; } if (defaulturl.indexOf('http://') != 0) { Playtomic.Log.Enabled = false; return undefined; } Playtomic.Log.SourceUrl = defaulturl; if (Playtomic.Log.SourceUrl == null || Playtomic.Log.SourceUrl == '' || Playtomic.Log.SourceUrl.indexOf('https://') == 0) { Playtomic.Log.Enabled = false; return undefined; } Playtomic.Log.Cookie = SharedObject.getLocal('playtomic'); var v5 = Playtomic.Log.GetCookie('views'); Playtomic.Log.Send('v/' + v5, true); _global.setTimeout(Playtomic.Log.PingServer, 60000); }; v1.ForceSend = function () { if (Playtomic.Log.Request == null) { return undefined; } Playtomic.Log.Request.Send(); Playtomic.Log.Request = new Playtomic.LogRequest(); }; v1.Play = function () { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.LevelCounters = new Array(); Playtomic.Log.LevelAverages = new Array(); Playtomic.Log.LevelRangeds = new Array(); Playtomic.Log.Send('p/' + (Playtomic.Log.Plays + 1), true); }; v1.CustomMetric = function (name, group, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (group == null || group == undefined) { group = ''; } if (unique == null || unique == undefined) { unique = false; } if (unique) { if (Playtomic.Log.Contains(Playtomic.Log.Customs, name)) { return undefined; } Playtomic.Log.Customs.push(name); } Playtomic.Log.Send('c/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(group)); }; v1.Link = function (url, name, group, unique, total, fail) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('l/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(group) + '/' + Playtomic.Log.Clean(url) + '/' + unique + '/' + total + '/' + fail); }; v1.LevelCounterMetric = function (name, level, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (unique) { var v1 = name + '.' + level.toString(); if (Playtomic.Log.Contains(Playtomic.Log.LevelCounters, v1)) { return undefined; } Playtomic.Log.LevelCounters.push(v1); } Playtomic.Log.Send('lc/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(level)); }; v1.LevelRangedMetric = function (name, level, value, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (unique) { var v1 = name + '.' + level.toString(); if (Playtomic.Log.Contains(Playtomic.Log.LevelRangeds, v1)) { return undefined; } Playtomic.Log.LevelRangeds.push(v1); Playtomic.Log.SaveCookie('lr_' + name, 1); } Playtomic.Log.Send('lr/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(level) + '/' + value); }; v1.LevelAverageMetric = function (name, level, value, unique) { if (!Playtomic.Log.Enabled) { return undefined; } if (unique) { var v1 = name + '.' + level.toString(); if (Playtomic.Log.Contains(Playtomic.Log.LevelAverages, v1)) { return undefined; } Playtomic.Log.LevelAverages.push(v1); } Playtomic.Log.Send('la/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(level) + '/' + value); }; v1.Contains = function (arr, key) { var v1 = arr.length - 1; while (v1 > -1) { if (arr[v1] == key) { return true; } --v1; } return false; }; v1.Heatmap = function (metric, heatmap, x, y) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('h/' + Playtomic.Log.Clean(metric) + '/' + Playtomic.Log.Clean(heatmap) + '/' + x + '/' + y); }; v1.Funnel = function (name, step, stepnum) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('f/' + Playtomic.Log.Clean(name) + '/' + Playtomic.Log.Clean(step) + '/' + stepnum); }; v1.PlayerLevelStart = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('pls/' + levelid); }; v1.PlayerLevelWin = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plw/' + levelid); }; v1.PlayerLevelQuit = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plq/' + levelid); }; v1.PlayerLevelRetry = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plr/' + levelid); }; v1.PlayerLevelFlag = function (levelid) { if (!Playtomic.Log.Enabled) { return undefined; } Playtomic.Log.Send('plf/' + levelid); }; v1.PingServer = function () { if (!Playtomic.Log.Enabled) { return undefined; } ++Playtomic.Log.Pings; Playtomic.Log.Send('t/' + (Playtomic.Log.FirstPing ? 'y' : 'n') + '/' + Playtomic.Log.Pings, true); if (Playtomic.Log.FirstPing) { Playtomic.Log.FirstPing = false; setInterval(Playtomic.Log.PingServer, 60000); } }; v1.Send = function (s, view) { if (view == undefined) { view = false; } Playtomic.Log.Request.Queue(s); if (Playtomic.Log.Request.Ready || view || !Playtomic.Log.Queue) { Playtomic.Log.Request.Send(); Playtomic.Log.Request = new Playtomic.LogRequest(); } }; v1.GetCookie = function (n) { if (Playtomic.Log.Cookie.data[n] == undefined) { return 0; } else { return parseInt(Playtomic.Log.Cookie.data[n]); } }; v1.SaveCookie = function (n, v) { Playtomic.Log.Cookie.data[n] = v.toString(); Playtomic.Log.Cookie.flush(); }; v1.Clean = function (s) { while (s.indexOf('/') > -1) { s = Playtomic.Log.Replace(s, '/', '\\'); } while (s.indexOf('~') > -1) { s = Playtomic.Log.Replace(s, '~', '-'); } return escape(s); }; v1.Replace = function (str, find, replace) { return (str.split(find)).join(replace); }; v1.IncreaseViews = function () { var v1 = Playtomic.Log.GetCookie('views'); ++v1; Playtomic.Log.SaveCookie('views', v1); }; v1.IncreasePlays = function () { ++Playtomic.Log.Plays; }; v1.Enabled = false; v1.Queue = true; v1.SWFID = 0; v1.GUID = ''; v1.Request = new Playtomic.LogRequest(); v1.FirstPing = true; v1.Pings = 0; v1.Plays = 0; v1.HighestGoal = 0; v1.Customs = new Array(); v1.LevelCounters = new Array(); v1.LevelAverages = new Array(); v1.LevelRangeds = new Array(); ASSetPropFlags(Playtomic.Log.prototype, null, 1); } #endinitclip } frame 2 { stop(); Music2 = new Sound(this); Music2.attachSound('Track2'); if (!_root.mute) { _root.Music2.start(0, 1); } Music2.onSoundComplete = function () { Music2.start(0, 0); }; } movieClip 103 { } movieClip 107 { } movieClip 108 { } movieClip 109 { } movieClip 111 { } button 112 { on (release) { _root.nextFrame(); } } movieClip 114 { } button 115 { on (release) { getURL('http://www.playkidsgames.com', '_blank'); } } movieClip 120 { } instance of movieClip 120 { onClipEvent (release) { getURL('http://www.artjimp.com', '_blank'); } } movieClip 124 { } movieClip 126 { } movieClip 128 { } movieClip 130 { } movieClip 132 { } movieClip 134 { } movieClip 136 { } movieClip 138 { } movieClip 140 { } movieClip 142 { } movieClip 144 { } instance of movieClip 144 { onClipEvent (release) { getURL('https://twitter.com/gazsmith09', '_blank'); } } movieClip 145 { frame 72 { stop(); } } frame 3 { _root.nextFrame(); } frame 4 { stop(); } movieClip 148 { } movieClip 150 { } movieClip 154 { } movieClip 155 { } movieClip 159 { } movieClip 162 { } movieClip 163 { } // unknown tag 88 length 66 movieClip 167 { } movieClip 169 { } button 170 { on (press) { _root.intro.nextFrame(); } } movieClip 175 { } movieClip 181 { } movieClip 182 { } movieClip 184 { } // unknown tag 88 length 96 movieClip 191 { } movieClip 193 { } movieClip 194 { } movieClip 202 { } movieClip 203 { } movieClip 206 { } movieClip 207 { } movieClip 211 { } button 213 { on (press) { _root.nextFrame(); } } movieClip 214 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } frame 5 { function mySiteLink() { getURL('http://www.artjimp.com', '_blank'); } function mySiteLink2() { getURL('https://twitter.com/gazsmith09', '_blank'); } var rightClick = new ContextMenu(); rightClick.hideBuiltInItems(); _root.menu = rightClick; var mySiteLink = new ContextMenuItem('ArtJimp', mySiteLink); rightClick.customItems.push(mySiteLink); var mySiteLink2 = new ContextMenuItem('GazSmithGames', mySiteLink2); rightClick.customItems.push(mySiteLink2); } frame 5 { Music1 = new Sound(this); Music1.attachSound('Track1'); Music3 = new Sound(this); Music3.attachSound('Track3'); Music4 = new Sound(this); Music4.attachSound('Track4'); Music5 = new Sound(this); Music5.attachSound('Track5'); ButterflyNoise = new Sound(this); ButterflyNoise.attachSound('ButterflySound'); Bell1Noise = new Sound(this); Bell1Noise.attachSound('Bell1Sound'); Bell2Noise = new Sound(this); Bell2Noise.attachSound('Bell2Sound'); Bell3Noise = new Sound(this); Bell3Noise.attachSound('Bell3Sound'); FishRiseNoise = new Sound(this); FishRiseNoise.attachSound('FishRiseSound'); SplashNoise = new Sound(this); SplashNoise.attachSound('SplashSound'); SwitchNoise = new Sound(this); SwitchNoise.attachSound('SwitchSound'); StatueNoise = new Sound(this); StatueNoise.attachSound('StatueSound'); FlapNoise = new Sound(this); FlapNoise.attachSound('FlapSound'); ReelNoise = new Sound(this); ReelNoise.attachSound('ReelSound'); FreeOwlNoise = new Sound(this); FreeOwlNoise.attachSound('FreeOwlSound'); MushroomNoise = new Sound(this); MushroomNoise.attachSound('MushroomSound'); MotorNoise = new Sound(this); MotorNoise.attachSound('MotorSound'); W1Noise = new Sound(this); W1Noise.attachSound('Whoosh1Sound'); W2Noise = new Sound(this); W2Noise.attachSound('Whoosh2Sound'); SolvePuzzleNoise = new Sound(this); SolvePuzzleNoise.attachSound('SolvePuzzleSound'); WoodNoise = new Sound(this); WoodNoise.attachSound('WoodSound'); StoneClickNoise = new Sound(this); StoneClickNoise.attachSound('StoneClickSound'); CrumpleNoise = new Sound(this); CrumpleNoise.attachSound('CrumpleSound'); LighteningNoise = new Sound(this); LighteningNoise.attachSound('LighteningSound'); Lightening2Noise = new Sound(this); Lightening2Noise.attachSound('Lightening2Sound'); HootNoise = new Sound(this); HootNoise.attachSound('HootSound'); BeeNoise = new Sound(this); BeeNoise.attachSound('BeeSound'); BounceNoise = new Sound(this); BounceNoise.attachSound('BounceSound'); PluckNoise = new Sound(this); PluckNoise.attachSound('PluckSound'); FallNoise = new Sound(this); FallNoise.attachSound('FallSound'); var vol = 100; var fadedOut = false; if (!_root.mute) { if (!_root.fadedOut) { _root.onEnterFrame = function () { vol -= 5; Music2.setVolume(vol); if (vol < 5) { _root.Music2.stop(); _root.Music1.start(0, 1); Music1.setVolume(100); delete onEnterFrame; _root.fadedOut = true; } }; } } Music1.onSoundComplete = function () { Music1.start(0, 0); }; } frame 5 { _root.pausedd = true; _root.char._visible = false; } frame 5 { stop(); } movieClip 217 { } movieClip 218 { } instance background of movieClip 218 { onClipEvent (enterFrame) { this._x = _root.vcam._x + 200; } } movieClip 221 { } movieClip 223 { } movieClip 225 { } movieClip 228 { } movieClip 229 { } movieClip 230 { } movieClip 233 { } movieClip 236 { } movieClip 237 { } movieClip 240 { } movieClip 241 { } movieClip 244 { } movieClip 247 { } movieClip 250 { } movieClip 253 { } movieClip 255 { } movieClip 256 { } movieClip 257 { } movieClip 258 { } movieClip 259 { } movieClip 260 { } movieClip 261 { } movieClip 262 { frame 1 { stop(); } instance of movieClip 257 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { this._parent.gotoAndStop(2); } } } frame 2 { stop(); if (!_root.mute) { _root.ButterflyNoise.start(0, 1); } } instance of movieClip 258 { onClipEvent (enterFrame) { rnum = random(5) + 0.5; rrnum = random(1) + 0.1; this._y -= rnum; this._x -= rrnum; } } instance of movieClip 259 { onClipEvent (enterFrame) { rnum = random(5) + 0.5; rrnum = random(1) + 0.1; this._y -= rnum; this._x -= rrnum; } } instance of movieClip 260 { onClipEvent (enterFrame) { rnum = random(5) + 0.5; rrnum = random(1) + 0.1; this._y -= rnum; this._x -= rrnum; } } instance of movieClip 261 { onClipEvent (enterFrame) { rnum = random(5) + 0.5; rrnum = random(1) + 0.1; this._y -= rnum; this._x -= rrnum; } } } movieClip 265 { } movieClip 266 { } movieClip 268 { } movieClip 271 { } movieClip 273 { } movieClip 276 { } movieClip 278 { } movieClip 281 { } movieClip 283 { } movieClip 286 { } movieClip 288 { } movieClip 289 { frame 27 { _root.pausedd = false; _root.char._visible = true; } frame 28 { stop(); } frame 75 { _root.pausedd = false; _root.char._visible = true; } } movieClip 291 { } movieClip 292 { } movieClip 293 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 306 { } movieClip 307 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 314 { } movieClip 315 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 347 { } movieClip 348 { } movieClip 349 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 353 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 354 { } movieClip 358 { } movieClip 362 { } movieClip 363 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 364 { frame 1 { stop(); } } movieClip 366 { frame 1 { play(); } frame 11 { stop(); } } movieClip 368 { frame 6 { _root.recovering = false; _root.char.gotoAndStop(1); } } movieClip 371 { frame 1 { play(); } frame 9 { _root.slowdown = false; _root.char.gotoAndStop(1); } } movieClip 372 { 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(); } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } movieClip 374 { } movieClip 375 { } movieClip 378 { } movieClip 380 { } movieClip 383 { } movieClip 385 { } movieClip 387 { } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 389 { } movieClip 390 { } movieClip 392 { } movieClip 394 { } movieClip 396 { } movieClip 399 { } movieClip 401 { } button 406 { on (press) { if (!_root.mute) { _root.mute = true; stopAllSounds(); } else { if (_root._currentframe <= 10) { _root.Music1.start(0, 1); _root.Music1.setVolume(100); _root.mute = false; } else { if (_root._currentframe <= 16) { _root.Music2.start(0, 1); _root.Music2.setVolume(100); _root.mute = false; } else { if (_root._currentframe <= 20) { _root.Music3.start(0, 1); _root.Music3.setVolume(100); _root.mute = false; } else { if (_root._currentframe <= 24) { _root.Music4.start(0, 1); _root.Music4.setVolume(100); _root.mute = false; } else { if (_root._currentframe <= 32) { _root.Music5.start(0, 1); _root.Music5.setVolume(100); _root.mute = false; } else { if (_root._currentframe <= 35) { _root.Music1.start(0, 1); _root.Music1.setVolume(100); _root.mute = false; } else { if (_root._currentframe <= 37) { _root.Music2.start(0, 1); _root.Music2.setVolume(100); _root.mute = false; } } } } } } } } } } button 411 { on (press) { if (_quality == 'HIGH') { _quality = 'MEDIUM'; } else { if (_quality == 'MEDIUM') { _quality = 'LOW'; } else { if (_quality == 'LOW') { _quality = 'HIGH'; } } } } } button 415 { on (release) { nextFrame(); } } movieClip 419 { } movieClip 421 { } movieClip 422 { } button 423 { on (release) { gotoAndStop(1); } } button 424 { on (release) { stopAllSounds(); _root.gotoAndStop('titlescreen'); } } movieClip 425 { frame 1 { stop(); } } movieClip 426 { } instance overlay of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } movieClip 429 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } parentColor.setTransform(camColor.getTransform()); this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= -1033 && _root.char._x <= 1200) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } movieClip 432 { } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 437 { } movieClip 438 { } movieClip 440 { } movieClip 441 { } movieClip 444 { } movieClip 468 { } movieClip 469 { } movieClip 470 { frame 255 { stop(); } } instance tut1 of movieClip 470 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } movieClip 474 { } movieClip 479 { frame 1 { stop(); } frame 14 { _root.nextFrame(); } frame 15 { stop(); } frame 16 { play(); } } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 6 { nextFrame(); } frame 7 { _root.trans.gotoAndPlay(16); } movieClip 482 { } movieClip 484 { } movieClip 486 { } movieClip 487 { } movieClip 490 { } movieClip 491 { } movieClip 494 { } movieClip 495 { } movieClip 497 { } movieClip 500 { } movieClip 501 { frame 1 { _root.lift = 'down'; stop(); } frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 100 { stop(); _root.lift = 'up'; } frame 101 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } } instance lift of movieClip 501 { onClipEvent (enterFrame) { if (_root.pressedd == true) { this.play(); } } } movieClip 503 { } button 505 { on (release) { if (_root.lift == 'down') { _root.pressedd = true; _root.switchh.play(); _root.lift.play(); } } } button 506 { on (press) { if (_root.lift == 'up') { _root.switchh.play(); _root.lift.play(); _root.pressedd = true; } } } movieClip 507 { frame 1 { stop(); _root.pressedd = false; } frame 2 { if (!_root.mute) { _root.SwitchNoise.start(0, 1); } } frame 15 { stop(); _root.pressedd = false; } frame 16 { if (!_root.mute) { _root.SwitchNoise.start(0, 1); } } } movieClip 510 { } movieClip 512 { } movieClip 514 { frame 1 { stop(); } frame 100 { stop(); } } movieClip 515 { instance of movieClip 514 { onClipEvent (enterFrame) { if (_root.pressedd == true) { this.play(); } } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } instance overlay of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } movieClip 517 { } movieClip 518 { } movieClip 519 { } movieClip 520 { frame 255 { stop(); } } frame 8 { nextFrame(); } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 9 { _root.trans.gotoAndPlay(16); } instance background of movieClip 218 { onClipEvent (enterFrame) { this._x = _root.vcam._x + 200; } } movieClip 522 { } movieClip 526 { } movieClip 528 { } movieClip 531 { } movieClip 532 { } movieClip 535 { } movieClip 538 { } movieClip 540 { } movieClip 543 { } movieClip 545 { } movieClip 547 { } instance of movieClip 547 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 549 { } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } movieClip 551 { } movieClip 553 { } instance overlay of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= 359.9 && _root.char._x <= 2300) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } movieClip 558 { } movieClip 559 { } movieClip 561 { frame 1 { stop(); } frame 14 { _root.char._x = 100; _root.char._y = 343; _root.vcam._x = 359.9; _root.vcam._y = 250.9; _root.b1.gotoAndStop(1); _root.ground.b1.gotoAndStop(1); _root.b2.gotoAndStop(1); _root.ground.b2.gotoAndStop(1); } } instance deadtrans of movieClip 561 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 10 { nextFrame(); } frame 11 { var vol = 100; var fadedOut = false; if (!_root.mute) { if (!_root.fadedOut) { _root.onEnterFrame = function () { --vol; Music1.setVolume(vol); if (vol < 5) { _root.Music1.stop(); _root.Music2.start(0, 1); Music2.setVolume(100); delete onEnterFrame; _root.fadedOut = true; } }; } } Music2.onSoundComplete = function () { Music2.start(0, 0); }; } frame 11 { _root.trans.gotoAndPlay(16); } movieClip 562 { } movieClip 565 { } movieClip 566 { } movieClip 568 { } movieClip 597 { } movieClip 600 { } movieClip 602 { } movieClip 604 { } movieClip 609 { } movieClip 611 { } movieClip 613 { } movieClip 615 { } movieClip 624 { } movieClip 625 { } movieClip 626 { } movieClip 655 { frame 19 { stop(); } frame 46 { stop(); } frame 53 { _root.fish.gotoAndStop(2); } } movieClip 667 { } movieClip 669 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } button 671 { on (release) { _root.fish.fish2.play(); } } movieClip 675 { } movieClip 681 { } movieClip 684 { } movieClip 685 { } movieClip 686 { } movieClip 701 { frame 22 { stop(); } } movieClip 706 { } button 711 { on (release) { _root.fish.gotoAndStop(3); } } movieClip 712 { frame 2 { if (!_root.mute) { _root.ReelNoise.start(0, 1); } } frame 50 { if (!_root.mute) { _root.SplashNoise.start(0, 1); } } frame 75 { stop(); } frame 75 { stop(); } } button 720 { on (release) { play(); } } movieClip 738 { frame 2 { if (!_root.mute) { _root.PluckNoise.start(0, 1); } } frame 36 { stop(); } frame 49 { if (!_root.mute) { _root.FlapNoise.start(0, 1); } } frame 110 { if (!_root.mute) { _root.FlapNoise.start(0, 1); } } frame 147 { if (!_root.mute) { _root.W1Noise.start(0, 1); } } frame 162 { stop(); _root.trans.play(); } frame 163 { stop(); } } movieClip 739 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } frame 12 { stop(); } frame 12 { nextFrame(); } frame 13 { _root.trans.gotoAndPlay(16); } frame 13 { stop(); } instance of movieClip 566 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 300; } } movieClip 742 { } movieClip 743 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.StatueNoise.start(0, 1); } } frame 11 { if (!_root.mute) { _root.StoneClickNoise.start(0, 1); } } frame 15 { stop(); } frame 16 { if (!_root.mute) { _root.StatueNoise.start(0, 1); } } frame 25 { if (!_root.mute) { _root.StoneClickNoise.start(0, 1); } } } movieClip 745 { } movieClip 746 { } movieClip 747 { } movieClip 748 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.StatueNoise.start(0, 1); } } frame 10 { if (!_root.mute) { _root.StoneClickNoise.start(0, 1); } } frame 14 { stop(); } frame 14 { stop(); } frame 15 { if (!_root.mute) { _root.StatueNoise.start(0, 1); } } frame 25 { if (!_root.mute) { _root.StoneClickNoise.start(0, 1); } } } movieClip 751 { } movieClip 754 { } movieClip 756 { } movieClip 758 { } movieClip 760 { } movieClip 763 { } movieClip 766 { } movieClip 771 { frame 1 { stop(); } } instance of movieClip 771 { onClipEvent (release) { if (_root.stat1._currentframe < 15) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.stat1.play(); _root.ground.stat1.play(); } } } movieClip 772 { } movieClip 773 { } movieClip 774 { } movieClip 775 { } movieClip 776 { } movieClip 777 { } instance of movieClip 771 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b1.play(); _root.ground.b1.play(); } } movieClip 779 { } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance of movieClip 547 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } instance overlay of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= 352 && _root.char._x <= 3350) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } movieClip 782 { frame 1 { stop(); } frame 14 { _root.char._x = 566.25; _root.char._y = 343; _root.vcam._x = 359.9; _root.vcam._y = 250.9; _root.bees._x = 261.25; _root.b1.gotoAndStop(1); _root.ground.b1.gotoAndStop(1); _root.b2.gotoAndStop(1); _root.ground.b2.gotoAndStop(1); } } instance deadtrans of movieClip 782 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 14 { nextFrame(); } frame 15 { stop(); _root.trans.gotoAndPlay(16); } frame 15 { stop(); _root.bellMode = 0; } movieClip 784 { } movieClip 785 { frame 79 { stop(); } } movieClip 786 { } movieClip 787 { frame 1 { stop(); } frame 22 { if (!_root.mute) { _root.FishRiseNoise.start(0, 1); } } frame 25 { stop(); } frame 26 { if (!_root.mute) { _root.FishRiseNoise.start(0, 1); } } } movieClip 789 { } movieClip 791 { } movieClip 793 { } movieClip 795 { } movieClip 796 { } movieClip 797 { frame 1 { stop(); } } instance bell1 of movieClip 797 { onClipEvent (release) { this.play(); if (!_root.mute) { _root.Bell1Noise.start(0, 1); } if (_root.bellMode == 0) { if (_root.fish1._currentframe >= 50) { _root.fish1.gotoAndPlay(86); _root.bellMode = 0; } if (_root.fish2._currentframe >= 50) { _root.fish2.gotoAndPlay(86); } if (_root.fish3._currentframe >= 50) { _root.fish3.gotoAndPlay(86); } } if (_root.bellMode == 1) { if (_root.fish1._currentframe >= 50) { _root.fish1.gotoAndPlay(86); _root.bellMode = 0; } if (_root.fish2._currentframe >= 50) { _root.fish2.gotoAndPlay(86); } if (_root.fish3._currentframe >= 50) { _root.fish3.gotoAndPlay(86); } } if (_root.bellMode == 2) { _root.bellMode = 3; _root.fish1.play(); } } } instance bell2 of movieClip 797 { onClipEvent (release) { this.play(); if (!_root.mute) { _root.Bell2Noise.start(0, 1); } if (_root.bellMode == 0) { _root.bellMode = 1; _root.fish2.play(); } if (_root.bellMode == 1) { if (_root.fish2._currentframe >= 50) { _root.fish2.gotoAndPlay(86); _root.bellMode = 0; } if (_root.fish3._currentframe >= 50) { _root.fish3.gotoAndPlay(86); } if (_root.fish1._currentframe >= 50) { _root.fish1.gotoAndPlay(86); } } if (_root.bellMode == 2) { _root.bellMode = 0; if (_root.fish2._currentframe >= 50) { _root.fish2.gotoAndPlay(86); } if (_root.fish3._currentframe >= 50) { _root.fish3.gotoAndPlay(86); } if (_root.fish1._currentframe >= 50) { _root.fish1.gotoAndPlay(86); } } } } instance bell3 of movieClip 797 { onClipEvent (release) { this.play(); if (!_root.mute) { _root.Bell3Noise.start(0, 1); } if (_root.bellMode == 0) { if (_root.fish3._currentframe >= 50) { _root.fish3.gotoAndPlay(86); _root.bellMode = 0; } if (_root.fish2._currentframe >= 50) { _root.fish2.gotoAndPlay(86); } if (_root.fish1._currentframe >= 50) { _root.fish1.gotoAndPlay(86); } } if (_root.bellMode == 1) { _root.bellMode = 2; _root.fish3.play(); } if (_root.bellMode == 2) { if (_root.fish3._currentframe >= 50) { _root.fish3.gotoAndPlay(86); _root.bellMode = 0; } if (_root.fish2._currentframe >= 50) { _root.fish2.gotoAndPlay(86); } if (_root.fish1._currentframe >= 50) { _root.fish1.gotoAndPlay(86); } } } } movieClip 800 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 801 { instance of movieClip 800 { onClipEvent (enterFrame) { if (_root.bellMode == 3) { this.gotoAndStop(2); } } } } instance of movieClip 547 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.prevFrame(); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } frame 16 { _root.nextFrame(); } frame 17 { var vol = 100; var fadedOut = false; if (!_root.mute) { if (!_root.fadedOut) { _root.onEnterFrame = function () { --vol; Music2.setVolume(vol); if (vol < 5) { _root.Music2.stop(); _root.fadedOut = true; _root.vol = 100; delete onEnterFrame; } }; } } } frame 17 { stop(); _root.trans.gotoAndPlay(16); } frame 17 { _root.bees._visible = false; } movieClip 804 { } movieClip 805 { } instance of movieClip 566 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 300; this._y = _root.vcam._y - 300; } } movieClip 808 { } movieClip 811 { } movieClip 813 { } movieClip 816 { } movieClip 820 { frame 1 { stop(); } } movieClip 822 { } movieClip 823 { frame 1 { stop(); } frame 44 { if (!_root.mute) { _root.FallNoise.start(0, 1); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance of movieClip 547 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 825 { } movieClip 827 { } movieClip 836 { frame 1 { stop(); } } movieClip 840 { } movieClip 841 { } movieClip 842 { } movieClip 843 { } movieClip 845 { } movieClip 846 { } movieClip 847 { } movieClip 848 { } movieClip 849 { } movieClip 850 { } movieClip 851 { } movieClip 852 { frame 1 { stop(); } } movieClip 853 { instance hitThing of movieClip 836 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); _root.bees._x = 301.25; _root.startChase = true; _root.beesmove = true; _root.bees._visible = true; '_root.hive.gotoAndStop(1);'; this.gotoAndStop(2); } } } } movieClip 854 { frame 1 { stop(); } frame 48 { if (!_root.mute) { _root.vol = 100; _root.Music3.setVolume(100); _root.Music3.start(0, 1); } Music3.onSoundComplete = function () { Music3.start(0, 0); }; } frame 95 { _root.startChase = true; } frame 96 { stop(); _root.bees.beehit.gotoAndStop(2); } } instance hive of movieClip 854 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { if (this._currentframe <= 90) { this.play(); } } } } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); trace('y is ' + _root.char._y); } } } instance bees of movieClip 853 { onClipEvent (enterFrame) { if (_root.startChase == true) { this._visible = true; _root.startChase = false; _root.beesmove = true; this.beeAnim.play(); } if (_root.beesmove == true) { rand = random(6) + 2; this._x += rand; this.hitThing.gotoAndStop(2); } } } instance of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= 352 && _root.char._x <= 7657) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } instance deadtrans of movieClip 782 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 18 { _root.nextFrame(); } frame 19 { _root.trans.gotoAndPlay(16); } frame 19 { function runGame() { velocityY -= 0.3; if (Key.isDown(39) || Key.isDown(68)) { if (velocityX > velocityXMaxReverse) { velocityX -= acceleration; } } if (Key.isDown(37) || Key.isDown(65)) { if (velocityX < velocityXMax) { velocityX += acceleration; } } velocityX *= friction; velocityY *= friction; player_mc._x -= velocityX; player_mc._y -= velocityY; if (player_mc._x < boundryLeft) { velocityX -= acceleration * 4; _root.player_mc.gotoAndStop(2); } if (player_mc._x > boundryRight) { velocityX += acceleration * 4; _root.player_mc.gotoAndStop(2); } if (player_mc._y < boundryTop) { velocityY -= acceleration * 2; velocityY = -1; } if (player_mc._y > boundryBot) { velocityY += acceleration * 2; velocityY = 1; } if (_root.player_mc.feet.hitTest(_root.block.block2.b1)) { _root.player_mc._y -= 1 * _root.speed; velocityY = 0; } if (_root.player_mc.head.hitTest(_root.block.block2.b1)) { _root.player_mc._y += 1 * _root.speed; velocityY = 0; } } var velocityX = 0; var velocityY = 0; var velocityXMax = 5; var velocityYMax = 5; var velocityXMaxReverse = -5; var velocityYMaxReverse = -5; var acceleration = 0.5; var friction = 1; var boundryTop = 0; var boundryBot = Stage.height / 1.8; var boundryLeft = 0; var boundryRight = Stage.width; player_mc.onEnterFrame = function () { runGame(); }; } movieClip 856 { } movieClip 858 { } movieClip 860 { } movieClip 861 { } movieClip 863 { } movieClip 865 { } movieClip 866 { } movieClip 869 { } movieClip 870 { } movieClip 873 { } movieClip 874 { } movieClip 875 { frame 5 { if (!_root.mute) { _root.W1Noise.start(0, 1); } } frame 66 { if (!_root.mute) { _root.W2Noise.start(0, 1); } } frame 83 { if (!_root.mute) { _root.W2Noise.start(0, 1); } } frame 142 { if (!_root.mute) { _root.W1Noise.start(0, 1); } } } movieClip 876 { } movieClip 879 { } movieClip 880 { } movieClip 881 { } movieClip 882 { } instance block of movieClip 882 { onClipEvent (load) { _root.speed = 6; } onClipEvent (enterFrame) { this._y -= _root.speed; if (this._y <= -117) { this._y = 400; _root.speed += 0.3; this._x = random(700) + 1; } } } movieClip 883 { } instance of movieClip 883 { onClipEvent (enterFrame) { if (_root.speed >= 8.5 && _root.trans._currentframe <= 4) { _root.trans.play(); } } } frame 20 { _root.nextFrame(); } frame 21 { var vol = 100; var fadedOut = false; if (!_root.mute) { if (!_root.fadedOut) { _root.onEnterFrame = function () { vol -= 5; Music3.setVolume(vol); if (vol < 5) { _root.Music3.stop(); _root.Music4.start(0, 1); Music4.setVolume(100); delete onEnterFrame; _root.fadedOut = true; } }; } } Music4.onSoundComplete = function () { Music4.start(0, 0); }; } frame 21 { stop(); _root.trans.gotoAndPlay(16); _root.pausedd = true; _root.char._visible = false; } instance of movieClip 562 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 300; this._y = _root.vcam._y - 300; } } movieClip 886 { } movieClip 887 { } movieClip 888 { } instance of movieClip 888 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } movieClip 892 { } movieClip 901 { } movieClip 904 { } movieClip 907 { } movieClip 916 { } movieClip 917 { } movieClip 920 { } movieClip 923 { } movieClip 926 { } movieClip 927 { } movieClip 929 { } movieClip 932 { } movieClip 934 { } movieClip 937 { } movieClip 939 { } movieClip 942 { } movieClip 947 { } instance of movieClip 547 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 949 { } movieClip 951 { } movieClip 955 { } movieClip 957 { } movieClip 961 { } movieClip 969 { frame 34 { stop(); } } movieClip 970 { frame 24 { if (!_root.mute) { _root.MushroomNoise.start(0, 1); } } frame 50 { stop(); _root.pausedd = false; _root.char._visible = true; } frame 77 { _root.pausedd = false; _root.char._visible = true; } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p3.play(); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } instance of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= -832.25 && _root.char._x <= 7656) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } instance of movieClip 771 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b1.play(); _root.ground.b1.play(); } } instance of movieClip 771 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b2.play(); _root.ground.b2.play(); } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p5.play(); } } } movieClip 974 { } movieClip 975 { } movieClip 976 { } movieClip 977 { } movieClip 979 { frame 1 { stop(); } frame 14 { _root.char._x = -832.25; _root.char._y = 395; _root.vcam._x = -1127.35; _root.vcam._y = 254; _root.b1.gotoAndStop(1); _root.ground.b1.gotoAndStop(1); _root.b2.gotoAndStop(1); _root.ground.b2.gotoAndStop(1); } } instance deadtrans of movieClip 979 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 22 { _root.nextFrame(); } frame 23 { stop(); _root.trans.gotoAndPlay(16); } instance of movieClip 748 { onClipEvent (enterFrame) { if (this._currentframe <= 3) { if (_root.block1 == 1 && _root.block2 == 2 && _root.block3 == 3 && _root.block4 == 4 && _root.block5 == 5 && _root.block6 == 6) { this.play(); _root.ground.b1.play(); _root.donePuzzle = true; if (!_root.mute) { _root.SolvePuzzleNoise.start(0, 1); } } } } } button 982 { on (release) { nextFrame(); } } button 988 { on (release) { gotoAndStop(1); } } movieClip 989 { frame 1 { _root.block1 = 1; } frame 1 { stop(); } frame 2 { _root.block1 = 2; } frame 3 { _root.block1 = 3; } frame 4 { _root.block1 = 4; } frame 5 { _root.block1 = 5; } frame 6 { _root.block1 = 6; } } button 990 { on (release) { nextFrame(); } } button 991 { on (release) { gotoAndStop(1); } } movieClip 992 { frame 1 { _root.block2 = 1; } frame 1 { stop(); } frame 2 { _root.block2 = 2; } frame 3 { _root.block2 = 3; } frame 4 { _root.block2 = 4; } frame 5 { _root.block2 = 5; } frame 6 { _root.block2 = 6; } } button 993 { on (release) { nextFrame(); } } button 994 { on (release) { gotoAndStop(1); } } movieClip 995 { frame 1 { _root.block3 = 1; } frame 1 { stop(); } frame 2 { _root.block3 = 2; } frame 3 { _root.block3 = 3; } frame 4 { _root.block3 = 4; } frame 5 { _root.block3 = 5; } frame 6 { _root.block3 = 6; } } button 996 { on (release) { nextFrame(); } } button 997 { on (release) { gotoAndStop(1); } } movieClip 998 { frame 1 { _root.block4 = 1; } frame 1 { stop(); } frame 2 { _root.block4 = 2; } frame 3 { _root.block4 = 3; } frame 4 { _root.block4 = 4; } frame 5 { _root.block4 = 5; } frame 6 { _root.block4 = 6; } } button 999 { on (release) { nextFrame(); } } button 1000 { on (release) { gotoAndStop(1); } } movieClip 1001 { frame 1 { _root.block5 = 1; } frame 1 { stop(); } frame 2 { _root.block5 = 2; } frame 3 { _root.block5 = 3; } frame 4 { _root.block5 = 4; } frame 5 { _root.block5 = 5; } frame 6 { _root.block5 = 6; } } button 1002 { on (release) { nextFrame(); } } button 1003 { on (release) { gotoAndStop(1); } } movieClip 1004 { frame 1 { _root.block6 = 1; } frame 1 { stop(); } frame 2 { _root.block6 = 2; } frame 3 { _root.block6 = 3; } frame 4 { _root.block6 = 4; } frame 5 { _root.block6 = 5; } frame 6 { _root.block6 = 6; } } movieClip 1005 { instance of movieClip 992 { onClipEvent (load) { this.gotoAndStop(4); } } instance of movieClip 995 { onClipEvent (load) { this.gotoAndStop(4); } } instance of movieClip 1001 { onClipEvent (load) { this.gotoAndStop(6); } } instance of movieClip 1004 { onClipEvent (load) { this.gotoAndStop(6); } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 1007 { instance b1 of movieClip 748 { onClipEvent (enterFrame) { if (_root.donePuzzle != true) { if (_root.block1 == 1 && _root.block2 == 2 && _root.block3 == 3 && _root.block4 == 4 && _root.block5 == 5 && _root.block6 == 6) { this.play(); if (!_root.mute) { _root.SolvePuzzleSound.start(0, 1); } _root.ground.b1.play(); _root.donePuzzle = true; } } } } } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 24 { _root.nextFrame(); } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 25 { var vol = 100; var fadedOut = false; if (!_root.mute) { if (!_root.fadedOut) { _root.onEnterFrame = function () { vol -= 5; Music4.setVolume(vol); if (vol < 5) { _root.Music4.stop(); _root.Music5.start(0, 1); Music5.setVolume(100); delete onEnterFrame; _root.fadedOut = true; } }; } } Music5.onSoundComplete = function () { Music5.start(0, 0); }; } frame 25 { _root.trans.gotoAndPlay(16); } instance of movieClip 566 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } movieClip 1010 { } movieClip 1012 { } movieClip 1013 { instance of movieClip 1012 { onClipEvent (enterFrame) { if (this.hitTest(_root.player_mc)) { _root.deadtrans.play(); } } } instance of movieClip 1012 { onClipEvent (enterFrame) { if (this.hitTest(_root.player_mc)) { _root.deadtrans.play(); } } } } movieClip 1019 { } movieClip 1022 { } movieClip 1023 { } movieClip 1026 { } movieClip 1027 { } movieClip 1029 { } movieClip 1030 { } movieClip 1032 { } movieClip 1035 { } movieClip 1036 { } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } movieClip 1040 { } movieClip 1041 { } movieClip 1044 { } movieClip 1047 { } movieClip 1049 { } movieClip 1052 { } movieClip 1055 { } movieClip 1057 { } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p3.play(); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance of movieClip 547 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } movieClip 1059 { instance p1 of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance p2 of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } } instance of movieClip 771 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b2.play(); _root.ground.b2.play(); } } instance of movieClip 771 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b1.play(); _root.ground.b1.play(); } } movieClip 1061 { } movieClip 1062 { frame 39 { if (!_root.mute) { _root.LighteningNoise.start(0, 1); } } frame 223 { if (!_root.mute) { _root.Lightening2Noise.start(0, 1); } } frame 302 { if (!_root.mute) { _root.LighteningNoise.start(0, 1); } } } instance of movieClip 1062 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= 350 && _root.char._x <= 5200) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } instance deadtrans of movieClip 782 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 26 { _root.nextFrame(); } frame 27 { stop(); _root.trans.gotoAndPlay(16); } movieClip 1064 { } movieClip 1066 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webfive = true; } } movieClip 1068 { } movieClip 1070 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webthree = true; } } movieClip 1072 { } movieClip 1074 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webone = true; } } movieClip 1076 { } movieClip 1078 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webfour = true; } } movieClip 1080 { } movieClip 1082 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webtwo = true; } } movieClip 1085 { } movieClip 1089 { } movieClip 1095 { } movieClip 1097 { } movieClip 1099 { } movieClip 1118 { } movieClip 1119 { frame 75 { if (!_root.mute) { _root.HootNoise.start(0, 1); } } } // unknown tag 88 length 56 movieClip 1123 { } movieClip 1125 { } movieClip 1127 { } movieClip 1129 { } movieClip 1130 { frame 1 { stop(); } instance of movieClip 1066 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1070 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1074 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1078 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1082 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } frame 2 { if (!_root.mute) { _root.W1Noise.start(0, 1); } } frame 42 { if (!_root.mute) { _root.FlapNoise.start(0, 1); } } frame 132 { if (!_root.mute) { _root.HootNoise.start(0, 1); } } frame 435 { stop(); _root.trans.play(); } } instance owlMc of movieClip 1130 { onClipEvent (enterFrame) { if (this._currentframe <= 1) { if (_root.webone == true && _root.webtwo == true && _root.webthree == true && _root.webfour == true && _root.webfive == true) { this.play(); if (!_root.mute) { _root.MFreeOwlNoise.start(0, 1); } } } } } movieClip 1132 { } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance of movieClip 1062 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } instance deadtrans of movieClip 782 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 28 { _root.nextFrame(); } frame 29 { _root.trans.gotoAndPlay(16); _root.nextFrame(); } movieClip 1135 { } movieClip 1137 { } movieClip 1138 { } movieClip 1141 { } movieClip 1143 { } movieClip 1144 { } movieClip 1148 { } movieClip 1149 { } movieClip 1151 { } movieClip 1153 { } movieClip 1161 { } movieClip 1162 { } movieClip 1164 { } movieClip 1165 { frame 24 { stop(); } } movieClip 1168 { } movieClip 1171 { } movieClip 1172 { } movieClip 1174 { } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -13; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (this.hitTest(_root.webJump)) { standing = false; walking = false; _root.jumping = true; grav = -25; _root.webJump.play(); if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (this.hitTest(_root.webJump2)) { standing = false; walking = false; _root.jumping = true; grav = -25; _root.webJump2.play(); if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (this.hitTest(_root.webJump3)) { standing = false; walking = false; _root.jumping = true; grav = -25; _root.webJump3.play(); if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } movieClip 1178 { } movieClip 1179 { } instance of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 429 { onClipEvent (enterFrame) { if (_root.char._x >= 359.9 && _root.char._x <= 7657) { this._x = _root.char._x; } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } frame 30 { _root.nextFrame(); } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 31 { _root.ledgeone = false; _root.ledgetwo = false; _root.wood.wood2.stop(); _root.trans.gotoAndPlay(16); } instance of movieClip 547 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } instance of movieClip 566 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } movieClip 1184 { } movieClip 1186 { } movieClip 1189 { } movieClip 1190 { } movieClip 1191 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 15 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 23 { stop(); _root.ledgetwo = true; } } movieClip 1194 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 10 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 35 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 44 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 91 { stop(); } } movieClip 1197 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 10 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 35 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 44 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 91 { stop(); } } movieClip 1200 { frame 3 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 16 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 23 { stop(); _root.ledgeone = true; } } movieClip 1203 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 10 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 35 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 44 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 98 { stop(); } } movieClip 1206 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 15 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 23 { stop(); _root.ledgetwo = true; } } movieClip 1209 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 10 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 35 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 44 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 71 { _root.die = true; } frame 98 { stop(); } } movieClip 1212 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 15 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 23 { stop(); } } movieClip 1213 { frame 1 { stop(); } frame 8 { stop(); } } movieClip 1216 { } movieClip 1218 { } movieClip 1222 { frame 1 { stop(); } } movieClip 1223 { frame 1 { stop(); } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p3.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p5.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p6.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p7.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p8.play(); } } } movieClip 1227 { } movieClip 1228 { } button 1229 { on (release) { if (_root.ledgeone == false) { _root.wood.gotoAndStop(6); _root.ledgeone = true; } else { _root.wood.gotoAndStop(7); } } } button 1230 { on (release) { if (_root.ledgeone == false) { _root.wood.gotoAndStop(4); } else { _root.wood.gotoAndStop(9); } } } button 1231 { on (release) { if (_root.ledgeone == false && ledgetwo == false) { _root.wood.gotoAndStop(2); } if (_root.ledgeone == true && ledgetwo == false) { _root.wood.gotoAndStop(5); } if (_root.ledgeone == false && ledgetwo == true) { _root.wood.gotoAndStop(3); } if (_root.ledgeone == true && ledgetwo == true) { _root.wood.gotoAndStop(8); } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 1234 { } movieClip 1235 { } movieClip 1236 { } movieClip 1238 { } movieClip 1240 { } movieClip 1241 { frame 7 { stop(); } frame 19 { _root.spider.gotoAndStop(1); } } movieClip 1243 { } movieClip 1246 { } movieClip 1247 { frame 2 { if (!_root.mute) { _root.MushroomNoise.start(0, 1); } } frame 2 { if (!_root.mute) { _root.BounceNoise.start(0, 1); } } frame 11 { _root.ground.ground2.gotoAndStop(2); } frame 16 { stop(); } } movieClip 1248 { frame 1 { stop(); } instance of movieClip 1238 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.spider.gotoAndStop(2); } } } frame 2 { stop(); } instance of movieClip 1240 { onClipEvent (enterFrame) { if (!this.hitTest(_root.char)) { _root.spider.spider2.play(); } } } frame 3 { stop(); } } instance spider of movieClip 1248 { onClipEvent (enterFrame) { if (_root.die == true) { this.gotoAndStop(3); _root.die = false; } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } movieClip 1251 { frame 1 { stop(); } } movieClip 1252 { } instance of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= -535.4 && _root.char._x <= 2150) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } instance of movieClip 1062 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } movieClip 1255 { } movieClip 1256 { } movieClip 1257 { } movieClip 1258 { } movieClip 1260 { frame 1 { stop(); } frame 14 { _root.char._x = -713; _root.char._y = 327; _root.vcam._x = -500.1; _root.vcam._y = 250.9; _root.b1.gotoAndStop(1); _root.ground.b1.gotoAndStop(1); _root.b2.gotoAndStop(1); _root.ground.b2.gotoAndStop(1); } } instance deadtrans of movieClip 1260 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 32 { _root.nextFrame(); } frame 33 { var vol = 100; var fadedOut = false; if (!_root.mute) { if (!_root.fadedOut) { _root.onEnterFrame = function () { vol -= 5; Music5.setVolume(vol); if (vol < 5) { _root.Music5.stop(); _root.Music1.start(0, 1); Music1.setVolume(100); delete onEnterFrame; _root.fadedOut = true; } }; } } Music1.onSoundComplete = function () { Music1.start(0, 0); }; } frame 33 { stop(); _root.trans.gotoAndPlay(16); } instance of movieClip 566 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 250; } } movieClip 1263 { frame 1 { _root.lift = 'down'; stop(); } frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 100 { stop(); _root.lift = 'up'; } frame 101 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } } instance lift2 of movieClip 1263 { onClipEvent (enterFrame) { if (_root.pressedd == true) { this.play(); } } } movieClip 1266 { } movieClip 1267 { } movieClip 1270 { } movieClip 1272 { } instance of movieClip 771 { onClipEvent (release) { _root.b1.play(); _root.ground.b2.play(); this.play(); } } instance of movieClip 507 { onClipEvent (release) { _root.lift2.play(); _root.ground.lift2.play(); } } movieClip 1274 { } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p5.play(); } } } movieClip 1275 { frame 1 { stop(); } frame 14 { stop(); } } instance of movieClip 771 { onClipEvent (release) { _root.bear2.play(); _root.ground.bear2.play(); this.play(); } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } movieClip 1278 { } movieClip 1279 { } movieClip 1282 { } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p6.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p3.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 1223 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p7.play(); } } } instance of movieClip 823 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p8.play(); } } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } movieClip 1284 { frame 1 { stop(); } frame 100 { stop(); } } movieClip 1285 { instance lift2 of movieClip 1284 { onClipEvent (enterFrame) { if (_root.pressedd == true) { this.play(); } } } } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } movieClip 1288 { } movieClip 1289 { } movieClip 1290 { } movieClip 1291 { } movieClip 1293 { frame 1 { stop(); } frame 14 { _root.char._x = 139; _root.char._y = 359.9; _root.vcam._x = 349.95; _root.vcam._y = 306.25; _root.deadtrans._y = 40; _root.deadtrans._x = -12.45; _root.deathbar._y = 683; _root.deathbar._x = 353.9; _root.b1.gotoAndStop(1); _root.ground.b1.gotoAndStop(1); _root.b2.gotoAndStop(1); _root.ground.b2.gotoAndStop(1); } } instance deadtrans of movieClip 1293 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 380; } } instance of movieClip 426 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 250; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 25; } onClipEvent (enterFrame) { endY = _root.char._y - 100; this._y += (endY - _y) / Easespeed; } } movieClip 1295 { } frame 34 { _root.nextFrame(); } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 35 { _root.trans.gotoAndPlay(16); } movieClip 1297 { } movieClip 1300 { } movieClip 1301 { } movieClip 1302 { } movieClip 1305 { } movieClip 1307 { } movieClip 1309 { } movieClip 1312 { } movieClip 1315 { } movieClip 1317 { } movieClip 1319 { } movieClip 1320 { } movieClip 1321 { } movieClip 1323 { } movieClip 1325 { } movieClip 1327 { } movieClip 1329 { } movieClip 1330 { } movieClip 1331 { } movieClip 1332 { frame 1 { stop(); } frame 50 { stop(); _root.trans.play(); } } instance of movieClip 1332 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.char._visible = false; } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } movieClip 1334 { } frame 36 { _root.nextFrame(); } frame 37 { function runGame() { velocityY -= 0.3; if (_root.initiateFly) { _root.ground.gotoAndPlay('startLoop'); player_mc._y = startPosition; _root.initiateFly = false; } if (Key.isDown(38) || Key.isDown(87)) { if (velocityY < velocityYMax) { velocityY += acceleration; } } if (Key.isDown(40) || Key.isDown(83)) { if (velocityY > velocityYMaxReverse) { velocityY -= acceleration; } } velocityX *= friction; velocityY *= friction; player_mc._x -= velocityX; player_mc._y -= velocityY; if (player_mc._x < boundryLeft) { velocityX -= acceleration * 4; _root.player_mc.gotoAndStop(2); } if (player_mc._x > boundryRight) { velocityX += acceleration * 4; _root.player_mc.gotoAndStop(2); } if (player_mc._y < boundryTop) { velocityY -= acceleration * 2; velocityY = -1; } if (player_mc._y > boundryBot) { velocityY += acceleration * 2; velocityY = 1; } if (_root.player_mc.feet.hitTest(_root.block.block2.b1)) { _root.player_mc._y -= 1 * _root.speed; velocityY = 0; } if (_root.player_mc.head.hitTest(_root.block.block2.b1)) { _root.player_mc._y += 1 * _root.speed; velocityY = 0; } } var velocityX = 0; var velocityY = 0; var velocityXMax = 5; var velocityYMax = 5; var velocityXMaxReverse = -5; var velocityYMaxReverse = -5; var acceleration = 0.7; var friction = 1; var boundryTop = 0; var boundryBot = Stage.height; var boundryLeft = 0; var boundryRight = Stage.width; var startPosition = 128; var initiateFly = true; player_mc.onEnterFrame = function () { runGame(); }; if (!lastLev == 1) { _root.trans.gotoAndPlay(16); } else {} _root.lastLev = 1; } movieClip 1336 { } movieClip 1339 { } movieClip 1340 { } movieClip 1341 { } movieClip 1344 { } movieClip 1345 { } movieClip 1346 { } movieClip 1349 { } movieClip 1350 { } movieClip 1351 { } movieClip 1352 { } movieClip 1355 { } movieClip 1356 { } movieClip 1357 { } movieClip 1358 { frame 625 { stop(); } } movieClip 1359 { instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.player_mc) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } } movieClip 1360 { } movieClip 1365 { } movieClip 1366 { } movieClip 1370 { } movieClip 1371 { frame 151 { stop(); } } movieClip 1372 { } movieClip 1375 { } movieClip 1376 { } movieClip 1377 { } movieClip 1378 { } movieClip 1380 { frame 1 { stop(); } frame 14 { _root.prevFrame(); _root.player_mc._y = 107.85; } } instance deadtrans of movieClip 1380 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 380; } } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 38 { _root.nextFrame(); } frame 38 { _root.trans.gotoAndPlay(16); } frame 39 { var vol = 100; var fadedOut = false; if (!_root.mute) { if (!_root.fadedOut) { _root.onEnterFrame = function () { vol -= 5; Music1.setVolume(vol); if (vol < 5) { _root.Music1.stop(); _root.Music2.start(0, 1); Music2.setVolume(100); delete onEnterFrame; _root.fadedOut = true; } }; } } Music2.onSoundComplete = function () { Music2.start(0, 0); }; } frame 39 { _root.trans.gotoAndPlay(16); _root.pausedd = true; _root.char._visible = false; } movieClip 1382 { } movieClip 1383 { } movieClip 1384 { } instance of movieClip 1384 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } movieClip 1386 { } movieClip 1388 { } movieClip 1391 { } movieClip 1394 { } movieClip 1397 { } movieClip 1400 { } movieClip 1401 { } movieClip 1402 { } movieClip 1405 { } movieClip 1408 { } movieClip 1409 { } movieClip 1410 { frame 24 { if (!_root.mute) { _root.MushroomNoise.start(0, 1); } } frame 48 { _root.pausedd = false; _root.char._visible = true; } frame 49 { stop(); } frame 77 { _root.pausedd = false; _root.char._visible = true; } } instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.char) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } instance char of movieClip 372 { onClipEvent (load) { right = true; left = false; standing = true; _root.jumping = false; walking = false; _root.recovering = false; _root.slowdown = false; swimming = false; grav = 0; jumpheight = -14; sheilding = false; throwing = false; sheildable = true; grabbed = false; clicked = false; wallhit = false; rot = _root.ball._rotation + 90; rotationchecker = this.sheild._rotation; x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = 0; mirrored = false; dictancechecker = distance; changed = false; shooting = false; grabbed = false; } onClipEvent (enterFrame) { this._y += grav; if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(39) && !Key.isDown(37) && !_root.jumping && !_root.recovering && !swimming && !shooting && this._currentframe >= 2 && !grabbed) { walking = false; standing = true; _root.slowdown = true; if (right) { this.gotoAndStop(9); } else { if (left) { this.gotoAndStop(10); } } } if (Key.isDown(68) && !Key.isDown(39) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(39) && !Key.isDown(68) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(65) && !Key.isDown(37) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(37) && !Key.isDown(65) && !_root.jumping && !swimming && !_root.slowdown && !_root.recovering && !shooting && !grabbed) { walking = true; standing = false; this.gotoAndStop(2); } if (Key.isDown(68) && !Key.isDown(39) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(39) && !Key.isDown(68) && !_root.ground.hitTest(this._x + 20, this._y - 22, true) && !shooting && !grabbed) { this._x += 5; } if (Key.isDown(65) && !Key.isDown(37) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } if (Key.isDown(37) && !Key.isDown(65) && !_root.ground.hitTest(this._x - 20, this._y - 22, true) && !shooting && !grabbed) { this._x -= 5; } while (_root.ground.hitTest(this._x, this._y, true)) { --this._y; grav = 0; } if (!_root.ground.hitTest(this._x, this._y, true) && !swimming) { ++grav; } if (Key.isDown(87) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } if (Key.isDown(38) && !_root.jumping && !swimming && !shooting && !_root.slowdown && !_root.recovering && !grabbed && _root.ground.hitTest(_root.char._x, _root.char._y + 5, true)) { standing = false; walking = false; _root.jumping = true; grav = jumpheight; if (left) { this.gotoAndStop(6); } else { if (right) { this.gotoAndStop(5); } } } for (;;) { if (!(_root.jumping && _root.ground.hitTest(this._x, this._y + 4, true) && grav > 0)) break; _root.recovering = true; _root.jumping = false; standing = true; walking = false; } if (_root.recovering == true) { if (left) { this.gotoAndStop(7); } else { if (right) { this.gotoAndStop(8); } } } if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) { this._x -= 5; } if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) { this._x += 5; } if (_root.ground.hitTest(this._x, this._y - 50, true)) { this._y += 2; } if (_root.ground.hitTest(this._x, this._y - 50, true) && grav < 0) { grav = 0; } if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) { sheilding = false; _root.jumping = false; walking = false; standing = false; swimming = true; } if (swimming) { } if (swimming && !Key.isDown(68) && !Key.isDown(65) & !Key.isDown(87) & !Key.isDown(83)) { this.charswim.stop(); } if (swimming && Key.isDown(68) or swimming && Key.isDown(65) or swimming && Key.isDown(87) or swimming && Key.isDown(83)) { this.charswim.play(); } if (swimming) { grav = 1; } if (swimming && Key.isDown(87)) { this._y -= 4; } if (swimming && Key.isDown(83)) { this._y += 3; } if (swimming && !_root.water.hitTest(_root.char._x, _root.char._y - 20)) { standing = false; walking = false; swimming = false; _root.jumping = true; shooting = false; grav = jumpheight; } adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; if (!_root.jumping && !shooting && !swimming && Key.isDown(69) && !holding && !grabbed && _root.ground.hitTest(this._x, this._y + 2, true) && sheildable) { adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = -1 * angle; _root.ball._rotation = -1 * angle; shooting = true; standing = false; _root.jumpingturn = false; walking = false; walkturn = false; } if (!Key.isDown(69)) { shooting = false; } if (shooting) { } if (shooting && _root._xmouse < _root.char._x && this.sheildinger._currentframe == 1) { this.sheildinger.gotoAndStop(2); this.sheild.sheildforturning.gotoAndStop(2); left = true; right = false; } if (!_root.sunlight.hitTest(this._x, this._y, true)) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (!shooting) { _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.mirrorshine.gotoAndStop(1); this.sheild.lightbeam._width = 0; } if (shooting) { if (_root.sunlight.hitTest(this._x, this._y, true)) { this.sheild.mirrorshine.gotoAndStop(2); rot = _root.ball._rotation - 90; _root.ball._x = this._x; _root.ball._y = this._y - 22; this.sheild.lightbeam._width = 0; } for (;;) { if (!(_root.sunlight.hitTest(this._x, this._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.ground.hitTest(_root.ball._x, _root.ball._y, true) && !_root.roof.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && !_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) break; _root.ball._y += 8 * Math.cos(0.0174532925199433 * rot); _root.ball._x -= 8 * Math.sin(0.0174532925199433 * rot); x1 = this._x; x2 = _root.ball._x; y1 = this._y; y2 = _root.ball._y; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; } x1 = this._x; x2 = _root.ball._x; y1 = this._y - 22; y2 = _root.ball._y; this.sheild.lightbeam._width = 0; distance = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); this.sheild.lightbeam._width = distance - 34; this.sheild._rotation = _root.ball._rotation; adjside = _root._xmouse - this._x; oppside = -1 * (_root._ymouse - (this._y - 25)); angle = Math.atan2(oppside, adjside); angle = Math.round((angle / Math.PI) * 180); this.sheild._rotation = _root.ball._rotation; this.sheild._rotation = _root.ball._rotation; } if (right && Key.isDown(65) && !grabbed) { right = false; left = true; } if (left && Key.isDown(68) && !grabbed) { right = true; left = false; } if (left && Key.isDown(39) && !grabbed) { right = true; left = false; } if (right && Key.isDown(37) && !grabbed) { right = false; left = true; } if (left) { this.charstanding.gotoAndStop(2); this.charwalking.gotoAndStop(2); this.charswimming.gotoAndStop(2); } if (right) { this.charstanding.gotoAndStop(1); this.charwalking.gotoAndStop(1); this.charswimming.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.binhere2 == true) { this._x = 589.4; this._y = 349.8; _root.vcam._x = 589.4; _root.vcam._y = 258.8; _root.binhere2 = false; } } } movieClip 1412 { } movieClip 1414 { } instance of movieClip 1414 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance vcam of movieClip 429 { onClipEvent (load) { Easespeed = 10; } onClipEvent (enterFrame) { if (_root.char._x >= 359.9 && _root.char._x <= 3000) { endY = _root.char._x; this._x += (endY - _x) / Easespeed; } } } instance of movieClip 432 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } movieClip 1416 { } instance overlay of movieClip 426 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance trans of movieClip 479 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } instance deadtrans of movieClip 782 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 40 { _root.nextFrame(); } frame 41 { stop(); } movieClip 1420 { } movieClip 1426 { } movieClip 1427 { } button 1429 { on (press) { _root.outro.nextFrame(); } } movieClip 1432 { } movieClip 1437 { } movieClip 1440 { } movieClip 1441 { } movieClip 1445 { } movieClip 1447 { } movieClip 1455 { } movieClip 1457 { } button 1459 { on (press) { stopAllSounds(); _root.Music2.stop(); _root.gotoAndPlay('titlescreen'); } } movieClip 1460 { frame 1 { stop(); } instance of movieClip 1384 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } frame 2 { stop(); } frame 3 { stop(); } instance of movieClip 1384 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } frame 4 { stop(); } frame 4 { _root.stopAllSounds(); } }




http://swfchan.com/22/106753/info.shtml
Created: 16/3 -2019 19:51:03 Last modified: 16/3 -2019 19:51:03 Server time: 04/05 -2024 23:47:57