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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM87187817-24DC&rnd=87187817" width="1" height="1"></div>

armorgames together-6744.swf

This is the info page for
Flash #267598

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


ActionScript [AS1/AS2]
Combined Code
movieClip 13 { } movieClip 14 cloudSunset { } movieClip 16 lineG { } movieClip 18 lineB { } movieClip 20 bubble { } movieClip 49 { frame 25 { _parent.removeMovieClip(); } } movieClip 53 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 54 dot { } movieClip 56 testDot { } movieClip 58 monsterBelly { } movieClip 71 { } movieClip 78 monsterHead { frame 2 { _global.bite = false; } frame 21 { _global.bite = true; } } movieClip 79 cloud { } movieClip 82 heartTrail { frame 30 { this.removeMovieClip(); } } movieClip 84 { } movieClip 85 water_light { } movieClip 88 starsClose { } movieClip 91 starsFar { } movieClip 94 starsMed { } movieClip 115 dotCloud { frame 21 { removeMovieClip(this); } } movieClip 125 splash { frame 19 { removeMovieClip(this); } } movieClip 139 heartExplode { frame 14 { removeMovieClip(this); } } movieClip 141 blackDot { } movieClip 171 { } movieClip 203 { } movieClip 232 { } movieClip 234 blank { } movieClip 236 island { } movieClip 245 { } movieClip 255 { } movieClip 265 { } movieClip 268 { } movieClip 270 { } movieClip 277 { } movieClip 294 { } movieClip 295 heart { } movieClip 299 bellyLight { frame 1 { stop(); } frame 17 { _root.actions.leaveBelly = true; } } frame 1 { _root.music = true; _root.sfx = true; _root.quality = 'HIGH'; _root.showCursor = false; _root.gameLoop = false; Mouse.hide(); stop(); } instance of movieClip 234 blank { onClipEvent (load) { var ratio = 0; var percLoaded = 0; var percInc = 2.5; _root.purpleFade._alpha = 0; var numClouds = 100; var cloudI = 0; i = 0; while (i < numClouds) { c = _root.cloudH.attachMovie('cloudSunset', 'c' + cloudI, cloudI); c._x = random(1100) - 500; c._y = 50 + i * 5; c._yscale = (i / numClouds) * 90 + 10; c._xscale = c._yscale; c.cloud.gotoAndStop(random(5) + 1); if (random(2)) { c.cloud._xscale *= -1; } ++cloudI; ++i; } } onClipEvent (enterFrame) { ratio = _root.getBytesLoaded() / _root.getBytesTotal(); if (percLoaded < ratio * 100) { percLoaded += percInc; } else { if (_root.purpleFade._alpha < 100) { _root.purpleFade._alpha += 4; } else { _root.armorGames.play(); } } i = 0; while (i < numClouds) { c = _root.cloudH['c' + i]; c._x += 10 * c._xscale / 100; if (c._x < -500) { c._x += 1100; } else { if (c._x > 600) { c._x -= 1100; } } ++i; } } } movieClip 304 { } movieClip 306 { } movieClip 309 { } movieClip 320 { } movieClip 326 { } button 332 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 336 { frame 1 { stop(); } frame 143 { _root.play(); } } frame 2 { _root.attachMovie('blank', 'blank10', 10); _root.titleMusic = new Sound(_root.blank10); _root.titleMusic.attachSound('titleMusic'); _root.titleMusic.setVolume(100); _root.titleMusic.start(); _root.titleMusic.onSoundComplete = function () { _root.titleMusic.start(0, 9999); }; stop(); } movieClip 339 { } movieClip 341 { } movieClip 342 { } instance actions of movieClip 234 blank { onClipEvent (load) { var cursorHead = _root.cursorHead; cursorHead._rotation = -30; cursorHead._alpha = 0; var titleVol = 100; myMode = 'firstTime'; Mouse.hide(); _root.h1.gotoAndStop(1); _root.h2.gotoAndStop(2); _root.h3.gotoAndStop(3); _root.h4.gotoAndStop(4); _root.frameBot._alpha = 0; _root.frameTop._alpha = 0; playedGirl = false; _root.logo._alpha = 0; _root.logo._y = 150; alphDec = 10; _root.bottoms._alpha = 0; _root.butHow._alpha = 0; _root.butPlay._alpha = 0; if (_root.gameLoop) { _root.purpleFade._visible = false; } } onClipEvent (enterFrame) { cursorHead._x = _root._xmouse; cursorHead._y = _root._ymouse; if (_root.music) { _root.titleMusic.setVolume(titleVol); } else { _root.titleMusic.setVolume(0); } if (myMode != 'main' && myMode != 'startPlay' && myMode != 'firstTime') { _root.girl._y -= (_root.girl._y - 356) * 0.2; _root.bottoms._y -= (_root.bottoms._y - 340) * 0.2; _root.butNext._visible = true; } else { _root.girl._y -= (_root.girl._y - 216) * 0.2; _root.bottoms._y -= (_root.bottoms._y - 270) * 0.2; _root.butNext._visible = false; } if (_root.purpleFade._alpha > 0) { _root.purpleFade._alpha -= 4; } else { _root.purpleFade._visible = false; } if (myMode == 'howTo1') { _root.h1._y -= _root.h1._y * 0.2; _root.h1._alpha = ((_root.h1._y + 300) / 300) * 100; if (_root.logo._alpha > 0) { _root.logo._alpha -= alphDec; _root.butHow._alpha = _root.logo._alpha; _root.butPlay._alpha = _root.butHow._alpha; } } else { if (myMode == 'howTo2') { _root.h2._y -= _root.h2._y * 0.2; _root.h1._y -= _root.h1._y * 0.2; _root.h2._alpha = ((_root.h2._y + 300) / 300) * 100; _root.h1._alpha = 100 - _root.h2._alpha; if (_root.logo._alpha > 0) { _root.logo._alpha -= alphDec; _root.butHow._alpha = _root.logo._alpha; _root.butPlay._alpha = _root.butHow._alpha; } } else { if (myMode == 'howTo3') { _root.h3._y -= _root.h3._y * 0.2; _root.h2._y -= _root.h2._y * 0.2; _root.h1._y -= _root.h1._y * 0.2; _root.h3._alpha = ((_root.h3._y + 300) / 300) * 100; _root.h2._alpha = 100 - _root.h3._alpha; if (_root.logo._alpha > 0) { _root.logo._alpha -= alphDec; _root.butHow._alpha = _root.logo._alpha; _root.butPlay._alpha = _root.butHow._alpha; } if (_root.h1._alpha > 0) { _root.h1._alpha -= alphDec; } if (_root.h2._alpha > 0) { _root.h2._alpha -= alphDec; } } else { if (myMode == 'howTo4') { _root.h4._y -= _root.h4._y * 0.2; _root.h3._y -= _root.h3._y * 0.2; _root.h2._y -= _root.h2._y * 0.2; _root.h1._y -= _root.h1._y * 0.2; _root.h4._alpha = ((_root.h4._y + 300) / 300) * 100; _root.h3._alpha = 100 - _root.h4._alpha; if (_root.h1._alpha > 0) { _root.h1._alpha -= alphDec; } if (_root.h2._alpha > 0) { _root.h2._alpha -= alphDec; } if (_root.h3._alpha > 0) { _root.h3._alpha -= alphDec; } if (_root.logo._alpha > 0) { _root.logo._alpha -= alphDec; _root.butHow._alpha = _root.logo._alpha; _root.butPlay._alpha = _root.butHow._alpha; } } else { if (myMode == 'main') { if (_root.h4._alpha > 0) { _root.h4._alpha -= 5; if (_root.h1._alpha > 0) { _root.h1._alpha -= alphDec; } if (_root.h2._alpha > 0) { _root.h2._alpha -= alphDec; } if (_root.h3._alpha > 0) { _root.h3._alpha -= alphDec; } _root.butHow._alpha = 100 - _root.h4._alpha; _root.butPlay._alpha = _root.butHow._alpha; _root.logo._alpha = _root.butHow._alpha; } else { _root.h4._alpha = 0; _root.h3._alpha = 0; _root.h2._alpha = 0; _root.h1._alpha = 0; _root.h4._y = -300; _root.h3._y = -300; _root.h2._y = -300; _root.h1._y = -300; _root.butHow._alpha = 100; _root.butPlay._alpha = 100; _root.logo._alpha = 100; } _root.logo._y -= (_root.logo._y - 80) * 0.2; } else { if (myMode == 'startPlay') { if (titleVol > 0) { titleVol -= 0.5; if (titleVol < 25) { if (!playedGirl) { playedGirl = true; _root.girl.play(); } } } else { _root.titleMusic.stop(); } _root.frameTop._y -= _root.frameTop._y * 0.4; _root.frameBot._y -= (_root.frameBot._y - 258) * 0.4; if (_root.frameTop._alpha < 100) { _root.frameTop._alpha += 5; _root.frameBot._alpha = _root.frameTop._alpha; } if (cursorHead._alpha > 0) { cursorHead._alpha -= 10; _root.logo._alpha -= 10; _root.butPlay._alpha -= 10; _root.butHow._alpha -= 10; _root.bottoms._alpha -= 10; } else { _root.logo._visible = false; _root.butPlay._visible = false; _root.butHow._visible = false; _root.bottoms._visible = false; } } else { if (myMode == 'firstTime') { _root.logo._y -= (_root.logo._y - 80) * 0.2; if (_root.logo._alpha < 100) { _root.logo._alpha += 4; } _root.bottoms._alpha = _root.logo._alpha; _root.butHow._alpha = _root.bottoms._alpha; _root.butPlay._alpha = _root.bottoms._alpha; _root.cursorHead._alpha = _root.logo._alpha; } } } } } } } } onClipEvent (mouseDown) { Mouse.hide(); } } movieClip 346 { } movieClip 350 { } movieClip 351 { frame 10 { stop(); } } button 353 { on (press) { if (_root.actions.myMode == 'howTo1') { _root.actions.myMode = 'howTo2'; } else { if (_root.actions.myMode == 'howTo2') { _root.actions.myMode = 'howTo3'; } else { if (_root.actions.myMode == 'howTo3') { _root.actions.myMode = 'howTo4'; } else { if (_root.actions.myMode == 'howTo4') { _root.actions.myMode = 'main'; } } } } } } movieClip 358 { } movieClip 362 { } movieClip 366 { } button 367 { on (press) { if (_root.actions.myMode != 'startPlay' && (_root.actions.myMode == 'main' || _root.actions.myMode == 'firstTime')) { _root.actions.myMode = 'startPlay'; } } } movieClip 371 { } button 372 { on (press) { if (_root.actions.myMode != 'startPlay' && (_root.actions.myMode == 'main' || _root.actions.myMode == 'firstTime')) { _root.actions.myMode = 'howTo1'; _root.h4._alpha = 0; _root.h3._alpha = 0; _root.h2._alpha = 0; _root.h1._alpha = 0; _root.h4._y = -300; _root.h3._y = -300; _root.h2._y = -300; _root.h1._y = -300; } } } movieClip 390 { frame 1 { if (_root.actions.titleVol < 50) { stop(); this.dress.stop(); } } } movieClip 393 { } movieClip 412 { } movieClip 453 { } movieClip 472 { } movieClip 490 { } movieClip 507 { } movieClip 553 { } movieClip 556 { } movieClip 557 { } movieClip 599 { } movieClip 616 { } movieClip 627 { } movieClip 628 { } movieClip 630 { } movieClip 644 { } movieClip 645 { } movieClip 656 { } movieClip 657 { } movieClip 658 { } movieClip 660 { frame 1 { stop(); } frame 453 { _root.play(); } } movieClip 665 { } button 667 { on (press) { getURL('http://onemrbean.blogspot.com', ''); } } movieClip 671 { } button 672 { on (press) { getURL('http://jayisgames.com/cgdc8', ''); } } movieClip 676 { } button 677 { on (press) { getURL('http://twitter.com/armorgames', ''); } } movieClip 681 { } button 682 { on (press) { getURL('http://www.facebook.com/pages/Armor-Games/19522089061', ''); } } movieClip 686 { } button 687 { on (press) { getURL('http://armorgames.com/', ''); } } movieClip 688 { } movieClip 690 { } frame 3 { _root.sfx = true; _root.music = true; i = 0; while (i < 9) { _root.attachMovie('blank', 'blank' + (i + 1), i + 5); ++i; } if (_root.music) { _root.mainReg = new Sound(_root.blank1); _root.mainReg.attachSound('mainReg'); _root.mainReg.setVolume(0); _root.mainReg.start(); _root.mainReg.onSoundComplete = function () { _root.mainReg.start(0, 9999); _root.mainMuff.start(0, 9999); }; _root.mainMuff = new Sound(_root.blank2); _root.mainMuff.attachSound('mainMuff'); _root.mainMuff.setVolume(0); _root.mainMuff.start(); _root.mainMuff.onSoundComplete = function () {}; _root.heartClose = new Sound(_root.blank3); _root.heartClose.attachSound('heartClose'); _root.heartClose.setVolume(0); _root.heartClose.start(); _root.heartClose.onSoundComplete = function () { _root.heartClose.start(0, 9999); }; _root.monClose = new Sound(_root.blank4); _root.monClose.attachSound('monClose'); _root.monClose.setVolume(0); _root.monClose.start(); _root.monClose.onSoundComplete = function () { _root.monClose.start(0, 9999); }; _root.monBelly = new Sound(_root.blank5); _root.monBelly.attachSound('monBelly'); _root.monBelly.setVolume(0); _root.monBelly.start(); _root.monBelly.onSoundComplete = function () { _root.monBelly.start(0, 9999); }; _root.travelFast = new Sound(_root.blank6); _root.travelFast.attachSound('travelFast'); _root.travelFast.setVolume(0); _root.travelFast.start(); _root.travelFast.onSoundComplete = function () { _root.travelFast.start(0, 9999); }; } _root.dist = function (ob1, ob2) { xDist = ob1._x - ob2._x; yDist = ob1._y - ob2._y; return Math.sqrt(xDist * xDist + yDist * yDist); }; _root.angleTo = function (me, him) { distX = me._x - him._x; distY = me._y - him._y; rad = Math.atan2(distY, distX); rot = rad * 180 / Math.PI + 180; return rot; }; _root.angleTo2 = function (me, addX1, addY1, him, addX2, addY2) { distX = me._x + addX1 - (him._x + addX2); distY = me._y - addY1 - (him._y - addY2); rad = Math.atan2(distY, distX); rot = rad * 180 / Math.PI + 180; return rot; }; _root.getDotSpeeds = function (startDeg, speed) { rot = startDeg; ySpeed = speed * Math.cos(0.0174532925199433 * rot); xSpeed = speed * Math.sin(0.0174532925199433 * rot); return [xSpeed, ySpeed]; }; _root.angledStart = function (axis, angle, dist) { if (axis == 'x') { return dist * Math.sin(0.0174532925199433 * angle); } else { return dist * Math.cos(0.0174532925199433 * angle); } }; _root.rotDiff = function (obj1, obj2) { rot1 = obj1._rotation + 180; rot2 = obj2._rotation + 180; if (Math.abs(rot1 - rot2) <= 180) { return Number(Math.abs(rot1 - rot2)); } else { return Number(360 - Math.abs(rot1 - rot2)); } }; stop(); } movieClip 692 { } movieClip 703 { } movieClip 704 { } movieClip 707 { } movieClip 717 { } movieClip 728 { } movieClip 777 { } // unknown tag 88 length 197 movieClip 781 { frame 1 { stop(); } } movieClip 784 { frame 1 { stop(); } } movieClip 787 { frame 1 { stop(); } } movieClip 790 { frame 1 { stop(); } } movieClip 793 { frame 1 { stop(); } } movieClip 795 { frame 1 { stop(); } } movieClip 798 { frame 1 { stop(); } } movieClip 801 { frame 1 { stop(); } } movieClip 804 { frame 1 { stop(); } } movieClip 806 { frame 1 { stop(); } } movieClip 809 { frame 1 { stop(); } } instance actions of movieClip 234 blank { onClipEvent (load) { var boy = _root.boy; var girl = _root.girl; var dotH = _root.dotH; var fxBehindH = _root.fxBehindH; var waterLight = _root.waterLight; var surface = _root.surface; var starsH = _root.starsH; var fxFrontH = _root.fxFrontH; var monsterH = _root.monsterH; var monsterHeadH = _root.monsterHeadH; var monsterCol = _root.monsterCol; monsterCol._visible = false; var biteBlack = _root.biteBlack; biteBlack._visible = false; biteBlack._alpha = 200; var whiteFade = _root.whiteFade; whiteFade._visible = false; var bg = _root.bg; var arms = _root.arms; arms._visible = false; var c; var w; var s; var s2; var arrow = _root.arrow; arrow._visible = false; var boyArm = _root.boyArm; var girlArm = _root.girlArm; var twirlers = _root.twirlers; twirlers._yscale = 115; twirlers._xscale = 115; var galaxy = _root.galaxy; galaxy._visible = false; var bubblesH = _root.bubblesH; var bubblesMask = _root.bubblesMask; var cursorHead = _root.cursorHead; cursorHaed._alpha = 0; var speedLines = _root.speedLines; speedLines._visible = false; speedLines._alpha = 0; var endWhite = _root.endWhite; endWhite._alpha = 0; endWhite._visible = false; var monOpenJaw = _root.monOpenJaw; var monBite = _root.monBite; var monHeadDust = _root.snd_monsterDust; var thrustCharge = _root.thrustCharge; var thrust = _root.thrust; var heartGet = _root.heartGet; var heartChange = _root.heartChange; var HUDin = _root.HUDin; var HUDout = _root.HUDout; var splash = _root.splash; var altNames = _root.altNames; var blackDotH = _root.blackDotH; blackDotH._alpha = 0; blackDotH._visible = false; var islandH = _root.islandH; var islandH2 = _root.islandH2; islandH2._visible = false; var islandHT = _root.islandHT; islandHT._visible = false; var debug = false; var totalDist = 0; var currAlt = 100; var currLat = 0; var xSpeed = 0; var ySpeed = 0; var endGame = false; var islandDots = new Array(); var islandDots2 = new Array(); var blackDotI = 0; var cursorTimer = 240; var cursorState = 'up'; var cursorReveal = false; var islandDotTimeDef = 12; var islandDotTime = islandDotTimeDef; var myMode = 'none'; var distX; var distY; var rad; var rot; var actualRot = 90; var flySpeed = 0; var lastRot = boy._rotation; var spinDir = 'none'; var spinTimerDef = 2; var spinTimer = spinDirDef; var boyFrame = 5; var rotRate = 0.1; var boyWater = 'above'; var cameFromThrust = false; var spinCircleH = _root.spinCircleH; var gDestX; var gDestY; var gRot = 0; var gRotActual = 0; var gSide = 'right'; var gOverlap = false; var gDist = 50; var gAngle = 90; var gAngAct = gAngle; var glastRot = girl._rotation; var gspinDir = 'none'; var gspinTimer = spinDirDef; var girlFrame = 5; var monster = new Object(); var monsterI = 0; var monDist = 500; var rotDiff = 1; var rot1; var rot2; var monRot = 0; var monsterHeads = new Array(); var inBelly = false; var numBellyPieces = 32; var jawIs = 'closed'; var monFrame = 1; _root.bellyBack._visible = false; _root.bellyFront._visible = false; var leaveBelly = false; var heartChasing = false; var trailI = 101; var heart; var heartTrails = new Array(); var haveHeart = false; var thrusting = false; var earlyThrust = false; var thrustDistX = 250; var thrustDistY = 100; var thrustTimeDef = 16; var thrustTime = thrustTimeDef; var defHeartDist = 750; var nextHeartDist = totalDist + defHeartDist; var readyForHeart = true; var bellyHeartI = 240; var heartRot; var collectedHearts = [false, false, false, false, false, false]; var numHearts = 0; var hudHeartX1 = 635; var hudHeartX2 = 575; var hudHeartTimeDef = 120; var hudHeartTime = 0; var heartType = 0; var lastHeartType = 0; altNames._alpha = 0; altNames._visible = false; var altPad = 50; var altNameYs = [0, 284.4, 230.6, 176.8, 123, 69.2, 15.4, 150]; var altNameTime = 0; var myAlt = 2; _root.h7._visible = false; _root.h7._alpha = 0; var mainRegVol = 0; var mainMuffVol = 0; var heartCloseVol = 0; var monCloseVol = 0; var monBellyVol = 0; var travelFastVol = 0; var endGameInc = 0.2; var newDot; var dots = new Array(); var blackDots = new Array(); var dotI = 0; var numClouds = 100; var cloudI = 0; i = 0; while (i < numClouds) { c = _root.fxBehindH.attachMovie('cloud', 'c' + cloudI, cloudI); c._x = random(1100) - 500; c._y = -50 - i * 5; c._yscale = (i / numClouds) * 90 + 10; c._xscale = c._yscale; c.cloud.gotoAndStop(random(5) + 1); ++cloudI; ++i; } fxBehindH._visible = false; var numWaters = 20; var waterI = 0; i = 0; while (i < numWaters) { w = waterLight.attachMovie('water_light', 'light' + waterI, waterI); w._x = random(1000) - 200; w._yscale = (i / numWaters) * 90 + 10; w._xscale = w._yscale; w._y = surface._y + (w._xscale / 100) * (300 * surface._yscale / 100); w._alpha = (i / numWaters) * 75 + 25; ++waterI; ++i; } waterLight._visible = false; starTypes = ['starsFar', 'starsMed', 'starsClose']; i = 0; while (i < 3) { s = starsH.attachMovie(starTypes[i], 'star' + i, i); s._x = 0; s._y = 0; s.myDepth = i; ++i; } starsH._alpha = 0; starsH._visible = false; var numBubbles = 50; var bubbleI = 0; i = 0; while (i < numBubbles) { c = bubblesH.attachMovie('bubble', 'b' + bubbleI, bubbleI); c._x = random(800) - 100; c._y = random(500) - 100; c._yscale = random(750) / 10 + 25; c._xscale = c._yscale; c._alpha = c._xscale; c.myAlpha = c._xscale; ++bubbleI; ++i; } c = islandH.attachMovie('island', 'island', 1); c._y = 0; c._x = -900; c._yscale = 200; c._xscale = 200; c.girl._visible = false; c = islandH2.attachMovie('island', 'island', 1); c._y = 0; c._x = -900; c._yscale = 200; c._xscale = 200; c.girl._visible = false; createMonsterHead = function (type, xVal, yVal, rot, scale, startFrame) { m = monsterH.attachMovie(type, 'm' + monsterI, monsterI); m._x = xVal; m._y = yVal; m.myXspeed = flySpeed * Math.cos(0.0174532925199433 * (monRot - 90)) / 2; m.myYspeed = flySpeed * Math.sin(0.0174532925199433 * (monRot - 90)) / 2; if (m.myXspeed > 0) { m.myXspeed += 9; } else { m.myXspeed -= 9; } if (m.myYspeed > 0) { m.myYspeed += 9; } else { m.myYspeed -= 9; } m._rotation = rot; m._visible = false; m._xscale = scale; m._yscale = scale; m.gotoAndStop(startFrame); m.startCoords = [m._x, m._y]; m.bellyVel = [Math.cos(0.0174532925199433 * (rot - 90)), Math.sin(0.0174532925199433 * (rot - 90))]; monsterHeads.push(monsterI); c = monsterCol.attachMovie('monsterHead', 'm' + monsterI, monsterI); c._x = m._x; c._y = m._y; c._rotation = m._rotation; c._xscale = m._xscale; c._yscale = m._yscale; c.gotoAndStop(startFrame); ++monsterI; if (monsterI > 100) { monsterI = 0; } if (jawIs != 'closed' && !inBelly) { m = monsterHeadH.attachMovie(type, 'head', 105); m._x = xVal; m._y = yVal; m._rotation = monRot; m.gotoAndStop(monFrame); c = monsterCol.attachMovie(type, 'head', 105); c._x = xVal; c._y = yVal; c._rotation = monRot; c.gotoAndStop(monFrame); } }; createHeart = function (xVal, yVal, rot, speed) { heart = dotH.attachMovie('heart', 'heart', 201); heart._x = 300 + xVal; heart._y = 150 - yVal; heart._rotation = rot; heart.mySpeed = speed; heart.reachedSpeed = false; d = 50; for (;;) { if (!(heart._y < -d || heart._y > 300 + d || heart._x < -d || heart._x > 600 + d)) break; if (heart._y < -d) { heart._y += 10; } else { if (heart._y > 300 + d) { heart._y -= 10; } } if (heart._x < -d) { heart._x += 10; } else { if (heart._x > 600 + d) { heart._x -= 10; } } } if (inBelly) { heart.gotoAndStop(6); heartType = 1; } else { if (currAlt - 13 - (boy._y - heart._y) < -1000) { heart.gotoAndStop(1); heartType = 6; } else { if (currAlt - 13 - (boy._y - heart._y) < 0) { heart.gotoAndStop(2); heartType = 5; } else { if (currAlt - 13 - (boy._y - heart._y) < 1000) { heart.gotoAndStop(3); heartType = 4; } else { if (currAlt - 13 - (boy._y - heart._y) < 2000) { heart.gotoAndStop(4); heartType = 3; } else { if (currAlt - 13 - (boy._y - heart._y) >= 2000) { heart.gotoAndStop(5); heartType = 2; } } } } } } lastHeartType = heartType; }; getHeart = function () { if (collectedHearts[heartType - 1] == false) { collectedHearts[heartType - 1] = true; ++numHearts; } makeHeartExplode(arrow, 110); hudHeartTime = hudHeartTimeDef; heart.removeMovieClip(); haveHeart = true; heartChasing = false; arrow._visible = true; if (_root.sfx) { heartGet.play(); } }; makeHeartExplode = function (obj, scale) { h = fxFrontH.attachMovie('heartExplode', 'hExplode', 500); h._x = obj._x; h._y = obj._y; h._rotation = obj._rotation; h._yscale = scale; h._xscale = h._yscale; }; createHeartTrail = function (obj, objName) { t = dotH.attachMovie('heartTrail', 'heartTrail' + trailI, trailI); t._x = obj._x + random(50) - 25; t._y = obj._y + random(50) - 25; t.myParent = objName; t.gotoAndPlay(random(10) + 1); heartTrails.push(trailI); ++trailI; if (trailI >= 200) { trailI = 101; } }; moveHeartTrails = function (style) { if (style == 'angled') { i = heartTrails.length - 1; while (i >= 0) { t = dotH['heartTrail' + heartTrails[i]]; if (t.myParent == 'heart') { t._x -= xSpeed - flySpeed * Math.cos(0.0174532925199433 * (heart._rotation - 90)) * 0.1; t._y -= ySpeed - flySpeed * Math.sin(0.0174532925199433 * (heart._rotation - 90)) * 0.1; } else { if (t.myParent == 'arrow') { if (flySpeed < 20) { t._x -= xSpeed - flySpeed * Math.cos(0.0174532925199433 * (arrow._rotation - 90)) * 0.1; t._y -= ySpeed - flySpeed * Math.sin(0.0174532925199433 * (arrow._rotation - 90)) * 0.1; } else { t._x -= xSpeed - 20 * Math.cos(0.0174532925199433 * (arrow._rotation - 90)) * 0.1; t._y -= ySpeed - 20 * Math.sin(0.0174532925199433 * (arrow._rotation - 90)) * 0.1; } } } if (t._x == undefined) { heartTrails.splice(i, 1); } --i; } } else { if (style == 'static') { i = heartTrails.length - 1; while (i >= 0) { t = dotH['heartTrail' + heartTrails[i]]; t._y -= -2; if (t._x == undefined) { heartTrails.splice(i, 1); } --i; } } } }; createDot = function (person, yVal) { i = ((flySpeed - 10) / 8.5) * 100; if (i > 0 && !inBelly) { if (yVal < 0) { dotFrame = 1; } else { if (yVal < 1200) { dotFrame = 2; } else { dotFrame = 3; } } newDot = dotH.attachMovie('dot', 'dot' + dotI, dotI); newDot._x = person._x - _root.angledStart('x', person._rotation, 45); newDot._y = person._y + _root.angledStart('y', person._rotation, 45); if (dotFrame > 1) { newDot._rotation = random(360); } if (dotFrame == 3) { newDot.star.gotoAndStop(random(3) + 1); } i = ((flySpeed - 10) / 8.5) * 100; if (flySpeed < 19) { newDot._yscale = ((flySpeed - 10) / 8.5) * 100; newDot._xscale = newDot._yscale; } else { newDot._yscale = ((flySpeed - 10) / 20) * 100; newDot._xscale = newDot._yscale; } newDot.gotoAndStop(dotFrame); newDot.myType = dotFrame; newDot.mySpeeds = _root.getDotSpeeds(person._rotation + random(100) / 50, flySpeed / 25 + random(100) / 10); dots.push(dotI); ++dotI; if (dotI > 100) { dotI = 0; } } }; createBlackDot = function (person, yVal) { i = ((flySpeed - 10) / 8.5) * 100; if (i > 0) { newDot = blackDotH.attachMovie('blackDot', 'dot' + dotI, dotI); newDot._x = person._x - _root.angledStart('x', person._rotation, 35); newDot._y = person._y + _root.angledStart('y', person._rotation, 35); newDot._yscale = ((flySpeed - 10) / 8.5) * 100 + (random(400) / 10 - 20); newDot._xscale = newDot._yscale; newDot.mySpeeds = _root.getDotSpeeds(person._rotation + random(100) / 50, flySpeed / 50 + random(100) / 10); newDot._rotation = random(360); blackDots.push(dotI); ++dotI; if (dotI > 100) { dotI = 0; } } }; createSplash = function (xVal, yVal, splashRot, speed) { s = dotH.attachMovie('splash', 'dot' + dotI, dotI); s._x = xVal + xSpeed; s._y = surface._y + surface._height; s._alpha = 75; if (splashRot < 0) { maxSize = (Math.abs(90 - Math.abs(splashRot)) / 90) * 50 + 50; } else { maxSize = (Math.abs(90 - Math.abs(splashRot)) / 90) * 100; } s._yscale = (flySpeed / 18.5) * maxSize; s._xscale = s._yscale; s._xscale *= -1; s.myType = 'splash'; dots.push(dotI); ++dotI; if (dotI > 100) { dotI = 0; } s = dotH.attachMovie('splash', 'dot' + dotI, dotI); s._x = xVal + xSpeed; s._y = surface._y + surface._height; s._alpha = 75; if (splashRot > 0) { maxSize = (Math.abs(90 - Math.abs(splashRot)) / 90) * 50 + 50; } else { maxSize = (Math.abs(90 - Math.abs(splashRot)) / 90) * 100; } s._yscale = (flySpeed / 18.5) * maxSize; s._xscale = s._yscale; s.myType = 'splash'; dots.push(dotI); ++dotI; if (dotI > 100) { dotI = 0; } if (_root.sfx) { splash.play(); } }; goInBelly = function () { biteBlack._visible = true; spinCircleH._visible = false; heart.removeMovieClip(); arrow._visible = false; haveHeart = false; mainMuffVol = 0; mainRegVol = 0; monCloseVol = 0; heartCloseVol = 0; travelFastVol = 0; i = monsterHeads.length - 1; while (i >= 0) { head = monsterH['m' + monsterHeads[i]]; head.removeMovieClip(); col = monsterCol['m' + monsterHeads[i]]; col.removeMovieClip(); monsterHeads.splice(i, 1); --i; } monsterHeadH.head.removeMovieClip(); monsterCol.head.removeMovieClip(); monDist = 300; i = 0; while (i < numBellyPieces) { createMonsterHead('monsterBelly', 300 - _root.angledStart('x', (360 / numBellyPieces) * i, 120 + random(20)), 150 + _root.angledStart('y', (360 / numBellyPieces) * i, 80 + random(20)), (360 / numBellyPieces) * i, 300 + random(50), 1); ++i; } _root.bellyBack._visible = true; _root.bellyFront._visible = true; rotRate = 0.4; _root.bellyLight._visible = true; }; escapeBelly = function () { leaveBelly = false; _root.whiteFade._alpha = 100; _root.whiteFade._visible = true; inBelly = false; _root.bellyBack._visible = false; _root.bellyFront._visible = false; _root.bellyLight._visible = false; biteBlack._visible = false; biteBlack._alpha = 200; spinCircleH._visible = true; bellyHeartI = 240; rotRate = 0.1; heart.removeMovieClip(); monBellyVol = 0; i = monsterHeads.length - 1; while (i >= 0) { head = monsterH['m' + monsterHeads[i]]; head.removeMovieClip(); col = monsterCol['m' + monsterHeads[i]]; col.removeMovieClip(); monsterHeads.splice(i, 1); --i; } monsterHeadH.head.removeMovieClip(); monsterCol.head.removeMovieClip(); }; positionGirlAndArms = function () { if (boy.hitTest(girl._x, girl._y, true)) { if (!gOverlap) { gOverlap = true; if (gSide == 'left') { gSide = 'right'; } else { gSide = 'left'; } } } else { gOverlap = false; } if (gSide == 'left') { gAngle = 90 + flySpeed * 1.5; } else { gAngle = -1 * (90 + flySpeed * 1.5); } gDist = 20 + flySpeed; gAngAct -= (gAngAct - gAngle) * 0.1; gDestX = boy._x + _root.angledStart('x', boy._rotation - gAngAct, gDist); gDestY = boy._y - _root.angledStart('y', boy._rotation - gAngAct, gDist); girl._x -= (girl._x - gDestX) * 0.2; girl._y -= (girl._y - gDestY) * 0.2; gRot = boy._rotation; if (gRotActual < -180) { gRotActual += 360; } else { if (gRotActual > 180) { gRotActual -= 360; } } if (Math.abs(gRotActual - gRot) > 180) { if (gRotActual < gRot) { gRotActual -= (gRotActual + 360 - gRot) * rotRate * 2; } else { gRotActual -= (gRotActual - 360 - gRot) * rotRate * 2; } } else { gRotActual -= (gRotActual - gRot) * rotRate; } girl._rotation = gRotActual; if (lastRot > boy._rotation + 3) { if (spinDir != 'left') { if (spinTimer <= 0) { spinDir = 'left'; spinTimer = spinTimerDef; } else { --spinTimer; } } } else { if (lastRot < boy._rotation - 3) { if (spinDir != 'right') { if (spinTimer <= 0) { spinDir = 'right'; spinTimer = spinTimerDef; } else { --spinTimer; } } } else { if (spinDir != 'none') { if (spinTimer <= 0) { spinDir = 'none'; spinTimer = spinTimerDef; } else { --spinTimer; } } } } lastRot = boy._rotation; if (gLastRot > girl._rotation + 3) { if (gSpinDir != 'left') { if (gSpinTimer <= 0) { gSpinDir = 'left'; gSpinTimer = spinTimerDef; } else { --gSpinTimer; } } } else { if (gLastRot < girl._rotation - 3) { if (gSpinDir != 'right') { if (gSpinTimer <= 0) { gSpinDir = 'right'; gSpinTimer = spinTimerDef; } else { --gSpinTimer; } } } else { if (gSpinDir != 'none') { if (gSpinTimer <= 0) { gSpinDir = 'none'; gSpinTimer = spinTimerDef; } else { --gSpinTimer; } } } } gLastRot = girl._rotation; if (spinDir == 'none') { if (boyFrame > 5) { boyFrame -= 0.5; } else { if (boyFrame < 5) { boyFrame += 0.5; } } } else { if (spinDir == 'left') { if (boyFrame > 1) { --boyFrame; } else { boyFrame = 1; } } else { if (spinDir == 'right') { if (boyFrame < 9) { ++boyFrame; } else { boyFrame = 9; } } } } if (gSpinDir == 'none') { if (girlFrame > 5) { girlFrame -= 0.5; } else { if (girlFrame < 5) { girlFrame += 0.5; } } } else { if (gSpinDir == 'left') { if (girlFrame > 1) { --girlFrame; } else { girlFrame = 1; } } else { if (gSpinDir == 'right') { if (girlFrame < 9) { ++girlFrame; } else { girlFrame = 9; } } } } arrow._x = (boy._x + girl._x) * 0.5; arrow._y = (boy._y + girl._y) * 0.5; BGrotDiff = Math.abs(boy._rotation - girl._rotation); if (BGrotDiff < 180) { arrowDist = BGrotDiff * -0.3 + 35; } else { arrowDist = (360 - BGrotDiff) * -0.3 + 35; } arrow._x -= _root.angledStart('x', arrow._rotation, arrowDist); arrow._y += _root.angledStart('y', arrow._rotation, arrowDist); arrow._rotation = (boy._rotation + girl._rotation) * 0.5; if (Math.abs(arrow._rotation - boy._rotation) > 90) { arrow._rotation += 180; } girlArm._x = arrow._x; boyArm._x = girlArm._x; girlArm._y = arrow._y; boyArm._y = girlArm._y; boyArm._rotation = 90 + _root.angleTo2(boyArm, 0, 0, boy, _root.angledStart('x', boy._rotation + 180, 20), _root.angledStart('y', boy._rotation + 180, 20)); girlArm._rotation = 90 + _root.angleTo2(girlArm, 0, 0, girl, _root.angledStart('x', girl._rotation + 180, 20), _root.angledStart('y', girl._rotation + 180, 20)); }; Mouse.hide(); links = 20; spacing = 1; linksList = []; linksListG = []; i = 0; while (i < links) { spinCircleH.attachMovie('lineB', 'link' + i, links - i); linksList[i] = spinCircleH['link' + i]; linksList[i].targets = [0, 0]; linksList[i]._alpha = 100 - (100 / links) * i; spinCircleH.attachMovie('lineG', 'link' + (i + 200), 200 + links - i); linksListG[i] = spinCircleH['link' + (i + 200)]; linksListG[i].targets = [0, 0]; linksListG[i]._alpha = 100 - (100 / links) * i; ++i; } locs = []; locsG = []; locslength = spacing * (links + 1); i = 0; while (i < locslength) { locs[i] = [boy._x - _root.angledStart('x', boy._rotation - (boyFrame - 5) * 10, 60), boy._y + _root.angledStart('y', boy._rotation - (boyFrame - 5) * 10, 60)]; locsG[i] = [girl._x - _root.angledStart('x', girl._rotation - (girlFrame - 5) * 10, 60), girl._y + _root.angledStart('y', girl._rotation - (girlFrame - 5) * 10, 60)]; ++i; } showAltName = function (curr, dest) { altNameTime = 120; altNames._alpha = 0; altNames._visible = true; if (curr != 6) { altNames._y = altNameYs[curr]; } else { altNames._y = altNameYs[dest]; } myAlt = dest; altNames.whiteTxt.gotoAndStop(dest); altNames.blueTxt.gotoAndStop(dest); }; earlyThrust = true; cameFromThrust = false; thrusting = true; thrustTime = 0; speedLines._visible = true; actualRot = boy._rotation - 90; spinCircleH._alpha = 0; } onClipEvent (enterFrame) { if (myMode == 'none') { xSpeed = flySpeed * Math.cos(0.0174532925199433 * actualRot); ySpeed = flySpeed * Math.sin(0.0174532925199433 * actualRot); totalDist += flySpeed / 10; currAlt -= ySpeed / 10; currLat += xSpeed / 10; } cursorHead._x = _root._xmouse; xm = cursorHead._x; cursorHead._y = _root._ymouse; ym = cursorHead._y; if (cursorState == 'down' && !inBelly) { if (cursorTimer > 0) { --cursorTimer; } else { cursorReveal = true; } } else { cursorReveal = false; } if (!cursorReveal) { distX = cursorHead._x - 300; distY = cursorHead._y - 150; rad = Math.atan2(distY, distX); cursorHead._rotation = rad * 180 / Math.PI + 90; cursorHead._yscale = (flySpeed / 18.5) * 60 + 40; cursorHead._xscale = (flySpeed / 18.5) * 25 + 75; if (cursorHead._xscale > 100) { cursorHead._yscale = 100; cursorHead._xscale = 100; } } else { distX = cursorHead._x - (islandH.island._x - 660); distY = cursorHead._y - (islandH.island._y + 40); rad = Math.atan2(distY, distX); cursorHead._rotation = rad * 180 / Math.PI - 90; cursorHead._yscale = 100; cursorHead._xscale = 100; } if (endGame) { if (mainRegVol > 0) { mainRegVol -= endGameInc; } if (mainMuffVol > 0) { mainMuffVol -= endGameInc; } if (travelFastVol > 0) { travelFastVol -= endGameInc; } if (monCloseVol > 0) { monCloseVol -= endGameInc; } if (heartCloseVol > 0) { heartCloseVol -= endGameInc; } } else { if (!inBelly && !_root.frameTop._visible) { if (boyWater == 'above') { if (mainRegVol < 100) { mainRegVol += 25; mainMuffVol -= 25; } else { mainRegVol = 100; mainMuffVol = 0; } } else { if (mainMuffVol < 100) { mainMuffVol += 25; mainRegVol -= 25; } else { mainMuffVol = 100; mainRegVol = 0; } } if (monDist < 300) { monCloseVol = 100 - (monDist - 100) * 0.5; } if (!thrusting) { if (boyWater == 'above') { if (currAlt < 1000) { travelVolDest = (flySpeed / 18.5) * 100; if (travelFastVol > travelVolDest) { travelFastVol = travelVolDest; } else { travelFastVol -= (travelFastVol - travelVolDest) * 0.05; } } else { if (travelFastVol > 0) { travelFastVol -= 2; } } } else { travelFastVol = 0; } } if (heartChasing) { heartCloseVol = 100 - (_root.dist(heart, boy) / 500) * 100; } else { heartCloseVol = 0; } } else { monBellyVol = 100 - biteBlack._alpha * 0.5; } } _root.mainReg.setVolume(mainRegVol); _root.mainMuff.setVolume(mainMuffVol); _root.heartClose.setVolume(heartCloseVol); _root.monClose.setVolume(monCloseVol); _root.monBelly.setVolume(monBellyVol); _root.travelFast.setVolume(travelFastVol); boy.gotoAndStop(Math.round(boyFrame)); girl.gotoAndStop(Math.round(girlFrame)); if (!thrusting) { if (_root.frameTop._visible) { _root.frameTop._y -= 4; _root.frameTop._alpha -= 3; _root.frameBot._y += 4; _root.frameBot._alpha -= 3; if (_root.frameTop._alpha <= 0) { _root.frameTop._visible = false; _root.frameBot._visible = false; } if (cursorHead._alpha < 100) { cursorHead._alpha += 4; } } if (myMode == 'none') { if (cursorHead._alpha < 100) { cursorHead._alpha += 4; } cursorHead._visible = true; } distX = boy._x - xm; distY = boy._y - ym; rad = Math.atan2(distY, distX); rot = rad * 180 / Math.PI + 180; if (actualRot < -180) { actualRot += 360; } else { if (actualRot > 180) { actualRot -= 360; } } if (Math.abs(actualRot - rot) > 180) { if (actualRot < rot) { actualRot -= (actualRot + 360 - rot) * rotRate * 2; } else { actualRot -= (actualRot - 360 - rot) * rotRate * 2; } } else { actualRot -= (actualRot - rot) * rotRate; } boy._rotation = actualRot + 90; if (!inBelly) { xDest = (600 - xm) / 4 + 225; yDest = (300 - ym) / 4 + 112.5; boy._x -= (boy._x - xDest) * 0.03; boy._y -= (boy._y - yDest) * 0.03; if (!cameFromThrust) { xDist = boy._x - xm; yDist = (boy._y - ym) * 2; flySpeed = Math.sqrt(xDist * xDist + yDist * yDist) / 20; if (flySpeed > 18.5) { flySpeed = 18.5; } } else { if (flySpeed > 18.5) { flySpeed -= 1; } else { cameFromThrust = false; } } } else { xDest = 600 - ((600 - xm) * 0.8 + 60); yDest = 300 - ((300 - ym) * 0.8 + 30); boy._x -= (boy._x - xDest) * 0.1; boy._y -= (boy._y - yDest) * 0.1; xDist = boy._x - xm; yDist = (boy._y - ym) * 2; flySpeed = Math.sqrt(xDist * xDist + yDist * yDist) / 20; if (flySpeed > 18.5) { flySpeed -= (flySpeed - 18.5) * 0.05; } } if (haveHeart) { createHeartTrail(arrow, 'arrow'); if (!inBelly) { moveHeartTrails('angled'); } else { moveHeartTrails('static'); } } if (speedLines._visible) { if (speedLines._alpha > 0) { speedLines._alpha -= 5; speedLines._rotation = boy._rotation; } else { speedLines._visible = false; } } boy.shield._alpha -= (boy.shield._alpha - ((flySpeed - 10) / 8.5) * 100) * 0.1; girl.shield._alpha = boy.shield._alpha; if (readyForHeart && totalDist >= nextHeartDist && !inBelly && !endGame) { readyForHeart = false; heartChasing = true; createHeart(_root.angledStart('x', boy._rotation, 375), _root.angledStart('y', boy._rotation, 375), boy._rotation, 15.25 + numHearts * 0.5); } i = locslength - 1; while (i > 0) { locs[i] = locs[i - 1]; locsG[i] = locsG[i - 1]; --i; } locs[0] = [boy._x - _root.angledStart('x', boy._rotation - (boyFrame - 5) * 10, 60), boy._y + _root.angledStart('y', boy._rotation - (boyFrame - 5) * 10, 60)]; locsG[0] = [girl._x - _root.angledStart('x', girl._rotation - (girlFrame - 5) * 10, 60), girl._y + _root.angledStart('y', girl._rotation - (girlFrame - 5) * 10, 60)]; i = 0; while (i < links) { if (i == 0) { linksList[i].targets = [boy._x - _root.angledStart('x', boy._rotation - (boyFrame - 5) * 10, 60), boy._y + _root.angledStart('y', boy._rotation - (boyFrame - 5) * 10, 60)]; linksListG[i].targets = [girl._x - _root.angledStart('x', girl._rotation - (girlFrame - 5) * 10, 60), girl._y + _root.angledStart('y', girl._rotation - (girlFrame - 5) * 10, 60)]; } else { linksList[i].targets = [linksList[i - 1]._x, linksList[i - 1]._y]; linksListG[i].targets = [linksListG[i - 1]._x, linksListG[i - 1]._y]; } linksList[i]._x = locs[i * spacing + spacing][0]; linksList[i]._y = locs[i * spacing + spacing][1]; linksList[i]._xscale = linksList[i].targets[0] - linksList[i]._x; linksList[i]._yscale = linksList[i].targets[1] - linksList[i]._y; linksListG[i]._x = locsG[i * spacing + spacing][0]; linksListG[i]._y = locsG[i * spacing + spacing][1]; linksListG[i]._xscale = linksListG[i].targets[0] - linksListG[i]._x; linksListG[i]._yscale = linksListG[i].targets[1] - linksListG[i]._y; ++i; } if (spinCircleH._alpha < 100 && myMode == 'none') { spinCircleH._alpha += 1; } if (endGame) { monDist += 5; if (myMode == 'none') { if (endWhite._alpha < 100) { endWhite._alpha += 0.5; if (endWhite._alpha >= 100) { showAltName(7, 7); } blackDotH._alpha = endWhite._alpha; i = 0; while (i < 6) { _root['h' + (i + 1)]._alpha = 100 - endWhite._alpha; ++i; } _root.h7._alpha = endWhite._alpha; } islandHT._x = islandH2.island._x - 657.2000000000001; islandHT._y = islandH2.island._y + 24; if (islandHT.hitTest(boy._x, boy._y, true)) { makeHeartExplode(boy, 110); heartGet.play(); boy._visible = false; myMode = 'wait'; timer = 90; xSpeed = 0; ySpeed = 0; girl._visible = false; girlArm._visible = false; boyArm._visible = false; islandH._visible = false; _root.gameLoop = true; _root.mainReg.stop(); _root.mainMuff.stop(); _root.heartClose.stop(); _root.monClose.stop(); _root.monBelly.stop(); _root.travelFast.stop(); } } else { if (myMode == 'wait') { if (cursorHead._alpha > 0) { cursorHead._alpha -= 5; } --timer; if (timer <= 0) { myMode = 'settle'; islandH2.island.girl._visible = true; timer = 288; _root.finalWind.play(); } if (spinCircleH._alpha > 0) { spinCircleH._alpha -= 10; } } else { if (myMode == 'settle') { islandH2.island._x -= (islandH2.island._x - -696) * 0.04; islandH2.island._y -= (islandH2.island._y - 193) * 0.04; --timer; if (timer <= 0) { _root.gotoAndStop(2); } endWhite._alpha -= endWhite._alpha * 0.01; if (spinCircleH._alpha > 0) { spinCircleH._alpha -= 10; } } } } } } else { if (earlyThrust && thrustTime <= 0) { if (!cameFromThrust) { cameFromThrust = true; makeHeartExplode(arrow, 105); arrow._visible = false; girlArm._visible = false; boyArm._visible = girlArm._visible; girl._visible = girlArm._visible; boy._visible = girlArm._visible; twirlers._visible = true; twirlers._x = boy._x; twirlers._y = boy._y; twirlers._rotation = boy._rotation; speedLines._rotation = boy._rotation; if (inBelly) { _root.bellyLight.play(); _root.bellyLight._rotation = boy._rotation; } if (_root.sfx) { thrust.play(); } } twirlers._x = boy._x; twirlers._y = boy._y; twirlers._rotation = boy._rotation; earlyThrust = true; thrustDistX -= (thrustDistX + 250) * 0.05; thrustDistY -= (thrustDistY + 100) * 0.05; flySpeed -= (flySpeed - 50) * 0.1; createHeartTrail(arrow, 'arrow'); moveHeartTrails('angled'); xDest = 300 - _root.angledStart('x', boy._rotation, thrustDistX); yDest = 150 + _root.angledStart('y', boy._rotation, thrustDistY); boy._x -= (boy._x - xDest) * 0.2; boy._y -= (boy._y - yDest) * 0.2; i = monsterHeads.length - 1; while (i >= 0) { head = monsterH['m' + monsterHeads[i]]; head._x -= xSpeed; head._y -= ySpeed; if (head._x < -200 || head._x > 800 || head._y < -200 || head._y > 500 || head._x == undefined) { head.removeMovieClip(); monsterHeads.splice(i, 1); } --i; } if (speedLines._alpha < 30) { speedLines._alpha += 1; } if (whiteFade._visible) { whiteFade._alpha -= 2; if (whiteFade._alpha <= 0) { whiteFade._alpha = 100; whiteFade._visible = false; } } if (_root.frameTop._visible) { if (mainRegVol < 100) { mainRegVol += 2; } } if (Math.round(thrustDistX) <= -250) { makeHeartExplode(arrow, 110); thrusting = false; earlyThrust = false; thrustDistX = 250; thrustDistY = 100; readyForHeart = true; nextHeartDist = totalDist + defHeartDist + numHearts * 50; girlArm._visible = true; boyArm._visible = girlArm._visible; girl._visible = girlArm._visible; boy._visible = girlArm._visible; twirlers._visible = false; if (numHearts >= 6) { endGame = true; endWhite._visible = true; blackDotH._visible = true; islandH2._visible = true; _root.h7._visible = true; } } } else { if (spinCircleH._alpha > 0) { spinCircleH._alpha -= 10; } flySpeed = 0; distX = boy._x - 300; distY = boy._y - 150; rad = Math.atan2(distY, distX); rot = rad * 180 / Math.PI + 180; if (actualRot < -180) { actualRot += 360; } else { if (actualRot > 180) { actualRot -= 360; } } if (Math.abs(actualRot - rot) > 180) { if (actualRot < rot) { actualRot -= (actualRot + 360 - rot) * 0.5; } else { actualRot -= (actualRot - 360 - rot) * 0.5; } } else { actualRot -= (actualRot - rot) * 0.5; } boy._rotation = actualRot + 90; createHeartTrail(arrow, 'arrow'); moveHeartTrails('static'); distX = 300 - xm; distY = 150 - ym; rad = Math.atan2(distY, distX); rot = rad * 180 / Math.PI - 90; thrustDistX = 125 * Math.cos(0.0174532925199433 * rot) + 125; thrustDistY = 50 * Math.sin(0.0174532925199433 * rot) + 50; xDest = 300 - _root.angledStart('x', rot, 5); yDest = 150 + _root.angledStart('y', rot, 5); boy._x -= (boy._x - xDest) * 0.5; boy._y -= (boy._y - yDest) * 0.5; --thrustTime; } } positionGirlAndArms(); if (endWhite._alpha < 100) { if (myMode == 'none') { createDot(boy, currAlt - 13 - _root.angledStart('y', boy._rotation, 60) / 10); createDot(girl, currAlt - 13 - _root.angledStart('y', girl._rotation, 60) / 10); } dotSpeeds = _root.getDotSpeeds(boy._rotation + random(10), flySpeed + random(100) / 100); i = dots.length - 1; while (i >= 0) { dot = dotH['dot' + dots[i]]; if (dot.myType != 'splash') { dot._x -= dotSpeeds[0] + dot.mySpeeds[0]; dot._y += dotSpeeds[1] + dot.mySpeeds[1]; dot.mySpeeds[0] *= 0.99; dot.mySpeeds[1] *= 0.99; if (dot.myType == 1) { dot.mySpeeds[1] -= 0.5; if ((boy._y - dot._y) / 10 + currAlt - 13 > 0) { dot.removeMovieClip(); } } else { if (dot.myType == 2) { if ((boy._y - dot._y) / 10 + currAlt - 13 < 0) { dot.removeMovieClip(); } } } if (dot._x < -200 || dot._x > 800 || dot._y < -200 || dot._y > 500 || dot._x == undefined) { dot.removeMovieClip(); dots.splice(i, 1); } } else { dot._x -= xSpeed; dot._y -= ySpeed * 1.25; } --i; } } if (endGame) { if (myMode == 'none') { createBlackDot(boy, currAlt - 13 - _root.angledStart('y', boy._rotation, 60) / 10); } dotSpeeds = _root.getDotSpeeds(boy._rotation + random(10), flySpeed + random(100) / 100); i = blackDots.length - 1; while (i >= 0) { dot = blackDotH['dot' + blackDots[i]]; dot._x -= dotSpeeds[0] + dot.mySpeeds[0] / 2; dot._y += dotSpeeds[1] + dot.mySpeeds[1] / 2; dot.mySpeeds[0] *= 0.99; dot.mySpeeds[1] *= 0.99; if (dot._x < -50 || dot._x > 650 || dot._y < -50 || dot._y > 350 || dot._x == undefined) { dot.removeMovieClip(); blackDots.splice(i, 1); } --i; } } if (heartChasing) { if (!inBelly) { createHeartTrail(heart, 'heart'); if (heart.reachedSpeed) { heart._x -= xSpeed - heart.mySpeed * Math.cos(0.0174532925199433 * (heart._rotation - 90)); heart._y -= ySpeed - heart.mySpeed * Math.sin(0.0174532925199433 * (heart._rotation - 90)); if (heart.mySpeed > 16) { heart.mySpeed -= 0.001; } } else { if (heart.mySpeed > flySpeed) { heart._x -= xSpeed - (flySpeed - 1) * Math.cos(0.0174532925199433 * (heart._rotation - 90)); heart._y -= ySpeed - (flySpeed - 1) * Math.sin(0.0174532925199433 * (heart._rotation - 90)); } else { heart.reachedSpeed = true; } } heart._rotation += random((8 + numHearts) * 100) / 100 - (8 + numHearts) * 0.5; moveHeartTrails('angled'); heartAlt = currAlt - heart._y * 0.1; if (heartAlt < -1000) { heart.gotoAndStop(1); if (_root.sfx && heartType != 6) { heartChange.play(); } heartType = 6; } else { if (heartAlt < 0) { heart.gotoAndStop(2); if (_root.sfx && heartType != 5) { heartChange.play(); } heartType = 5; } else { if (heartAlt < 1000) { heart.gotoAndStop(3); if (_root.sfx && heartType != 4) { heartChange.play(); } heartType = 4; } else { if (heartAlt < 2000) { heart.gotoAndStop(4); if (_root.sfx && heartType != 3) { heartChange.play(); } heartType = 3; } else { if (heartAlt >= 2000) { heart.gotoAndStop(5); if (_root.sfx && heartType != 2) { heartChange.play(); } heartType = 2; } } } } } if (heartType != lastHeartType) { makeHeartExplode(heart, 105); } lastHeartType = heartType; if (heart.hitTest(boy._x, boy._y, true) || heart.hitTest(girl._x, girl._y, true)) { getHeart(); } if (heart._x < -300 || heart._x > 900 || heart._y < -300 || heart._y > 600) { heartChasing = false; heart.removeMovieClip(); readyForHeart = true; nextHeartDist = totalDist + (defHeartDist + numHearts * 50) / 3; } } else { createHeartTrail(heart, 'heart'); heart._x -= (heart._x - 300) * 0.03; heart._y -= (heart._y - 150) * 0.03; heartRot -= (heartRot - 1) * 0.02; heart._rotation += heartRot; moveHeartTrails('static'); if (heartRot < 3) { if (heart.hitTest(boy._x, boy._y, true) || heart.hitTest(girl._x, girl._y, true)) { getHeart(); } } } } if (!inBelly) { if (currAlt > 200 && currAlt < 800) { fxBehindH._visible = true; i = 0; while (i < numClouds) { c = fxBehindH['c' + i]; c._y -= ySpeed * c._xscale / 100; c._x -= xSpeed * c._xscale / 100; if (c._x < -500) { c._x += 1100; } else { if (c._x > 600) { c._x -= 1100; } } ++i; } } else { fxBehindH._visible = false; } if (currAlt > -1000 && currAlt < 50) { if (!waterLight._visible) { waterLight._visible = true; } i = 0; while (i < numWaters) { w = waterLight['light' + i]; if (currAlt < 0) { w._y = currAlt * 10; } else { w._y = surface._y + (w._xscale / 100) * (300 * surface._yscale / 100) - ySpeed * w._xscale / 100; } w._x -= xSpeed * w._xscale / 165; if (w._x < -200) { w._x += 1000; } else { if (w._x > 800) { w._x -= 1000; } } ++i; } } else { waterLight._visible = false; } if (currAlt > 1000) { starsH._visible = true; i = 0; while (i < 3) { s = starsH['star' + i]; s._y -= ySpeed * (s.myDepth + 1) * 0.15; s._x -= xSpeed * (s.myDepth + 1) * 0.15; if (s._x < -600) { s._x += 600; } else { if (s._x > 0) { s._x -= 600; } } if (s._y < -300) { s._y += 300; } else { if (s._y > 0) { s._y -= 300; } } ++i; } if (currAlt < 2000) { starsH._alpha = 100 - ((2000 - currAlt) / 1000) * 100; } else { starsH._alpha = 100; } } else { starsH._visible = false; } if (currAlt > 1000 && currAlt < 2000) { bg.bgSpace._visible = true; bg.bgSpace._y = 150 - ((2000 - currAlt) / 1000) * 605; } else { if (currAlt < 1000) { bg.bgSpace._visible = false; } } if (currAlt < 50) { i = 0; while (i < numBubbles) { c = bubblesH['b' + i]; c._x -= (c._xscale / 100) * xSpeed; c._y -= (c._yscale / 100) * ySpeed; c._y -= c._yscale / 20; if (c._x < -100) { c._x += 800; } else { if (c._x > 700) { c._x -= 800; } else { if (c._y < -100) { c._y += 500; } else { if (c._y > 400) { c._y -= 500; } } } } c._alpha = c.myAlpha - (c._y / 300) * c.myAlpha; ++i; } bubblesMask._y = surface._y; if (currAlt < 0) { bubblesMask._y = 0; } if (bubblesMask._y < 0) { bubblesMask._y = 0; } bubblesH._visible = true; } else { bubblesH._visible = false; } if (currAlt < 50 && currAlt > 0) { bg.bgWater._visible = true; bg.bgWater._y = 155 - ((50 - currAlt) / 50) * 310; surface._y = bg.bgWater._y + 150; surface._yscale = 100 - ((50 - currAlt) / 50) * 100; surface._visible = true; } else { if (currAlt < 0 && currAlt > -1000) { bg.bgWater._y = -450 + ((1000 + currAlt) / 1000) * 300; surface._visible = false; surface._y = 0; surface._yscale = 0; } else { if (currAlt > 50) { bg.bgWater._y = 155; surface._visible = false; } } } if (currAlt > 1000 && currAlt < 4000) { galaxy._visible = true; galaxy._alpha = ((currAlt - 2000) / 2000) * 100; } else { if (currAlt < 1000) { galaxy._visible = false; } } islandH.island._x -= xSpeed * 0.95; islandH.island._y -= ySpeed * 0.95; if (myMode == 'none') { islandH2.island._x = islandH.island._x; islandH2.island._y = islandH.island._y; } if (islandH.island._x < -1000 || islandH.island._x > 1600 || islandH.island._y > 800 || islandH.island._y < -1400) { islandH._visible = false; } else { if (myMode == 'none') { islandH._visible = true; } } if (islandH._visible) { i = 0; while (i < 2) { if (i == 0) { d = islandH.island.emitter.attachMovie('blackDot', 'd' + blackDotI, blackDotI); d._x = random(120) - 60; d.ySpeed = random(200) / 100 + 3; d.xSpeed = random(30) / 10; -1.5; d._yscale = d.mySpeed * 5; d._xscale = d._yscale; islandDots.push(blackDotI); ++blackDotI; } else { if (endGame) { c = islandH2.island.emitter; d = c.attachMovie('blackDot', 'd' + blackDotI, blackDotI); d._x = random(120) - 60; d.ySpeed = random(100) / 10 + 5; d.xSpeed = random(30) / 10; -1.5; d._yscale = d.mySpeed * 5; d._xscale = d._yscale; islandDots2.push(blackDotI); ++blackDotI; } } if (blackDotI > 500) { blackDotI = 0; } ++i; } i = islandDots.length - 1; while (i >= 0) { d = islandH.island.emitter['d' + islandDots[i]]; d._y -= d.ySpeed; d._x += d.xSpeed; d._xscale -= 4; d._yscale = d._xscale; if (d._xscale <= 0) { d.removeMovieClip(); islandDots.splice(i, 1); } --i; } } if (endGame) { i = islandDots2.length - 1; while (i >= 0) { d = islandH2.island.emitter['d' + islandDots2[i]]; d._y -= d.ySpeed; d._x += d.xSpeed; d._xscale -= 4; d._yscale = d._xscale; if (d._xscale <= 0) { d.removeMovieClip(); islandDots2.splice(i, 1); } --i; } } if (!thrusting || earlyThrust && thrustTime <= 0) { rotDiff = _root.rotDiff(boy, monster); monDist -= (monDist - 100) * 0.003; monDist -= 0.25; if (flySpeed < 15 && monDist > 100) { monDist -= (15 - flySpeed) / 10; } else { if (flySpeed > 20) { monDist += 5; } } if (isNaN(rotDiff)) { rotDiff = 0; } monDist += _root.rotDiff(boy, girl) / 20; if (monRot < -180) { monRot += 360; } else { if (monRot > 180) { monRot -= 360; } } if (Math.abs(monRot - boy._rotation) > 180) { if (monRot < rot) { monRot -= (monRot + 360 - boy._rotation) * 0.05; } else { monRot -= (monRot - 360 - boy._rotation) * 0.05; } } else { monRot -= (monRot - boy._rotation) * 0.05; } monster._rotation = monRot + 90; i = monsterHeads.length - 1; while (i >= 0) { head = monsterH['m' + monsterHeads[i]]; head._visible = true; if (!thrusting) { head._x -= head.myXspeed; head._y -= head.myYspeed; } else { head._x -= head.myXspeed * 0.5; head._y -= head.myYspeed * 0.5; } col = monsterCol['m' + monsterHeads[i]]; col._x = head._x; col._y = head._y; if (head._x < -200 || head._x > 800 || head._y < -200 || head._y > 500 || head._x == undefined) { head.removeMovieClip(); col.removeMovieClip(); monsterHeads.splice(i, 1); } --i; } monsterZag = Math.cos(getTimer() / 290) * 20; createMonsterHead('monsterHead', 300 - _root.angledStart('x', monRot + monsterZag, monDist + (rotDiff - 90) / 10), 150 + _root.angledStart('y', monRot + monsterZag, monDist + (rotDiff - 90) / 10), boy._rotation, Math.cos(getTimer() / 100) * 50 + 150, 1); } if (monDist > 150) { monFrame = 1; jawIs = 'closed'; if (monsterHeadH.head._x != undefined) { i = 0; while (i < 200) { randCoord = [random(600), random(300)]; if (monsterHeadH.head.hitTest(randCoord[0], randCoord[1], true)) { c = fxFrontH.attachMovie('dotCloud', 'd' + i, i); c._x = randCoord[0]; c._y = randCoord[1]; c._yscale = 25 + random(50); c._xscale = c._yscale; c._rotation = random(360); c.gotoAndPlay(random(10) + 1); } ++i; } monsterHeadH.head.removeMovieClip(); monsterCol.head.removeMovieClip(); if (_root.sfx) { monHeadDust.play(); } } } else { if (monDist < 150 && jawIs == 'closed') { jawIs = 'opening'; monFrame = 1; if (_root.sfx) { monOpenJaw.play(); } } else { if (jawIs == 'opening') { ++monFrame; if (monFrame >= 14) { jawIs = 'open'; } } else { if (jawIs == 'open') { if (monDist < 101) { jawIs = 'closing'; if (_root.sfx) { monBite.play(); } } } else { if (jawIs == 'closing') { ++monFrame; if (monFrame >= 27) { jawIs = 'closed'; monFrame = 1; } if (monsterCol.hitTest(boy._x, boy._y, true) || monsterCol.hitTest(girl._x, girl._y, true)) { if (!inBelly && _global.bite) { inBelly = true; goInBelly(); } } } } } } } } else { if (biteBlack._visible && biteBlack._alpha > 0) { --biteBlack._alpha; if (biteBlack._alpha == 50) { showAltName(5, 6); } } else { biteBlack._visible = false; if (bellyHeartI == 0) { bellyHeartI = -1; heartChasing = true; createHeart(_root.angledStart('x', boy._rotation - 180, 375), _root.angledStart('y', boy._rotation - 180, 375), boy._rotation - 180, 0); heartRot = 20; } else { --bellyHeartI; } } i = 0; while (i < numBellyPieces) { col = monsterCol['m' + monsterHeads[i]]; head = monsterH['m' + monsterHeads[i]]; if (col.hitTest(boy._x, boy._y, true) || col.hitTest(girl._x, girl._y, true) || col.hitTest(heart._x, heart._y, true)) { col._x -= flySpeed * head.bellyVel[0]; col._y -= flySpeed * head.bellyVel[1]; head._x = col._x; head._y = col._y; } else { col._x -= (col._x - head.startCoords[0]) * 0.1; col._y -= (col._y - head.startCoords[1]) * 0.1; head._x = col._x; head._y = col._y; } if (thrusting && earlyThrust) { head._x -= xSpeed * 5; head._y -= ySpeed * 5; } ++i; } if (leaveBelly) { escapeBelly(); } } if (boyWater == 'above') { if (currAlt < 13) { boyWater = 'below'; if (!inBelly && !endGame) { createSplash(boy._x, boy._y, boy._rotation, flySpeed); } } } else { if (currAlt > 13) { boyWater = 'above'; if (!inBelly && !endGame) { createSplash(boy._x, boy._y, boy._rotation, flySpeed); } } } if (hudHeartTime <= 0) { null; } else { --hudHeartTime; if (hudHeartTime > 60) { i = 0; while (i < 6) { _root['h' + (i + 1)]._x -= (_root['h' + (i + 1)]._x - hudHeartX2) * (0.3 - i * 0.03); ++i; } } else { if (hudHeartTime == 60) { i = 0; while (i < 6) { _root['h' + (i + 1)]._x = hudHeartX2; ++i; } } else { if (hudHeartTime > 1) { i = 0; while (i < 6) { _root['h' + (i + 1)]._x += _root['h' + (i + 1)]._x - hudHeartX2 + (0.03 * i + 0.05); ++i; } } else { i = 0; while (i < 6) { _root['h' + (i + 1)]._x = hudHeartX1; _root['h' + (i + 1)].shiny._visible = false; ++i; } } } } if (hudHeartTime < 90) { _root['h' + heartType].gotoAndStop(2); _root['h' + heartType].heart.gotoAndStop(7 - heartType); } } _root.h7._x = _root.h3._x - 5; if (!inBelly && !endGame) { if (currAlt > 2000 + altPad) { if (myAlt != 5) { showAltName(myAlt, 5); } } else { if (currAlt > 1000 + altPad && currAlt < 2000 - altPad) { if (myAlt != 4) { showAltName(myAlt, 4); } } else { if (currAlt > altPad && currAlt < 1000 - altPad) { if (myAlt != 3) { showAltName(myAlt, 3); } } else { if (currAlt > -1000 + altPad && currAlt < -altPad) { if (myAlt != 2) { showAltName(myAlt, 2); } } else { if (currAlt < -1000 - altPad) { if (myAlt != 1) { showAltName(myAlt, 1); } } } } } } } if (altNameTime > 0) { altNames._y -= (altNames._y - altNameYs[myAlt]) * 0.04; if (altNameTime > 90) { altNames._alpha += 3.333333333333334; } else { if (altNameTime < 30) { altNames._alpha -= 3.333333333333334; } } --altNameTime; if (altNameTime == 0) { altNames._visible = false; altNames._alpha = 0; } } if (Key.isDown(32)) { i = 0; while (i < 6) { _root['h' + (i + 1)]._x -= (_root['h' + (i + 1)]._x - hudHeartX2) * (0.3 - i * 0.03); ++i; } if (altNameTime <= 0) { altNames._visible = true; if (altNames._alpha < 100) { altNames._alpha += 5; } } } else { if (hudHeartTime < 60 && _root.h1._x < 650) { i = 0; while (i < 6) { if (_root['h' + (i + 1)]._x > hudHeartX1) { _root['h' + (i + 1)]._x = hudHeartX1 + 5; } else { _root['h' + (i + 1)]._x += _root['h' + (i + 1)]._x - hudHeartX2 + (0.03 * i + 0.05); } ++i; } } if (altNameTime <= 0) { if (altNames._alpha > 0) { altNames._alpha -= 10; } else { altNames._visible = false; } } } if (debug) { _root.debugTxt = 'totalDist:\t' + Math.round(totalDist) + '\ncurrAlt:\t' + Math.round(currAlt) + '\t(' + Math.round((flySpeed * Math.sin(0.0174532925199433 * actualRot) / 10) * 100) / 100 + ')' + '\ncurrLat:\t' + Math.round(currLat) + '\t(' + Math.round((flySpeed * Math.cos(0.0174532925199433 * actualRot) / 10) * 100) / 100 + ')' + '\nflySpeed:\t' + Math.round(flySpeed * 100) / 100 + '\nmonDist:\t' + monDist + '\nmonFrame:\t' + monFrame + '\njawIs:\t' + jawIs + '\nrotDiff\t' + (_root.rotDiff(monster, boy) + 1) + '\ncombined:\t' + (monDist + _root.rotDiff(monster, boy) * 0.1 + 1) + '\nspinDir+BoyFrame:\t' + spinDir + '\t' + boyFrame + '\nheartSpeed: ' + heart.mySpeed + '\nsurface._y: ' + surface._y; } } onClipEvent (mouseDown) { if (haveHeart) { if (!inBelly || biteBlack._alpha < 50) { haveHeart = false; thrusting = true; thrustTime = thrustTimeDef; if (_root.sfx) { thrustCharge.play(); } } } Mouse.hide(); cursorState = 'down'; cursorTimer = 240; } onClipEvent (mouseUp) { if (thrusting && (!inBelly || biteBlack._alpha < 50)) { earlyThrust = true; speedLines._visible = true; } cursorState = 'up'; } } movieClip 812 { frame 1 { stop(); } } movieClip 814 { } movieClip 816 { } movieClip 832 { } movieClip 836 { } movieClip 839 { } movieClip 842 { } movieClip 846 { } movieClip 849 { } movieClip 852 { } movieClip 854 { } movieClip 863 { } movieClip 877 { } movieClip 889 { } movieClip 890 { } movieClip 892 { } movieClip 894 { } movieClip 895 { } movieClip 902 { } movieClip 911 { } movieClip 912 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 916 { } movieClip 920 { } movieClip 924 { } movieClip 928 { } movieClip 932 { } movieClip 936 { } movieClip 940 { } movieClip 941 { } movieClip 942 { } movieClip 946 { }




https://swfchan.com/54/267598/info.shtml
Created: 4/6 -2026 18:53:42 Last modified: 4/6 -2026 18:53:42 Server time: 24/06 -2026 14:09:21