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

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

Teddys excellent adventure - point and click puzzle platformer mini game.swf

This is the info page for
Flash #135188

(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.artjimp.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 1459 __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 1460 __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 405 { 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 409 { on (press) { if (_quality == 'HIGH') { _quality = 'MEDIUM'; } else { if (_quality == 'MEDIUM') { _quality = 'LOW'; } else { if (_quality == 'LOW') { _quality = 'HIGH'; } } } } } button 413 { on (release) { nextFrame(); } } movieClip 417 { } movieClip 419 { } movieClip 420 { } button 421 { on (release) { gotoAndStop(1); } } button 422 { on (release) { stopAllSounds(); _root.gotoAndStop('titlescreen'); } } movieClip 423 { frame 1 { stop(); } } movieClip 424 { } instance overlay of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } movieClip 427 { 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 427 { 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 430 { } instance of movieClip 430 { 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 435 { } movieClip 436 { } movieClip 438 { } movieClip 439 { } movieClip 442 { } movieClip 466 { } movieClip 467 { } movieClip 468 { frame 255 { stop(); } } instance tut1 of movieClip 468 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } movieClip 472 { } movieClip 477 { frame 1 { stop(); } frame 14 { _root.nextFrame(); } frame 15 { stop(); } frame 16 { play(); } } instance trans of movieClip 477 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 6 { nextFrame(); } frame 7 { _root.trans.gotoAndPlay(16); } movieClip 480 { } movieClip 482 { } movieClip 484 { } movieClip 485 { } movieClip 488 { } movieClip 489 { } movieClip 492 { } movieClip 493 { } movieClip 495 { } movieClip 498 { } movieClip 499 { 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 499 { onClipEvent (enterFrame) { if (_root.pressedd == true) { this.play(); } } } movieClip 501 { } button 503 { on (release) { if (_root.lift == 'down') { _root.pressedd = true; _root.switchh.play(); _root.lift.play(); } } } button 504 { on (press) { if (_root.lift == 'up') { _root.switchh.play(); _root.lift.play(); _root.pressedd = true; } } } movieClip 505 { 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 508 { } movieClip 510 { } movieClip 512 { frame 1 { stop(); } frame 100 { stop(); } } movieClip 513 { instance of movieClip 512 { 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 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } movieClip 515 { } movieClip 516 { } movieClip 517 { } movieClip 518 { frame 255 { stop(); } } frame 8 { nextFrame(); } instance trans of movieClip 477 { 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 520 { } movieClip 524 { } movieClip 526 { } movieClip 529 { } movieClip 530 { } movieClip 533 { } movieClip 536 { } movieClip 538 { } movieClip 541 { } movieClip 543 { } movieClip 545 { } instance of movieClip 545 { 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 547 { } 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 549 { } movieClip 551 { } instance overlay of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance vcam of movieClip 427 { 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 430 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } movieClip 556 { } movieClip 557 { } movieClip 559 { 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 559 { 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 560 { } movieClip 563 { } movieClip 564 { } movieClip 566 { } movieClip 595 { } movieClip 598 { } movieClip 600 { } movieClip 602 { } movieClip 607 { } movieClip 609 { } movieClip 611 { } movieClip 613 { } movieClip 622 { } movieClip 623 { } movieClip 624 { } movieClip 653 { frame 19 { stop(); } frame 46 { stop(); } frame 53 { _root.fish.gotoAndStop(2); } } movieClip 665 { } movieClip 667 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } button 669 { on (release) { _root.fish.fish2.play(); } } movieClip 673 { } movieClip 679 { } movieClip 682 { } movieClip 683 { } movieClip 684 { } movieClip 699 { frame 22 { stop(); } } movieClip 704 { } button 709 { on (release) { _root.fish.gotoAndStop(3); } } movieClip 710 { 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 718 { on (release) { play(); } } movieClip 736 { 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 737 { 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 564 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 300; } } movieClip 740 { } movieClip 741 { 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 743 { } movieClip 744 { } movieClip 745 { } movieClip 746 { 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 749 { } movieClip 752 { } movieClip 754 { } movieClip 756 { } movieClip 758 { } movieClip 761 { } movieClip 764 { } movieClip 769 { frame 1 { stop(); } } instance of movieClip 769 { 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 770 { } movieClip 771 { } movieClip 772 { } movieClip 773 { } movieClip 774 { } movieClip 775 { } instance of movieClip 769 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b1.play(); _root.ground.b1.play(); } } movieClip 777 { } 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 545 { 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 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance vcam of movieClip 427 { 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 430 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } instance trans of movieClip 477 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } movieClip 780 { 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 780 { 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 782 { } movieClip 783 { frame 79 { stop(); } } movieClip 784 { } movieClip 785 { 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 787 { } movieClip 789 { } movieClip 791 { } movieClip 793 { } movieClip 794 { } movieClip 795 { frame 1 { stop(); } } instance bell1 of movieClip 795 { 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 795 { 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 795 { 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 798 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 799 { instance of movieClip 798 { onClipEvent (enterFrame) { if (_root.bellMode == 3) { this.gotoAndStop(2); } } } } instance of movieClip 545 { 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 430 { 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 802 { } movieClip 803 { } instance of movieClip 564 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 300; this._y = _root.vcam._y - 300; } } movieClip 806 { } movieClip 809 { } movieClip 811 { } movieClip 814 { } movieClip 818 { frame 1 { stop(); } } movieClip 820 { } movieClip 821 { frame 1 { stop(); } frame 44 { if (!_root.mute) { _root.FallNoise.start(0, 1); } } } instance of movieClip 821 { 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 545 { 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 823 { } movieClip 825 { } movieClip 834 { frame 1 { stop(); } } movieClip 838 { } movieClip 839 { } movieClip 840 { } movieClip 841 { } movieClip 843 { } movieClip 844 { } movieClip 845 { } movieClip 846 { } movieClip 847 { } movieClip 848 { } movieClip 849 { } movieClip 850 { frame 1 { stop(); } } movieClip 851 { instance hitThing of movieClip 834 { 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 852 { 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 852 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { if (this._currentframe <= 90) { this.play(); } } } } instance of movieClip 430 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); trace('y is ' + _root.char._y); } } } instance bees of movieClip 851 { 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 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 427 { 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 780 { 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 854 { } movieClip 856 { } movieClip 858 { } movieClip 859 { } movieClip 861 { } movieClip 863 { } movieClip 864 { } movieClip 867 { } movieClip 868 { } movieClip 871 { } movieClip 872 { } movieClip 873 { 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 874 { } movieClip 877 { } movieClip 878 { } movieClip 879 { } movieClip 880 { } instance block of movieClip 880 { 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 881 { } instance of movieClip 881 { 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 560 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 300; this._y = _root.vcam._y - 300; } } movieClip 884 { } movieClip 885 { } movieClip 886 { } instance of movieClip 886 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } movieClip 890 { } movieClip 899 { } movieClip 902 { } movieClip 905 { } movieClip 914 { } movieClip 915 { } movieClip 918 { } movieClip 921 { } movieClip 924 { } movieClip 925 { } movieClip 927 { } movieClip 930 { } movieClip 932 { } movieClip 935 { } movieClip 937 { } movieClip 940 { } movieClip 945 { } instance of movieClip 545 { 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 947 { } movieClip 949 { } movieClip 953 { } movieClip 955 { } movieClip 959 { } movieClip 967 { frame 34 { stop(); } } movieClip 968 { 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 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p3.play(); } } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } instance of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 427 { 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 769 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b1.play(); _root.ground.b1.play(); } } instance of movieClip 769 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b2.play(); _root.ground.b2.play(); } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p5.play(); } } } movieClip 972 { } movieClip 973 { } movieClip 974 { } movieClip 975 { } movieClip 977 { 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 977 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 22 { _root.nextFrame(); } frame 23 { stop(); _root.trans.gotoAndPlay(16); } instance of movieClip 746 { 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 980 { on (release) { nextFrame(); } } button 986 { on (release) { gotoAndStop(1); } } movieClip 987 { 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 988 { on (release) { nextFrame(); } } button 989 { on (release) { gotoAndStop(1); } } movieClip 990 { 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 991 { on (release) { nextFrame(); } } button 992 { on (release) { gotoAndStop(1); } } movieClip 993 { 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 994 { on (release) { nextFrame(); } } button 995 { on (release) { gotoAndStop(1); } } movieClip 996 { 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 997 { on (release) { nextFrame(); } } button 998 { on (release) { gotoAndStop(1); } } movieClip 999 { 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 1000 { on (release) { nextFrame(); } } button 1001 { on (release) { gotoAndStop(1); } } movieClip 1002 { 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 1003 { instance of movieClip 990 { onClipEvent (load) { this.gotoAndStop(4); } } instance of movieClip 993 { onClipEvent (load) { this.gotoAndStop(4); } } instance of movieClip 999 { onClipEvent (load) { this.gotoAndStop(6); } } instance of movieClip 1002 { 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 1005 { instance b1 of movieClip 746 { 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 477 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 24 { _root.nextFrame(); } instance trans of movieClip 477 { 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 564 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } movieClip 1008 { } movieClip 1010 { } movieClip 1011 { instance of movieClip 1010 { onClipEvent (enterFrame) { if (this.hitTest(_root.player_mc)) { _root.deadtrans.play(); } } } instance of movieClip 1010 { onClipEvent (enterFrame) { if (this.hitTest(_root.player_mc)) { _root.deadtrans.play(); } } } } movieClip 1017 { } movieClip 1020 { } movieClip 1021 { } movieClip 1024 { } movieClip 1025 { } movieClip 1027 { } movieClip 1028 { } movieClip 1030 { } movieClip 1033 { } movieClip 1034 { } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } movieClip 1038 { } movieClip 1039 { } movieClip 1042 { } movieClip 1045 { } movieClip 1047 { } movieClip 1050 { } movieClip 1053 { } movieClip 1055 { } instance of movieClip 821 { 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 545 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } movieClip 1057 { instance p1 of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance p2 of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } } instance of movieClip 769 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b2.play(); _root.ground.b2.play(); } } instance of movieClip 769 { onClipEvent (release) { if (this._currentframe == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } _root.b1.play(); _root.ground.b1.play(); } } movieClip 1059 { } movieClip 1060 { 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 1060 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 427 { 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 430 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } instance deadtrans of movieClip 780 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 26 { _root.nextFrame(); } frame 27 { stop(); _root.trans.gotoAndPlay(16); } movieClip 1062 { } movieClip 1064 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webfive = true; } } movieClip 1066 { } movieClip 1068 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webthree = true; } } movieClip 1070 { } movieClip 1072 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webone = true; } } movieClip 1074 { } movieClip 1076 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webfour = true; } } movieClip 1078 { } movieClip 1080 { frame 1 { stop(); } frame 2 { if (!_root.mute) { _root.CrumpleNoise.start(0, 1); } } frame 10 { stop(); _root.webtwo = true; } } movieClip 1083 { } movieClip 1087 { } movieClip 1093 { } movieClip 1095 { } movieClip 1097 { } movieClip 1116 { } movieClip 1117 { frame 75 { if (!_root.mute) { _root.HootNoise.start(0, 1); } } } // unknown tag 88 length 56 movieClip 1121 { } movieClip 1123 { } movieClip 1125 { } movieClip 1127 { } movieClip 1128 { frame 1 { stop(); } instance of movieClip 1064 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1068 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1072 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1076 { onClipEvent (release) { if (this._currentframe <= 10) { this.play(); } } } instance of movieClip 1080 { 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 1128 { 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 1130 { } 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 1060 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance of movieClip 430 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } instance deadtrans of movieClip 780 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 28 { _root.nextFrame(); } frame 29 { _root.trans.gotoAndPlay(16); _root.nextFrame(); } movieClip 1133 { } movieClip 1135 { } movieClip 1136 { } movieClip 1139 { } movieClip 1141 { } movieClip 1142 { } movieClip 1146 { } movieClip 1147 { } movieClip 1149 { } movieClip 1151 { } movieClip 1159 { } movieClip 1160 { } movieClip 1162 { } movieClip 1163 { frame 24 { stop(); } } movieClip 1166 { } movieClip 1169 { } movieClip 1170 { } movieClip 1172 { } 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 1176 { } movieClip 1177 { } instance of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 427 { 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 477 { 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 545 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.deadtrans.play(); } } } instance of movieClip 564 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } movieClip 1182 { } movieClip 1184 { } movieClip 1187 { } movieClip 1188 { } movieClip 1189 { 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 1192 { 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 1195 { 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 1198 { 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 1201 { 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 1204 { 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 1207 { 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 1210 { frame 2 { if (!_root.mute) { _root.MotorNoise.start(0, 1); } } frame 15 { if (!_root.mute) { _root.WoodNoise.start(0, 1); } } frame 23 { stop(); } } movieClip 1211 { frame 1 { stop(); } frame 8 { stop(); } } movieClip 1214 { } movieClip 1216 { } movieClip 1220 { frame 1 { stop(); } } movieClip 1221 { frame 1 { stop(); } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p3.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p5.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p6.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p7.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p8.play(); } } } movieClip 1225 { } movieClip 1226 { } button 1227 { on (release) { if (_root.ledgeone == false) { _root.wood.gotoAndStop(6); _root.ledgeone = true; } else { _root.wood.gotoAndStop(7); } } } button 1228 { on (release) { if (_root.ledgeone == false) { _root.wood.gotoAndStop(4); } else { _root.wood.gotoAndStop(9); } } } button 1229 { 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 1232 { } movieClip 1233 { } movieClip 1234 { } movieClip 1236 { } movieClip 1238 { } movieClip 1239 { frame 7 { stop(); } frame 19 { _root.spider.gotoAndStop(1); } } movieClip 1241 { } movieClip 1244 { } movieClip 1245 { 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 1246 { frame 1 { stop(); } instance of movieClip 1236 { onClipEvent (enterFrame) { if (this.hitTest(_root.char)) { _root.spider.gotoAndStop(2); } } } frame 2 { stop(); } instance of movieClip 1238 { onClipEvent (enterFrame) { if (!this.hitTest(_root.char)) { _root.spider.spider2.play(); } } } frame 3 { stop(); } } instance spider of movieClip 1246 { 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 1249 { frame 1 { stop(); } } movieClip 1250 { } instance of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } instance vcam of movieClip 427 { 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 1060 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; this._y = _root.vcam._y - 250; } } movieClip 1253 { } movieClip 1254 { } movieClip 1255 { } movieClip 1256 { } movieClip 1258 { 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 1258 { 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 564 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 250; } } movieClip 1261 { 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 1261 { onClipEvent (enterFrame) { if (_root.pressedd == true) { this.play(); } } } movieClip 1264 { } movieClip 1265 { } movieClip 1268 { } movieClip 1270 { } instance of movieClip 769 { onClipEvent (release) { _root.b1.play(); _root.ground.b2.play(); this.play(); } } instance of movieClip 505 { onClipEvent (release) { _root.lift2.play(); _root.ground.lift2.play(); } } movieClip 1272 { } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p5.play(); } } } movieClip 1273 { frame 1 { stop(); } frame 14 { stop(); } } instance of movieClip 769 { onClipEvent (release) { _root.bear2.play(); _root.ground.bear2.play(); this.play(); } } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p4.play(); } } } movieClip 1276 { } movieClip 1277 { } movieClip 1280 { } instance of movieClip 821 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p6.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p3.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p2.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p1.play(); } } } instance of movieClip 1221 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.char)) { this.play(); _root.ground.p7.play(); } } } instance of movieClip 821 { 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 1282 { frame 1 { stop(); } frame 100 { stop(); } } movieClip 1283 { instance lift2 of movieClip 1282 { onClipEvent (enterFrame) { if (_root.pressedd == true) { this.play(); } } } } instance trans of movieClip 477 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } movieClip 1286 { } movieClip 1287 { } movieClip 1288 { } movieClip 1289 { } movieClip 1291 { 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 1291 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 380; } } instance of movieClip 424 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 250; } } instance vcam of movieClip 427 { onClipEvent (load) { Easespeed = 25; } onClipEvent (enterFrame) { endY = _root.char._y - 100; this._y += (endY - _y) / Easespeed; } } movieClip 1293 { } frame 34 { _root.nextFrame(); } instance trans of movieClip 477 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 35 { _root.trans.gotoAndPlay(16); } movieClip 1295 { } movieClip 1298 { } movieClip 1299 { } movieClip 1300 { } movieClip 1303 { } movieClip 1305 { } movieClip 1307 { } movieClip 1310 { } movieClip 1313 { } movieClip 1315 { } movieClip 1317 { } movieClip 1318 { } movieClip 1319 { } movieClip 1321 { } movieClip 1323 { } movieClip 1325 { } movieClip 1327 { } movieClip 1328 { } movieClip 1329 { } movieClip 1330 { frame 1 { stop(); } frame 50 { stop(); _root.trans.play(); } } instance of movieClip 1330 { 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 1332 { } 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 1334 { } movieClip 1337 { } movieClip 1338 { } movieClip 1339 { } movieClip 1342 { } movieClip 1343 { } movieClip 1344 { } movieClip 1347 { } movieClip 1348 { } movieClip 1349 { } movieClip 1350 { } movieClip 1353 { } movieClip 1354 { } movieClip 1355 { } movieClip 1356 { frame 625 { stop(); } } movieClip 1357 { instance nextLev of movieClip 387 { onClipEvent (enterFrame) { if (this.hitTest(_root.player_mc) && _root.trans._currentframe <= 4) { _root.trans.play(); } } } } movieClip 1358 { } movieClip 1363 { } movieClip 1364 { } movieClip 1368 { } movieClip 1369 { frame 151 { stop(); } } movieClip 1370 { } movieClip 1373 { } movieClip 1374 { } movieClip 1375 { } movieClip 1376 { } movieClip 1378 { frame 1 { stop(); } frame 14 { _root.prevFrame(); _root.player_mc._y = 107.85; } } instance deadtrans of movieClip 1378 { onClipEvent (enterFrame) { this._y = _root.vcam._y - 380; } } instance trans of movieClip 477 { 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 1380 { } movieClip 1381 { } movieClip 1382 { } instance of movieClip 1382 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } movieClip 1384 { } movieClip 1386 { } movieClip 1389 { } movieClip 1392 { } movieClip 1395 { } movieClip 1398 { } movieClip 1399 { } movieClip 1400 { } movieClip 1403 { } movieClip 1406 { } movieClip 1407 { } movieClip 1408 { 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 1410 { } movieClip 1412 { } instance of movieClip 1412 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance vcam of movieClip 427 { 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 430 { onClipEvent (enterFrame) { if (Key.isDown(32)) { trace(_root.char._x); } } } movieClip 1414 { } instance overlay of movieClip 424 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 350; } } instance trans of movieClip 477 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } instance deadtrans of movieClip 780 { onClipEvent (enterFrame) { this._x = _root.vcam._x - 380; } } frame 40 { _root.nextFrame(); } frame 41 { stop(); } movieClip 1418 { } movieClip 1424 { } movieClip 1425 { } button 1427 { on (press) { _root.outro.nextFrame(); } } movieClip 1430 { } movieClip 1435 { } movieClip 1438 { } movieClip 1439 { } movieClip 1443 { } movieClip 1445 { } movieClip 1453 { } movieClip 1455 { } button 1457 { on (press) { stopAllSounds(); _root.Music2.stop(); _root.gotoAndPlay('titlescreen'); } } movieClip 1458 { frame 1 { stop(); } instance of movieClip 1382 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } frame 2 { stop(); } frame 3 { stop(); } instance of movieClip 1382 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } frame 4 { stop(); } frame 4 { _root.stopAllSounds(); } }




http://swfchan.com/28/135188/info.shtml
Created: 9/2 -2019 15:44:37 Last modified: 9/2 -2019 15:44:37 Server time: 05/11 -2024 08:32:03