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

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

Breakfast Club.swf

This is the info page for
Flash #25139

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


Text
Be Patient!  It'll be worth it.

0% loaded

(PRESS SPACE)

IS THIS NOT WORKING FOR YOU?
CLICK »HERE« IF YOU'RE USING FIREFOX ON A PC

1

1

+1

+1

###

###

/

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Level #

(PRESS SPACE)

Bender: Another banner f*****g
Saturday in detention for me, John
Bender.

Next >

Next >

Bender: At least I got my friends in
the Breakfast Club to hang out wi--
whua?!?

-Note-
Listen up, gutless turd!  Detention
just got more serious. I kidnapped
your friends and if you try to rescue
them, I will knock your d!$k in the
dirt. - Principal Vernon.

Bender: Man, I was gonna nail Claire
today.  Now I guess I gotta save her!

#/#

variablechecker

PAUSE

########

########

########

########

########

########

NEW RECORD

NEW RECORD

NEW RECORD

########

NEW RECORD

########

Need a break?

PRESS PAUSE!
Pressing "P" will pause the game while you enjoy a cool
drink or a warm nap.
Return refreshed and complete the game without any
change in your completion time!

########

########

########

########

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

In case you fail . . .

DON'T WORRY!
Your progress in this game is saved!  Each
level you beat unlocks the next so you can
come back and play whenever you want.
Also, your progress in each level is saved
when you die so you can restart the level with
cigarettes already collected, among other
changes.

Brian: Thanks for saving me, Bender!

Bender: Whatever Dork-O.  Where's
Claire?

Brian: Vernon has her hidden
somewhere else.

Bender: Then why am I wasting my time
with you?

Brian: I guess I could go kill myself
with a flare gun..

Bender: Good.  Have fun.  I gotta get
laid.

########

########

########

########

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

########

########

########

########

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

ANDREW: What are you doing,
Waste-oid?  I can rescue myself.
BENDER: Yeah right.  Nice panty hose.

ANDREW: It's the required uniform for
the wrestling team.
BENDER: Sure.  Where's Claire?

ANDREW: Vernon has her in the
Cafeteria.
BENDER: I am never gonna get my d**k
wet.

Basketball
Grab some bombs from your basket and try to score a
shot in the security gizmo on the other side.  Score three
shots and run for the exit!
NO FOULING!
Don't bother attacking the dog here.
He's invulnerable.

########

########

########

########

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

########

########

########

########

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

Allison: What do you want, a-hole?
Bender: Hey Schiz-O.  I just saved
you.  A little gratitude would be
nice.

Allison: Whatever.  It's not like you
can save my heart from dying.

Bender: Ugh.  Let me guess - Claire
ain't here either.
Allison: No, she's in the study hall.

Bender: I would settle for you, but
it looks like you're on the rag.

########

########

########

########

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

########

########

########

########

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

BENDER: Claire! I've been waiting all
day to give you a hot beef injection!

CLAIRE: Ugh.  You're repulsive,
Bender.  I...
PRINCIPAL VERNON: YOUNG MAN.  YOU
MESSED WITH THE BULL...

PRINCIPAL VERNON: ...NOW YOU GET THE
HORNS!!!

########

########

NEW RECORD

########

NEW RECORD

########

Brian: After today's adventure, I
think we found out that each of us is
a brain...

Andrew: An athlete...

Allison: A basket case...

Claire: A princess...

Bender: And a criminal.

Brian: And the principal was some
sort of space demon.

Claire: Hey Bender!  Let's go screw
to piss off my parents!

The End...?

Play Again >

Play Again >

########

########

########

########

INCOMPLETE

NEW RECORD

NEW RECORD

########

########

NEW RECORD

########

NEW RECORD

########

ActionScript [AS1/AS2]

Frame 1
stopAllSounds(); txtPercent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); txtPercentage = txtPercent + "% loaded"; loader.gotoAndStop(txtPercent);
Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) { gotoAndStop (3); } else { gotoAndPlay (1); }
Frame 3
stopAllSounds(); intro = true; _root.stattracking = true; _root.cutscenes = true; if (_root.stattracking == true) { com.utilities.StatTracker.submitStat("/flashgames/breakfastclub/sessionstart"); } _root.timechecker = function () { _root.gameTIMER = (getTimer() / 1000) / 60; if (_root.stattracking == true) { if ((_root.gameTIMER > 2) && (_root.TWOminutes != true)) { com.utilities.StatTracker.submitStat("/flashgames/breakfastclub/02minutes"); _root.TWOminutes = true; } else if ((_root.gameTIMER > 5) && (_root.FIVEminutes != true)) { com.utilities.StatTracker.submitStat("/flashgames/breakfastclub/05minutes"); _root.FIVEminutes = true; } else if ((_root.gameTIMER > 10) && (_root.TENminutes != true)) { com.utilities.StatTracker.submitStat("/flashgames/breakfastclub/10minutes"); _root.TENminutes = true; } } }; mouseTIMERMAX = 10; basketball = false; Mouse.show(); _root.kRIGHTconfig = 39; _root.kLEFTconfig = 37; _root.kUPconfig = 38; _root.kDOWNconfig = 40; _root.kJUMPconfig = 32; _root.kTHROWconfig = 70; _root.kPAUSEconfig = 80; _root.kSTARTconfig = 32; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.PAUSE = false; _root.kSKIPLEVEL = 36; _root.GAMEattachDEPTH = 5000; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.LevelNames = []; _root.gameTIME = 0; _root.GAMEplayer1points = 0; _root.GAMEtotalpoints = 0; _root.leveldeaths = 0; _root.gamedeaths = 0; _root.savedData = SharedObject.getLocal("BreakfastClubData"); if (_root.savedData.data.levelMAX == undefined) { _root.savedData.data.levelMAX = 1; _root.savedData.flush(); } var soundManager_mc; trace(_root.attachDEPTH); var soundManagerMCthing = _root.attachMovie("ManagerSymbol", "soundManagerMC", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; soundManagerMCthing._visible = false; var theSoundManager_mc = (new com.managers.SoundManager(soundManagerMCthing)); _root.soundManager_mc = theSoundManager_mc; _root.soundManager_mc.addSound("Beep_Error06.wavsound"); _root.soundManager_mc.setSoundVolume("Beep_Error06.wavsound", 50); _root.soundManager_mc.addSound("Cartoon_OpenMagicBag2.wav"); _root.soundManager_mc.setSoundVolume("Cartoon_OpenMagicBag2.wav", 50); _root.soundManager_mc.addSound("Pickup_Key10.wav"); _root.soundManager_mc.setSoundVolume("Pickup_Key10.wav", 50); _root.soundManager_mc.addSound("Pickup_bombs.wav"); _root.soundManager_mc.setSoundVolume("Pickup_bombs.wav", 50); _root.soundManager_mc.addSound("Cartoon_BombFall_Whistle1.wav"); _root.soundManager_mc.setSoundVolume("Cartoon_BombFall_Whistle1.wav", 25); _root.soundManager_mc.addSound("jump2.wav"); _root.soundManager_mc.setSoundVolume("jump2.wav", 50); _root.soundManager_mc.addSound("jump 1"); _root.soundManager_mc.setSoundVolume("jump 1", 50); _root.soundManager_mc.addSound("bender_2xjump.aiff"); _root.soundManager_mc.setSoundVolume("bender_2xjump.aiff", 50); _root.soundManager_mc.addSound("throw 1"); _root.soundManager_mc.setSoundVolume("throw 1", 50); _root.soundManager_mc.addSound("bender_throw2.aiff"); _root.soundManager_mc.setSoundVolume("bender_throw2.aiff", 50); _root.soundManager_mc.addSound("bender_pickup.aiff"); _root.soundManager_mc.setSoundVolume("bender_pickup.aiff", 50); _root.soundManager_mc.addSound("dogGrowl"); _root.soundManager_mc.setSoundVolume("dogGrowl", 30); _root.soundManager_mc.addSound("dogBark"); _root.soundManager_mc.setSoundVolume("dogBark", 30); _root.soundManager_mc.addSound("BreakfastCinematic.wav"); _root.soundManager_mc.addSound("BreakfastEnding.wav"); _root.soundManager_mc.addSound("BreakfastIntroCinematic.wav"); _root.soundManager_mc.addSound("BreakfastInGame1.wav"); _root.soundManager_mc.addSound("BreakfastInGame2.wav"); _root.soundManager_mc.addSound("BreakfastInGame3.wav"); _root.soundManager_mc.addSound("BreakfastInGame4.wav"); _root.soundManager_mc.addSound("BreakfastBoss.wav"); _root.soundManager_mc.addSound("Explo_Small_Bomb3.wav"); _root.soundManager_mc.setSoundVolume("Explo_Small_Bomb3.wav", 30); _root.soundManager_mc.addSound("explosion.wav"); _root.soundManager_mc.setSoundVolume("explosion.wav", 50); _root.soundManager_mc.addSound("B12sFire_Shot.wav"); _root.soundManager_mc.setSoundVolume("B12sFire_Shot.wav", 30); _root.soundManager_mc.addSound("get cigs.wav"); _root.soundManager_mc.setSoundVolume("jump2.wav", 50); _root.soundManager_mc.addSound("Claws_RatScurry_Loop.wav"); _root.soundManager_mc.addSound("GiantBeetle_Death2.wav"); _root.soundManager_mc.addSound("GiantMantis_Death.wav"); _root.soundManager_mc.addSound("GiantMantis_Roar3.wav"); _root.soundManager_mc.addSound("GiantMantis_Spit.wav"); _root.soundManager_mc.addSound("Hit_SlimeSplat8.wav"); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); stop();
Frame 4
if (_root.go != true) { gotoAndStop (3); } else { _root.go = false; }
Frame 5
if (intro != true) { stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); } intro = false; Mouse.show(); _root.rockbonus = 0; _root.leveldeaths = 0; _root.gamedeaths = 0; _root.levelselect = true; _root.cutscene1 = false; _root.cutscene2 = false; _root.cutscene3 = false; _root.cutscene4 = false; _root.cutscene5 = false; stop();
Instance of Symbol 240 MovieClip "First" in Frame 5
onClipEvent (load) { this.textvalue = "I"; this.linkvalue = "Level 0A Start"; this.gotoAndStop("1-1"); _root.LevelNames[_root.LevelNames.length] = "0A"; if ((_root.savedData.data.levelMAX < 1) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } else if (Key.isDown(_root.kSKIPLEVEL)) { _root.cheats = true; _root.devinfo = true; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "II"; this.linkvalue = "Level 0B Start"; this.gotoAndStop("1-2"); _root.LevelNames[_root.LevelNames.length] = "0B"; if ((_root.savedData.data.levelMAX < 2) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "III"; this.linkvalue = "Level 1 Start"; this.gotoAndStop("2-1"); _root.LevelNames[_root.LevelNames.length] = "1"; if ((_root.savedData.data.levelMAX < 3) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "IV"; this.linkvalue = "Level 2 Start"; this.gotoAndStop("2-2"); _root.LevelNames[_root.LevelNames.length] = "2"; if ((_root.savedData.data.levelMAX < 4) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "V"; this.linkvalue = "Level 2-2 Start"; this.gotoAndStop("3-1"); _root.LevelNames[_root.LevelNames.length] = "2-2"; if ((_root.savedData.data.levelMAX < 5) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "VI"; this.linkvalue = "Level 3 Start"; this.gotoAndStop("3-2"); _root.LevelNames[_root.LevelNames.length] = "3"; if ((_root.savedData.data.levelMAX < 6) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "VII"; this.linkvalue = "Level 4 Start"; this.gotoAndStop("4-1"); _root.LevelNames[_root.LevelNames.length] = "4"; if ((_root.savedData.data.levelMAX < 7) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "VIII"; this.linkvalue = "Level 5 Start"; this.gotoAndStop("4-2"); _root.LevelNames[_root.LevelNames.length] = "5"; if ((_root.savedData.data.levelMAX < 8) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Instance of Symbol 240 MovieClip in Frame 5
onClipEvent (load) { this.textvalue = "FINAL"; this.linkvalue = "Level 6 Start"; this.gotoAndStop("5-1"); _root.LevelNames[_root.LevelNames.length] = "6"; if ((_root.savedData.data.levelMAX < 9) && (!Key.isDown(_root.kSKIPLEVEL))) { _visible = false; } }
Frame 6
if (_root.go != true) { gotoAndStop (5); } else { _root.go = false; }
Frame 7
stopAllSounds(); _root.cutscene1 = true; _root.go = false; stop();
Frame 8
if (_root.go != true) { gotoAndStop (7); } else { _root.go = false; }
Frame 9
if ((_root.cutscene1 != true) && (_root.cutscenes == true)) { _root.gotoAndPlay("cutscene1"); } Mouse.show(); stopAllSounds(); _root.level = "Level 0A"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level1start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level1died"); } } stop();
Frame 10
if (_root.go != true) { gotoAndStop (9); } else { _root.go = false; }
Frame 11
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame1.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 1) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl1replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 499 MovieClip in Frame 11
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 300; this.bomberCHANCE = Infinity; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - this.rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 12
if (_root.go != true) { gotoAndStop (11); } else { _root.go = false; }
Frame 13
_root.cutscene1 = false; Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 1) { _root.savedData.data.levelMAX = 2; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl1complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl1coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl1coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 13
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 14
if (_root.go != true) { gotoAndStop (13); } else { _root.go = false; }
Frame 15
stop();
Frame 16
if (_root.go != true) { gotoAndStop (15); } else { _root.go = false; }
Frame 17
Mouse.show(); stopAllSounds(); _root.level = "Level 0B"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level2start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level2died"); } } stop();
Frame 18
if (_root.go != true) { gotoAndStop (17); } else { _root.go = false; }
Frame 19
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame1.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 2) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl2replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 542 MovieClip in Frame 19
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = 432; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - this.rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 20
if (_root.go != true) { gotoAndStop (19); } else { _root.go = false; }
Frame 21
Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 2) { _root.savedData.data.levelMAX = 3; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl2complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl2coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl2coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 21
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 22
if (_root.go != true) { gotoAndStop (21); } else { _root.go = false; }
Frame 23
stop();
Frame 24
if (_root.go != true) { gotoAndStop (23); } else { _root.go = false; }
Frame 25
stopAllSounds(); _root.cutscene2 = true; _root.go = false; stop();
Frame 26
if (_root.go != true) { gotoAndStop (25); } else { _root.go = false; }
Frame 27
if ((_root.cutscene2 != true) && (_root.cutscenes == true)) { _root.gotoAndPlay("cutscene2"); } Mouse.show(); stopAllSounds(); _root.level = "Level 1"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level3start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level3died"); } } stop();
Frame 28
if (_root.go != true) { gotoAndStop (27); } else { _root.go = false; }
Frame 29
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame2.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 3) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl3replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 623 MovieClip "World" in Frame 29
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = 432; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - this.rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 30
if (_root.go != true) { gotoAndStop (29); } else { _root.go = false; }
Frame 31
_root.cutscene2 = false; Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 3) { _root.savedData.data.levelMAX = 4; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl3complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl3coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl3coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 31
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 32
if (_root.go != true) { gotoAndStop (31); } else { _root.go = false; }
Frame 33
Mouse.show(); stopAllSounds(); _root.level = "Level 2"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level4start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level4died"); } } stop();
Frame 34
if (_root.go != true) { gotoAndStop (33); } else { _root.go = false; }
Frame 35
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame2.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 4) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl4replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 659 MovieClip "World" in Frame 35
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = 432; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - this.rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 36
if (_root.go != true) { gotoAndStop (35); } else { _root.go = false; }
Frame 37
Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 4) { _root.savedData.data.levelMAX = 5; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl4complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl4coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl4coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 37
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 38
if (_root.go != true) { gotoAndStop (37); } else { _root.go = false; }
Frame 39
stopAllSounds(); _root.cutscene3 = true; _root.go = false; stop();
Frame 40
if (_root.go != true) { gotoAndStop (39); } else { _root.go = false; }
Frame 41
if ((_root.cutscene3 != true) && (_root.cutscenes == true)) { _root.gotoAndPlay("cutscene3"); } Mouse.show(); stopAllSounds(); _root.level = "Level 2-2"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; basketball = true; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level5start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level5died"); } } stop();
Frame 42
if (_root.go != true) { gotoAndStop (41); } else { _root.go = false; }
Frame 43
stop();
Frame 44
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame3.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 5) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl5replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 728 MovieClip "World" in Frame 44
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = Infinity; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - this.rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 45
if (_root.go != true) { gotoAndStop (44); } else { _root.go = false; }
Frame 46
_root.cutscene3 = false; Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 5) { _root.savedData.data.levelMAX = 6; } _root.savedData.flush(); } basketball = false; if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl5complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl5coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl5coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 46
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 47
if (_root.go != true) { gotoAndStop (46); } else { _root.go = false; }
Frame 48
Mouse.show(); stopAllSounds(); _root.level = "Level 3"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level6start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level6died"); } } stop();
Frame 49
if (_root.go != true) { gotoAndStop (48); } else { _root.go = false; }
Frame 50
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame3.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 6) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl6replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 772 MovieClip "World" in Frame 50
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = 216; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 51
if (_root.go != true) { gotoAndStop (50); } else { _root.go = false; }
Frame 52
Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 6) { _root.savedData.data.levelMAX = 7; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl6complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl6coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl6coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 52
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 53
if (_root.go != true) { gotoAndStop (52); } else { _root.go = false; }
Frame 54
stopAllSounds(); _root.cutscene4 = true; _root.go = false; stop();
Frame 55
if (_root.go != true) { gotoAndStop (54); } else { _root.go = false; }
Frame 56
if ((_root.cutscene4 != true) && (_root.cutscenes == true)) { _root.gotoAndPlay("cutscene4"); } Mouse.show(); stopAllSounds(); _root.level = "Level 4"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level7start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level7died"); } } stop();
Frame 57
if (_root.go != true) { gotoAndStop (56); } else { _root.go = false; }
Frame 58
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame4.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 7) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl7replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 851 MovieClip "World" in Frame 58
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = 216; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 59
if (_root.go != true) { gotoAndStop (58); } else { _root.go = false; }
Frame 60
_root.cutscene4 = false; Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 7) { _root.savedData.data.levelMAX = 8; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl7complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl7coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl7coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 60
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 61
if (_root.go != true) { gotoAndStop (60); } else { _root.go = false; }
Frame 62
Mouse.show(); stopAllSounds(); _root.level = "Level 5"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level8start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level8died"); } } stop();
Frame 63
if (_root.go != true) { gotoAndStop (62); } else { _root.go = false; }
Frame 64
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastInGame4.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 8) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl8replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 902 MovieClip "World" in Frame 64
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 5000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = 216; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 65
if (_root.go != true) { gotoAndStop (64); } else { _root.go = false; }
Frame 66
Mouse.show(); stopAllSounds(); _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] != undefined) { _root.toppoints.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"]; _root.topratio.text = Math.round((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] / _root.totalpoints) * 10000) / 100; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] < _root.player1points)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1points"] = _root.player1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.data[("LVL" + _root.level.substr(6)) + "totalpoints"] = _root.totalpoints; if (_root.savedData.data.levelMAX == 8) { _root.savedData.data.levelMAX = 9; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl8complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl8coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl8coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 66
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 67
if (_root.go != true) { gotoAndStop (66); } else { _root.go = false; }
Frame 68
stopAllSounds(); _root.cutscene5 = true; _root.go = false; stop();
Frame 69
if (_root.go != true) { gotoAndStop (68); } else { _root.go = false; }
Frame 70
if ((_root.cutscene5 != true) && (_root.cutscenes == true)) { _root.gotoAndPlay("cutscene5"); } Mouse.show(); stopAllSounds(); _root.level = "Level 6"; _root.kRIGHT = _root.kRIGHTconfig; _root.kLEFT = _root.kLEFTconfig; _root.kUP = _root.kUPconfig; _root.kDOWN = _root.kDOWNconfig; _root.kJUMP = _root.kJUMPconfig; _root.kTHROW = _root.kTHROWconfig; _root.kPAUSE = _root.kPAUSEconfig; _root.kSTART = _root.kSTARTconfig; _root.pauseTIME = 0; if (_root.died == true) { _root.leveldeaths = _root.leveldeaths + 1; } if (_root.stattracking == true) { if (_root.died == false) { StatTracker.submitStat("/flashgames/breakfastclub/level9start"); } else { StatTracker.submitStat("/flashgames/breakfastclub/level9died"); } } stop();
Frame 71
if (_root.go != true) { gotoAndStop (70); } else { _root.go = false; }
Frame 72
stopAllSounds(); _root.soundManager_mc.playSound("BreakfastBoss.wav", 0, 9999999999); if ((_root.savedData.data.levelMAX > 9) && (_root.stattracking == true)) { StatTracker.submitStat("/flashgames/breakfastclub/lvl9replay"); } onMouseMove = function () { mouseTIMERstart = getTimer() / 1000; Mouse.show(); }; onEnterFrame = function () { _root.timechecker(); mouseTIMER = (getTimer() / 1000) - mouseTIMERstart; if (mouseTIMER >= mouseTIMERMAX) { Mouse.hide(); } }; _root.attachDEPTH = _root.GAMEattachDEPTH; _root.WorldString = undefined; if (_root.WorldString != undefined) { SoftCOLOR = 65535; SoftALPHA = 50; TiledCOLOR = 16711935 /* 0xFF00FF */; TiledALPHA = 50; HardCOLOR = 16711680 /* 0xFF0000 */; HardALPHA = 50; WaterCOLOR = 255; WaterALPHA = 50; SpringCOLOR = 16776960 /* 0xFFFF00 */; SpringALPHA = 50; _root.World.createEmptyMovieClip("SoftBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[0] = []; _root.World.createEmptyMovieClip("TiledBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.TiledBoundary.objects = 0; _root.WorldArray[1] = []; _root.World.createEmptyMovieClip("HardBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SoftBoundary.objects = 0; _root.WorldArray[2] = []; _root.World.createEmptyMovieClip("WaterBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.WaterBoundary.objects = 0; _root.WorldArray[3] = []; _root.World.createEmptyMovieClip("SpringBoundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.SpringBoundary.objects = 0; _root.WorldArray[4] = []; _root.World.createEmptyMovieClip("Art", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.Art.objects = 0; _root.WorldArray[5] = []; _root.WorldArray = _root.WorldString.split(">>>>"); boundaryelements = 0; while (boundaryelements < _root.WorldArray.length) { _root.WorldArray[boundaryelements] = _root.WorldArray[boundaryelements].split("|"); objectelements = 0; while (objectelements < _root.WorldArray[boundaryelements].length) { _root.WorldArray[boundaryelements][objectelements] = _root.WorldArray[boundaryelements][objectelements].split("/"); anchorelements = 0; while (anchorelements < _root.WorldArray[boundaryelements][objectelements].length) { _root.WorldArray[boundaryelements][objectelements][anchorelements] = _root.WorldArray[boundaryelements][objectelements][anchorelements].split(","); anchorelements++; } objectelements++; } boundaryelements++; } boundaryload = 0; while (boundaryload < _root.WorldArray.length) { if (boundaryload == 0) { boundary = "Soft"; boundaryCOLOR = _root.SoftCOLOR; boundaryALPHA = _root.SoftALPHA; } else if (boundaryload == 1) { boundary = "Tile"; boundaryCOLOR = _root.TileCOLOR; boundaryALPHA = _root.TileALPHA; } else if (boundaryload == 2) { boundary = "Hard"; boundaryCOLOR = _root.HardCOLOR; boundaryALPHA = _root.HardALPHA; } else if (boundaryload == 3) { boundary = "Water"; boundaryCOLOR = _root.WaterCOLOR; boundaryALPHA = _root.WaterALPHA; } else if (boundaryload == 4) { boundary = "Spring"; boundaryCOLOR = _root.SpringCOLOR; boundaryALPHA = _root.SpringALPHA; } else if (boundaryload == 5) { boundary = "Art"; boundaryCOLOR = _root.ArtCOLOR; boundaryALPHA = _root.ArtALPHA; } _root.World.createEmptyMovieClip(boundary + "Boundary", _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; objectload = 0; while (objectload < _root.WorldArray[boundaryload].length) { _root.World[boundary + "Boundary"].objects = objectload + 1; _root.World[boundary + "Boundary"].createEmptyMovieClip("Object" + (objectload + 1), _root.attachDEPTH); _root.attachDEPTH = _root.attachDEPTH + 1; anchorload = 0; while (anchorload < _root.WorldArray[boundaryload][objectload].length) { if ((anchorload == 0) && (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art")) { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineStyle(1, 0, 100); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].beginFill(boundaryCOLOR, boundaryALPHA); _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].moveTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] != "Art") { _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].lineTo(_root.WorldArray[boundaryload][objectload][anchorload][1], _root.WorldArray[boundaryload][objectload][anchorload][2]); } else if (_root.WorldArray[boundaryload][objectload][anchorload][0] == "Art") { anchorload++; _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].removeMovieClip(); _root.World[boundary + "Boundary"].attachMovie(_root.WorldArray[boundaryload][objectload][anchorload][0], _root.WorldArray[boundaryload][objectload][anchorload][0] + (objectload + 1), _root.attachDEPTH, {_x:_root.WorldArray[boundaryload][objectload][anchorload][1], _y:_root.WorldArray[boundaryload][objectload][anchorload][2]}); break; } anchorload++; } _root.World[boundary + "Boundary"]["Object" + (objectload + 1)].endFill(); objectload++; } boundaryload++; } } stop();
Instance of Symbol 1057 MovieClip "World" in Frame 72
onClipEvent (load) { _name = "World"; framerateDEFAULT = 24; framerateMAX = 120; framerateMIN = 12; DEGtoRAD = (Math.PI/180); bubbleDEPTH = 1000; this.bottomlesspit = 7000; this.Player1.points = 0; this.points = 0; this.badguyDISTANCEMAX = 150; this.bomberCHANCE = Infinity; this.bombers = 0; this.Goombas = 0; this.KoopaTroopas = 0; this.AttackDogs = 0; this.Barrels = 0; this.BarrelsFilled = 0; digitMODE = "constant"; charALIVE = true; charBLINK = true; charBLINKTIME = 1; charBLINKTIMER = 0; Player1.rocksloaded = 0; Player1.rocksthrown = 0; Player1.rocksloadedMAX = 3; rocksMAX = 6; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = Player1.sensor._width; initHEIGHT = Player1.sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = 25; speedYMAX = 25; speedMAXdivisor = 1; speedXMIN = 0.05; speedYMIN = 0.05; slidespeedMIN = 0.05; jumpTHRESHOLD = 2; airjumpsMAX = 1; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 65; throwANGLEforward = 75; throwANGLEdown = 120; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = 7.5; duckpaddleRATIO = 3; faceX = 1; faceY = 1; digitARCLENGTH = 22.5; engineloops = 4; speedmultiUNIVERSAL = 1; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.175; movedragY = 1.175; slidedragX = 1.01; slidedragY = 1.01; waterdragX = 2.5; waterdragY = 2.5; swimdragX = 1.004; swimdragY = 1.004; watergroundfriction = 1.05; throwdrag = 2.5; swimspindrag = 1.1; airspindrag = 1.1; windrateX = 0 * speedmultiX; windrateY = 0 * speedmultiY; watercurrentrateX = 0 * speedmultiX; watercurrentrateY = 0 * speedmultiY; gravityrateX = 0 * speedmultiX; gravityrateY = 0.25 * speedmultiY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.6 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (40 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; camera._visible = false; stagehalfWIDTH = 275; stagehalfHEIGHT = 200; stageWIDTH = 550; stageHEIGHT = 400; camLOOSENESS = 50; camMOVEXLEAD = 30; camMOVEYLEAD = -30; camWATERXLEAD = 5; camWATERYLEAD = 5; zoomMIN = 125; zoomMAX = 250; zoomMINmanual = zoomMIN; zoomMAXmanual = zoomMAX; camera._xscale = zoomMIN; camera._yscale = zoomMIN; zoomINCREMENT = 0.25 * speedmultiX; zoomINCREMENTmanual = 1; zoomLEAD = 90; safezoneDISTANCE = 100; startTime = getTimer(); numFrames = 0; recentSetting = 5; recentNumFrames = 0; recentStartTime = startTime; charX = Player1._x; charY = Player1._y; charROT = Player1._rotation; charsensorX = Player1.sensor._x; charsensorY = Player1.sensor._y; charsensorWIDTH = Player1.sensor._width; charsensorHEIGHT = Player1.sensor._height; camX = camera._x; camY = camera._y; camROT = camera._rotation; camXSCALE = camera._xscale; camYSCALE = camera._yscale; camWIDTHinit = camera._width; camHEIGHTinit = camera._height; camWIDTH = camera._width; camHEIGHT = camera._height; worldX = _x; worldY = _y; worldROT = _rotation; worldXSCALE = _xscale; worldYSCALE = _yscale; } onClipEvent (enterFrame) { _root.player1points = this.Player1.points; _root.totalpoints = this.points; numFrames++; now = getTimer(); elapsedSeconds = (now - startTime) / 1000; actualFPS = numFrames / elapsedSeconds; recentNumFrames++; if (recentNumFrames == recentSetting) { recentElapsedSeconds = (now - recentStartTime) / 1000; recentFPSoutput = recentNumFrames / recentElapsedSeconds; recentStartTime = now; recentNumFrames = 0; } if (((recentFPSoutput >= framerateMIN) && (recentFPSoutput <= framerateMAX)) && (elapsedSeconds >= 1)) { engineloops = framerateMAX / Math.ceil(recentFPSoutput); } else if (elapsedSeconds < 1) { engineloops = framerateMAX / framerateDEFAULT; } if ((Key.isDown(_root.kPAUSE) && (_root.PAUSE == false)) && (this.pausearmed == true)) { _root.PAUSE = true; this.pausearmed = false; _root.pauseSTART = getTimer() / 1000; } else if (((Key.isDown(_root.kPAUSE) && (_root.PAUSE == true)) && (this.pausearmed == true)) && (_root.textbubble == undefined)) { _root.PAUSE = false; this.pausearmed = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); } if (!Key.isDown(_root.kPAUSE)) { this.pausearmed = true; } if (_root.PAUSE == true) { engineloops = 0; } worldXinit = _x; worldYinit = _y; worldROTinit = _rotation; worldXSCALEinit = _xscale; worldYSCALEinit = _yscale; if (charALIVE == false) { _root.kRIGHT = undefined; _root.kLEFT = undefined; _root.kUP = undefined; _root.kDOWN = undefined; _root.kJUMP = undefined; _root.kTHROW = undefined; _root.died = true; _root.levelselect = false; } if ((charBLINK == true) && (charBLINKTIMER < charBLINKTIME)) { if (Player1._visible == true) { Player1._visible = false; } else { Player1._visible = true; } charBLINKTIMER = charBLINKTIMER + ((1 / this.framerateMAX) * this.engineloops); } else { Player1._visible = true; charBLINKTIMER = 0; charBLINK = false; } if ((random(bomberCHANCE) == 0) && (_root.PAUSE == false)) { if (random(2) == 0) { bomberDIRX = 1; } else { bomberDIRX = -1; } bomberDIRY = -1; bombers = bombers + 1; this.attachMovie("Bomber 1", "Bomber" + bombers, _root.attachDEPTH, {_x:this.camera._x + (((this.camera._width / 2) + this.badguyDISTANCEMAX) * bomberDIRX), _y:this.camera._y + (random(this.camera._width / 2) * bomberDIRY), flyDIR:bomberDIRX}); _root.attachDEPTH = _root.attachDEPTH + 1; } frameloops = 1; while (frameloops <= engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (((speedY >= 0) && (SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (charY > bottomlesspit) { charALIVE = false; } if (((_root.World.charBLINK == false) && (_root.DeathBoundaryPresent == true)) && (this.DeathBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true))) { if (this.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; this.Player1.rocksthrown = this.Player1.rocksthrown + 1; this.attachMovie("Rock 1", "rock" + this.Player1.rocksthrown, 100 + this.Player1.rocksthrown, {_x:this.charsensorX + this.charX, _y:(this.charsensorY + this.charY) - ((this.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * this.faceX) + this.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - this.speedY, weapon:false}); this.oldrock = this.Player1.rocksthrown - this.rocksMAX; this["rock" + this.oldrock].removeMovieClip(); this.Player1.rocksloaded = this.Player1.rocksloaded - 1; this.charBLINK = true; _root.soundManager_mc.playSound("jump2.wav", 0, 1); } else { this.charALIVE = false; } } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if (((((TOUCHwallright == true) && (Key.isDown(_root.kRIGHT))) && (TOUCHground == false)) && (speedY >= 0)) || ((((TOUCHwallleft == true) && Key.isDown(_root.kLEFT)) && (TOUCHground == false)) && (speedY >= 0))) { environment = "wallslide"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((Player1.rocksloaded > 0) && (throwarmed == true)) && (Key.isDown(_root.kTHROW))) { _root.soundManager_mc.stopSound("throw 1", 0, 1); _root.soundManager_mc.playSound("throw 1", 0, 1); Player1.rocksthrown = Player1.rocksthrown + 1; if (environment != "wallslide") { if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } } else if (Key.isDown(_root.kUP)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else if (Key.isDown(_root.kDOWN)) { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY, weapon:true}); } else { attachMovie("Rock 1", "rock" + Player1.rocksthrown, 100 + Player1.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * (-faceX)), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * (-faceX)) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY, weapon:true}); } oldrock = Player1.rocksthrown - rocksMAX; this["rock" + oldrock].removeMovieClip(); Player1.rocksloaded = Player1.rocksloaded - 1; throwarmed = false; } else if (!Key.isDown(_root.kTHROW)) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if (Key.isDown(_root.kRIGHT)) { faceX = 1; } else if (Key.isDown(_root.kLEFT)) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY * 1.2; gspeedX = 0; gspeedY = 0; if (Key.isDown(_root.kRIGHT)) { moveX = -moverate; } else if (Key.isDown(_root.kLEFT)) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if (Key.isDown(_root.kRIGHT) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if (Key.isDown(_root.kLEFT) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((Key.isDown(_root.kJUMP) && (jumparmed == true)) && (airjumpCOUNT > 0)) && (walljumpTIMER <= 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } if (environmentchecker == "ground") { jumpassists = 0; } if (((((((jumpassists == 0) && (Key.isDown(_root.kJUMP))) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) > -2)) && (walljumpTIMER <= 0)) && (TOUCHwallleft == false)) && (TOUCHwallright == false)) { airjumpCOUNT = airjumpsMAX; jumpassists = jumpassists + 1; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if ((Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kRIGHT) && (Key.isDown(_root.kDOWN))) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((Key.isDown(_root.kLEFT) && (Key.isDown(_root.kUP))) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kLEFT) && (Key.isDown(_root.kDOWN))) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kRIGHT)) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (Key.isDown(_root.kLEFT)) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kUP) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (Key.isDown(_root.kDOWN)) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if (Key.isDown(_root.kJUMP) && (swimarmed == true)) { if ((Key.isDown(_root.kUP) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if (!Key.isDown(_root.kJUMP)) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (Key.isDown(_root.kRIGHT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN))) || ((((environmentchecker == "water") && (Key.isDown(_root.kLEFT))) && (!Key.isDown(_root.kUP))) && (!Key.isDown(_root.kDOWN)))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if (Key.isDown(_root.kJUMP) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if (!Key.isDown(_root.kJUMP)) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if ((speedX > 0) || ((environment == "wallslide") && (TOUCHwallright == true))) { r = 1; while (r <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if ((speedX < 0) || ((environment == "wallslide") && (TOUCHwallleft == true))) { l = 1; while (l <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); if ((Key.isDown(17) && ((camXSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) && ((camYSCALE + zoomINCREMENTmanual) <= zoomMAXmanual)) { camXSCALE = camXSCALE + zoomINCREMENTmanual; camYSCALE = camYSCALE + zoomINCREMENTmanual; zoomMIN = zoomMIN + zoomINCREMENTmanual; } else if ((Key.isDown(16) && ((camXSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) && ((camYSCALE - zoomINCREMENTmanual) >= zoomMINmanual)) { camXSCALE = camXSCALE - zoomINCREMENTmanual; camYSCALE = camYSCALE - zoomINCREMENTmanual; zoomMIN = zoomMIN - zoomINCREMENTmanual; } else { if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX - (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX + (camWIDTH / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY - (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY + (camHEIGHT / 2)))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; } else if (((((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) >= (camX - (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN)) || ((((!Key.isDown(16)) && ((charX + (speedX * zoomLEAD)) <= (camX + (camWIDTH / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camXSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) >= (camY - (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) || ((((!Key.isDown(16)) && ((charY + (speedY * zoomLEAD)) <= (camY + (camHEIGHT / 2)))) && ((camXSCALE - zoomINCREMENT) >= zoomMIN)) && ((camYSCALE - zoomINCREMENT) >= zoomMIN))) { camXSCALE = camXSCALE - zoomINCREMENT; camYSCALE = camYSCALE - zoomINCREMENT; } if (((((((!Key.isDown(16)) && (charX <= ((camX - (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX)) || ((((!Key.isDown(16)) && (charX >= ((camX + (camWIDTH / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camXSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY <= ((camY - (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) || ((((!Key.isDown(16)) && (charY >= ((camY + (camHEIGHT / 2)) + safezoneDISTANCE))) && ((camXSCALE + zoomINCREMENT) <= zoomMAX)) && ((camYSCALE + zoomINCREMENT) <= zoomMAX))) { camXSCALE = camXSCALE + zoomINCREMENT; camYSCALE = camYSCALE + zoomINCREMENT; zoomMIN = zoomMIN + zoomINCREMENTmanual; } } if ((TOUCHwater == false) && (environmentchecker != "bellyslide")) { camspeedX = ((charX + (speedX * ((camLOOSENESS + camMOVEXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } else { camspeedX = ((charX + (speedX * ((camLOOSENESS + camWATERXLEAD) / (worldXSCALE / 100)))) - camX) / (camLOOSENESS / (worldXSCALE / 100)); if ((Math.abs(speedX) >= moverate) || (Math.abs(speedY) >= moverate)) { camX = camX + ((Math.abs(camspeedX) > 1) ? (camspeedX) : 0); } } if (((TOUCHwater == false) && (Math.abs(speedY) < 10)) && (environmentchecker != "bellyslide")) { camspeedY = ((charY + (speedY * ((camLOOSENESS + camMOVEYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } else { camspeedY = ((charY + (speedY * ((camLOOSENESS + camWATERYLEAD) / (worldYSCALE / 100)))) - camY) / (camLOOSENESS / (worldYSCALE / 100)); camY = camY + camspeedY; } if (Math.abs(camX - charX) > ((camWIDTH * 3) / 8)) { camX = charX + ((((camWIDTH * 3) / 8) * (camX - charX)) / Math.abs(camX - charX)); } if (Math.abs(camY - charY) > ((camHEIGHT * 3) / 8)) { camY = charY + ((((camHEIGHT * 3) / 8) * (camY - charY)) / Math.abs(camY - charY)); } camWIDTH = (camWIDTHinit * camXSCALE) / 100; camHEIGHT = (camHEIGHTinit * camYSCALE) / 100; if (!Key.isDown(46)) { scaleX = stageWIDTH / camWIDTH; scaleY = stageHEIGHT / camHEIGHT; worldX = stagehalfWIDTH - (camX * scaleX); worldY = stagehalfHEIGHT - (camY * scaleY); worldXSCALE = 100 * scaleX; worldYSCALE = 100 * scaleY; camROT = 0; worldROT = -camROT; } frameloops++; } Player1._x = charX; Player1._y = charY; Player1._rotation = charROT; Player1.sensor._x = charsensorX; Player1.sensor._y = charsensorY; Player1.sensor._width = charsensorWIDTH; Player1.sensor._height = charsensorHEIGHT; if (faceX > 0) { Player1._xscale = 100; } else if (faceX < 0) { Player1._xscale = -100; } camera._x = camX; camera._y = camY; camera._rotation = camROT; camera._xscale = camXSCALE; camera._yscale = camYSCALE; camera._width = camWIDTH; camera._height = camHEIGHT; _x = worldX; _y = worldY; _rotation = worldROT; _xscale = worldXSCALE; _yscale = worldYSCALE; }
Frame 73
if (_root.go != true) { gotoAndStop (72); } else { _root.go = false; }
Frame 74
_root.cutscene5 = false; Mouse.show(); stopAllSounds(); _root.died = false; _root.levelCOMPLETE = getTimer() / 1000; _root.levelTIME = Math.round(((_root.levelCOMPLETE + _root.levelDEADTIME) - (_root.levelSTART + _root.pauseTIME)) * 10000) / 10000; _root.levelDEADTIME = 0; _root.levelTIMESTR = _root.levelTIME + " sec"; _root.pointratio = Math.round((_root.player1points / _root.totalpoints) * 10000) / 100; _root.gameTIME = _root.gameTIME + _root.levelTIME; _root.GAMEplayer1points = _root.GAMEplayer1points + _root.player1points; _root.gamedeaths = _root.gamedeaths + _root.leveldeaths; if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] != undefined) { _root.topdeaths.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]; } if ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] == undefined) || (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] > _root.leveldeaths)) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"] = _root.leveldeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] != undefined) { _root.toptime.text = _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"]; } if ((((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] == undefined) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"])) || ((_root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] > _root.levelTIME) && (_root.leveldeaths <= _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1deaths"]))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data[("LVL" + _root.level.substr(6)) + "player1time"] = _root.levelTIME; } else { _root.newtimerecord.text = ""; } _root.leveldeaths = 0; if (_root.savedData.data.levelMAX == 9) { _root.savedData.data.levelMAX = 10; } _root.savedData.flush(); } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/lvl9complete"); if (_root.pointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/lvl9coins100percent"); } else if (_root.pointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/lvl9coins050percent"); } } stop();
Instance of Symbol 240 MovieClip in Frame 74
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Frame 75
if (_root.go != true) { gotoAndStop (74); } else { _root.go = false; }
Frame 76
stopAllSounds(); _root.go = false; stop();
Frame 77
if (_root.go != true) { gotoAndStop (76); } else { _root.go = false; }
Frame 78
if (_root.cheats != true) { _root.topdeaths.text = "---"; if (_root.savedData.data.player1gamedeaths != undefined) { _root.topdeaths.text = _root.savedData.data.player1gamedeaths; } if (((_root.savedData.data.player1gamedeaths == undefined) && (_root.gamestartpoint == "First")) || ((_root.savedData.data.player1gamepoints < _root.gamedeaths) && (_root.gamestartpoint == "First"))) { _root.savedData.data.player1gamedeaths = _root.gamedeaths; } else { _root.newdeathsrecord.text = ""; } _root.toptime.text = "---"; if (_root.savedData.data.player1gametime != undefined) { _root.toptime.text = _root.savedData.data.player1gametime; } if (((((_root.savedData.data.player1gametime == undefined) && (_root.savedData.data.player1gamepoints <= _root.gamedeaths)) && (_root.gamestartpoint == "First")) || (((_root.savedData.data.player1gametime > _root.gameTIME) && (_root.savedData.data.player1gamepoints <= _root.gamedeaths)) && (_root.gamestartpoint == "First"))) || (_root.newdeathsrecord.text != "")) { _root.savedData.data.player1gametime = _root.gameTIME; } else { _root.newtimerecord.text = ""; } _root.toppoints.text = "---"; _root.topratio.text = "---"; if (_root.savedData.data.player1gamepoints != undefined) { _root.toppoints.text = _root.savedData.data.player1gamepoints; _root.topratio.text = Math.round((_root.savedData.data.player1gamepoints / _root.totalpoints) * 10000) / 100; } if (((_root.savedData.data.player1gamepoints == undefined) && (_root.gamestartpoint == "First")) || ((_root.savedData.data.player1gamepoints < _root.GAMEplayer1points) && (_root.gamestartpoint == "First"))) { _root.savedData.data.player1gamepoints = _root.GAMEplayer1points; } else { _root.newcoinrecord.text = ""; _root.newratiorecord.text = ""; } _root.savedData.flush(); } _root.GAMEtotalpoints = 0; levelname = 0; while (levelname < (_root.savedData.data.levelMAX - 1)) { _root.GAMEtotalpoints = _root.GAMEtotalpoints + _root.savedData.data[("LVL" + _root.LevelNames[levelname]) + "totalpoints"]; levelname++; } _root.GAMEpointratio = Math.round((_root.GAMEplayer1points / _root.GAMEtotalpoints) * 10000) / 100; _root.gameTIMESTR = _root.gameTIME + " sec"; if (_root.gamestartpoint == "First") { _root.incomplete.text = ""; } if (_root.stattracking == true) { StatTracker.submitStat("/flashgames/breakfastclub/gamecomplete"); if (_root.GAMEpointratio >= 100) { StatTracker.submitStat("/flashgames/breakfastclub/gamecoins100percent"); } else if (_root.GAMEpointratio >= 50) { StatTracker.submitStat("/flashgames/breakfastclub/gamecoins050percent"); } }
Frame 79
if (_root.go != true) { gotoAndStop (78); } else { _root.go = false; }
Symbol 1 MovieClip [camShaker] Frame 1
shakeLoop = 0; force = 15; onEnterFrame = function () { gemPause(); };
Symbol 1 MovieClip [camShaker] Frame 2
if (_root.world.camera._x < ((_root.world.bgWidth - 250) - force)) { _root.world.camera._x = _root.world.camera._x + force; }
Symbol 1 MovieClip [camShaker] Frame 3
if (_root.world.camera._x < ((_root.world.bgWidth - 250) - force)) { _root.world.camera._x = _root.world.camera._x + force; }
Symbol 1 MovieClip [camShaker] Frame 4
if (_root.world.camera._x > (250 + force)) { _root.world.camera._x = _root.world.camera._x - force; }
Symbol 1 MovieClip [camShaker] Frame 5
if (_root.world.camera._x > (250 + force)) { _root.world.camera._x = _root.world.camera._x - force; }
Symbol 1 MovieClip [camShaker] Frame 6
if (_root.world.camera._x > (250 + force)) { _root.world.camera._x = _root.world.camera._x - force; }
Symbol 1 MovieClip [camShaker] Frame 7
if (_root.world.camera._x > (250 + force)) { _root.world.camera._x = _root.world.camera._x - force; }
Symbol 1 MovieClip [camShaker] Frame 8
if (_root.world.camera._x < ((_root.world.bgWidth - 250) - force)) { _root.world.camera._x = _root.world.camera._x + force; }
Symbol 1 MovieClip [camShaker] Frame 9
if (_root.world.camera._x < ((_root.world.bgWidth - 250) - force)) { _root.world.camera._x = _root.world.camera._x + force; }
Symbol 1 MovieClip [camShaker] Frame 10
shakeLoop = shakeLoop + 1; if (shakeLoop > shakes) { this.removeMovieClip(); } else { gotoAndPlay (2); }
Symbol 6 MovieClip Frame 1
_xscale = _parent._parent.bubbleSCALE; _yscale = _parent._parent.bubbleSCALE;
Symbol 7 MovieClip [Bubble 1] Frame 1
onEnterFrame = function () { if ((!_parent.Water.hitTest((((((bubble._x * _xscale) / 100) + _x) * _parent._xscale) / 100) + _parent._x, (((((bubble._y * _yscale) / 100) + _y) * _parent._yscale) / 100) + _parent._y, true)) || (_parent.Player1.sensor.bubbles > (parseFloat(_name.substr(6)) + _parent.Player1.sensor.bubblesMAX))) { this.removeMovieClip(); } };
Symbol 7 MovieClip [Bubble 1] Frame 60
removeMovieClip(this);
Symbol 14 MovieClip Frame 1
stop();
Symbol 1140 MovieClip [__Packages.com.managers.SoundManager] Frame 0
class com.managers.SoundManager extends MovieClip { var thisMC, sounds_array, globalSound_snd, theSoundClipMC, getNextHighestDepth, createEmptyMovieClip; function SoundManager (aSoundRef) { super(); thisMC = aSoundRef; sounds_array = new Array(); } function init() { } function addSound(aSoundLinkage_str) { globalSound_snd = new Sound(this); var _local6 = ("sndHolder_" + String(sounds_array.length)) + "_mc"; var _local4 = thisMC.getNextHighestDepth(); var _local5 = thisMC.createEmptyMovieClip(_local6, _local4); theSoundClipMC = _local5; var _local3 = MovieClip(theSoundClipMC); var _local2 = new Sound(_local3); _local2.attachSound(aSoundLinkage_str); sounds_array.push(_local3); var _local7 = new com.managers.SoundDataObject(aSoundLinkage_str, _local2); sounds_array.push(_local7); } function getSound(aSoundLinkage_str) { var _local2; var _local6 = sounds_array.length; _local2 = 0; while (_local2 < _local6) { var _local3 = sounds_array[_local2]; var _local5 = _local3.__get__name(); if (aSoundLinkage_str == _local5) { var _local4 = _local3.__get__sound(); return(_local4); } _local2++; } } function playSound(aSoundLinkage_str, aOffset_num, aLoopCount_num) { stopSound(aSoundLinkage_str); var _local2 = getSound(aSoundLinkage_str); _local2.start(aOffset_num, aLoopCount_num); } function stopSound(aSoundLinkage_str) { var _local2 = getSound(aSoundLinkage_str); _local2.stop(aSoundLinkage_str); } function setSoundVolume(aSoundLinkage_str, aVolume_num) { var _local2 = getSound(aSoundLinkage_str); _local2.setVolume(aVolume_num); } function getSoundVolume(aSoundLinkage_str) { var _local2 = getSound(aSoundLinkage_str); return(_local2.getVolume()); } function tweenSoundVolume(aSoundLinkage_str, aTargetVolume_num, aNumberOfFrames) { var _local3 = getSoundVolume(aSoundLinkage_str); if (_local3 == undefined) { } else { var _local4 = aTargetVolume_num; var _local6 = Math.abs(_local3 - _local4); if (_local6 < aNumberOfFrames) { _local6 = aNumberOfFrames; } var _local5 = 1; if (_local3 < _local4) { _local5 = 1; } else if (_local3 > _local4) { _local5 = -1; } else { trace("tCurrentVolume == tTargetVolume"); } var _local8 = _local6 / aNumberOfFrames; if (_local8 < 1) { _local8 = 1; } var _local13 = _local8 * _local5; var _local12 = ("tweenHolder_" + aSoundLinkage_str) + "_mc"; var _local11 = getNextHighestDepth(); var _local14 = createEmptyMovieClip(_local12, _local11); var _local2 = MovieClip(_local14); _local2.ref = this; _local2.targetVolume = _local4; _local2.modNumber = _local5; _local2.soundLinkage = aSoundLinkage_str; _local2.changePerFrame = _local13; _local2.onEnterFrame = function () { var _local2 = this.ref.getSoundVolume(this.soundLinkage); if (this.modNumber > 0) { if (_local2 > this.targetVolume) { this.onEnterFrame = null; } } else if (this.modNumber < 0) { if (_local2 < this.targetVolume) { this.onEnterFrame = null; } } else { trace("this.modNumber == 0 in Sound Manager, something is broken"); } var _local3 = _local2 + this.changePerFrame; this.ref.setSoundVolume(aSoundLinkage_str, _local3); }; } } function setGlobalVolume(aVolume_num) { globalSound_snd.setVolume(aVolume_num); } }
Symbol 1141 MovieClip [__Packages.com.managers.SoundDataObject] Frame 0
class com.managers.SoundDataObject extends Object { var name_str, sound_snd; function SoundDataObject (aSoundName_str, aSound_snd) { super(); name_str = aSoundName_str; sound_snd = aSound_snd; } function get sound() { return(sound_snd); } function get name() { return(name_str); } }
Symbol 1142 MovieClip [__Packages.com.utilities.StatTracker] Frame 0
class com.utilities.StatTracker { function StatTracker () { } function init() { } static function submitStat(aString) { var _local1 = ("javascript:urchinTracker('/flashtracking" + aString) + "');"; trace("tUrchinString = " + _local1); getURL (_local1); } }
Symbol 24 MovieClip Frame 1
_root.stop(); if (_root.died == true) { _root.levelDEAD = getTimer() / 1000; _root.levelDEADTIME = _root.levelDEADTIME + (_root.levelDEAD - _root.levelSTART); } else { _root.levelDEADTIME = 0; } onMouseDown = function () { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.soundManager_mc.playSound("Beep_Error06.wavsound", 0, 1); if (_parent._parent._name == "World") { _root.gotoAndPlay(_root.level + " Start"); } else { _root.levelSTART = getTimer() / 1000; _root.go = true; _parent.play(); } } }; armed = false; var buttonColor = new Color(this); var mouseoverFlash = {ra:100, rb:100, ga:100, gb:100, ba:100, bb:100, aa:100, ab:0}; var normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; onEnterFrame = function () { if (Key.isDown(_root.kSTART) && (armed == true)) { _root.soundManager_mc.playSound("Beep_Error06.wavsound", 0, 1); if (_parent._parent._name == "World") { _root.gotoAndPlay(_root.level + " Start"); } else { _root.levelSTART = getTimer() / 1000; _root.go = true; _parent.play(); } } else if (!Key.isDown(_root.kSTART)) { armed = true; } if ((((_parent._xmouse > (this._x - (this._width / 2))) && (_parent._xmouse < (this._x + (this._width / 2)))) && (_parent._ymouse > (this._y - (this._height / 2)))) && (_parent._ymouse < (this._y + (this._height / 2)))) { buttonColor.setTransform(mouseoverFlash); } else { buttonColor.setTransform(normal); } };
Symbol 32 Button
on (release) { stopAllSounds(); getURL ("http://www.liquidgeneration.com/Content/090307/breakfastclub_videogame.html", "_new"); }
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) { if (_parent._parent._parent._name != "World") { _parent._parent.stop(); _parent._parent.onEnterFrame = undefined; _parent.stop(); stop(); } }
Symbol 38 MovieClip Frame 48
stop();
Symbol 39 MovieClip [Rock 1] Frame 1
if (onEnterFrame == undefined) { this.framerateMAX = _root.World.framerateMAX; catchTIMER = 0; rockTIMER = 0; rockTIME = 10; rockBLINKTIME = 2; playerDISMAX = 1000; bouncerate = 1.25; deadspeed = 0.5; gspeedX = 0; gspeedY = 0; onEnterFrame = function () { this.engineloops = _root.World.engineloops; rockTIMER = rockTIMER + ((1 / this.framerateMAX) * this.engineloops); playerDIS = Math.sqrt(Math.pow(_parent.Player1._x - _x, 2) + Math.pow(_parent.Player1._y - _y, 2)); if ((rockTIME <= rockTIMER) || (playerDIS > playerDISMAX)) { this.removeMovieClip(); } else if ((rockTIMER > (rockTIME - rockBLINKTIME)) && (_visible == true)) { _visible = false; } else if (rockTIMER > (rockTIME - rockBLINKTIME)) { _visible = true; } if (catchTIMER > _parent.throwTIME) { if ((Math.abs((_parent.Player1.sensor._x + _parent.Player1._x) - _x) <= (_parent.Player1.sensor._width / 2)) && (Math.abs((_parent.Player1.sensor._y + _parent.Player1._y) - _y) <= (_parent.Player1.sensor._height / 2))) { if (_parent.Player1.rocksloaded < (_parent.Player1.rocksloadedMAX + Math.floor(_root.World.Player1.points / 100))) { _parent.Player1.rocksloaded = _parent.Player1.rocksloaded + 1; _parent.attachMovie("Rock Number", "rocknumber" + _parent.Player1.rocksloaded, 250, {_x:_x, _y:_y - 10, rocksloaded:_parent.Player1.rocksloaded}); } this.removeMovieClip(); } } else { catchTIMER = catchTIMER + 1; } if (((speedX == undefined) || (speedY == undefined)) || (((Math.abs(speedX) < deadspeed) && (Math.abs(speedY) < deadspeed)) && (environment != "frozen"))) { offsetX = 0; offsetY = 0; throwX = 0; throwY = 0; gravityX = 0; gravityY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; speedX = 0; speedY = 0; environment = "frozen"; } else if ((((speedX != 0) && (speedY != 0)) || (throwspeedX != undefined)) || (throwspeedY != undefined)) { frameloops = 1; while (frameloops <= _parent.engineloops) { charWIDTH = 20; charHEIGHT = 20; if ((_parent.SoftBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _parent._y, true) && (speedY >= 0)) || (_parent.HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _parent._y, true) && (speedY >= 0))) { TOUCHground = true; } else { TOUCHground = false; } if (_parent.HardBoundary.hitTest(((((_x + offsetX) + (charWIDTH * 0.5)) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHwallright = true; throwspeedX = throwspeedX / (-bouncerate); } else { TOUCHwallright = false; } if (_parent.HardBoundary.hitTest(((((_x + offsetX) - (charWIDTH * 0.5)) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHwallleft = true; throwspeedX = throwspeedX / (-bouncerate); } else { TOUCHwallleft = false; } if (_parent.HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) - (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHceiling = true; throwspeedY = throwspeedY / (-bouncerate); gspeedY = 0; } else { TOUCHceiling = false; } if (_parent.Water.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((_y + offsetY) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (_parent.Spring.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _parent._y, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (environment == "duckpaddle") { throwspeedX = 0; throwspeedY = 0; throwX = 0; throwY = 0; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = _parent.watercurrentrateX; windY = 0; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { throwspeedY = 0; throwX = 0; throwY = 0; gravityX = _parent.gravityrateX; gravityY = _parent.gravityrateY; windX = _parent.watercurrentrateX; windY = _parent.watercurrentrateY; throwspeedX = throwspeedX / 1.25; gspeedX = gspeedX / 1.25; gspeedY = gspeedY / 1.25; environmentchecker = "water"; } else if (environment == "watergrounded") { gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; throwspeedX = 0; throwspeedY = 0; throwX = 0; throwY = 0; windX = 0; windY = 0; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { gravityX = _parent.gravityrateX; gravityY = _parent.gravityrateY; windX = _parent.windrateX; windY = _parent.windrateY; throwX = 0; throwY = 0; environmentchecker = "air"; } else if (environment == "grounded") { throwspeedX = throwspeedX / _parent.throwdrag; throwspeedY = throwspeedY / _parent.throwdrag; if (throwspeedY < 0) { throwspeedY = ((-1 * throwspeedY) + gspeedY) / bouncerate; } if (Math.abs(throwspeedX) < deadspeed) { throwspeedX = 0; } if (Math.abs(throwspeedY) < deadspeed) { throwspeedY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "ground"; } else if (environment == "sprung") { throwspeedY = 0; throwX = _parent.springrateX; throwY = _parent.springrateY; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "sprung"; } throwspeedX = throwspeedX + throwX; gspeedX = gspeedX + gravityX; windspeedX = windX; throwspeedY = throwspeedY + throwY; gspeedY = gspeedY + gravityY; windspeedY = windY; speedX = (throwspeedX - gspeedX) + windspeedX; speedY = ((-throwspeedY) + gspeedY) - windspeedY; if (speedX > _parent.speedXMAX) { speedX = speedX - (speedX - _parent.speedXMAX); } else if (speedX < (-_parent.speedXMAX)) { speedX = speedX + (_parent.speedXMAX - speedX); } if (speedY > _parent.speedYMAX) { speedY = speedY - (speedY - _parent.speedYMAX); } else if (speedY < (-_parent.speedYMAX)) { speedY = speedY + (_parent.speedYMAX - speedY); } _x = (_x + speedX); _y = (_y + speedY); if (speedY >= 0) { d = 1; while (d <= _parent.floorpushes) { if (((!_parent.SoftBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) + (charHEIGHT * 0.5)) - d) * _parent._yscale) / 100) + _parent._y, true)) && (!_parent.HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) + (charHEIGHT * 0.5)) - d) * _parent._yscale) / 100) + _parent._y, true))) && (!_parent.Spring.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) + (charHEIGHT * 0.5)) - d) * _parent._yscale) / 100) + _parent._y, true))) { _y = (_y - (d - 1)); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) - (charHEIGHT * 0.5)) + u) * _parent._yscale) / 100) + _parent._y, true)) { _y = (_y + (u - 1)); break; } gspeedY = 0; windspeedY = 0; speedY = 0; u++; } } if ((speedX >= 0) || (speedY != 0)) { r = 1; while (r <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) + (charWIDTH * 0.5)) - r) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.375)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x - (r - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; r++; } ur = 1; while (ur <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) + (charWIDTH * 0.3)) - ur) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) - (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x - (ur - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; ur++; } } if ((speedX <= 0) || (speedY != 0)) { l = 1; while (l <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) - (charWIDTH * 0.5)) + l) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.375)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x + (l - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; l++; } ul = 1; while (ul <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) - (charWIDTH * 0.3)) + ul) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) - (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x + (ul - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; ul++; } } this.totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); frameloops++; } } }; }
Symbol 43 MovieClip [Rock Number] Frame 1
_root.soundManager_mc.playSound("Pickup_bombs.wav", 0, 1); _root.soundManager_mc.playSound("bender_pickup.aiff", 0, 1);
Symbol 43 MovieClip [Rock Number] Frame 24
removeMovieClip(this);
Symbol 45 MovieClip [PlayerStart] Frame 1
if (_root.World.Player1._x != undefined) { _root.World.charX = _x; _root.World.charY = _y; _root.World.Player1._x = _x; _root.World.Player1._y = _y; } else { _root.World.attachMovie("Player1", "Player1", _root.attachDEPTH, {_x:_x, _y:_y}); _root.attachDEPTH = _root.attachDEPTH + 1; } if (_root.World.camera._x != undefined) { _root.World.camera._x = _x; _root.World.camera._y = _y; _root.World.camX = _x; _root.World.camY = _y; } else { _root.World.attachMovie("camFrame", "camera", _root.attachDEPTH, {_x:_x, _y:_y}); _root.attachDEPTH = _root.attachDEPTH + 1; } _visible = false; removeMovieClip(this);
Symbol 79 MovieClip [Bomb 1] Frame 1
bombTIMER = 0; bombTIME = 0; bombTIME = 1.5; framerateDEFAULT = _root.World.framerateDEFAULT; framerateMAX = _root.World.framerateMAX; playerDISMAX = 1000; throwspeedX = this.bombFALLX; throwspeedY = this.bombFALLY; gspeedX = 0; gspeedY = 0; bouncerate = 1.25; deadspeed = 0.1; if (_parent.explosions == undefined) { _parent.explosions = 0; } onEnterFrame = function () { this.engineloops = _root.World.engineloops; bombTIMER = bombTIMER + ((1 / this.framerateMAX) * this.engineloops); playerDIS = Math.sqrt(Math.pow(_parent.Player1._x - _x, 2) + Math.pow(_parent.Player1._y - _y, 2)); if (bombTIME <= bombTIMER) { _parent.explosions = _parent.explosions + 1; _parent.attachMovie("Explosion 1", "Explosion" + _parent.explosions, _root.attachDEPTH, {_x:_x, _y:_y}); _root.attachDEPTH = _root.attachDEPTH + 1; this.removeMovieClip(); } if (((speedX == undefined) || (speedY == undefined)) || (((Math.abs(speedX) < deadspeed) && (Math.abs(speedY) < deadspeed)) && (environment != "frozen"))) { offsetX = 0; offsetY = 0; throwX = 0; throwY = 0; gravityX = 0; gravityY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; speedX = 0; speedY = 0; environment = "frozen"; } else if ((((speedX != 0) && (speedY != 0)) || (throwspeedX != undefined)) || (throwspeedY != undefined)) { frameloops = 1; while (frameloops <= _parent.engineloops) { charWIDTH = 20; charHEIGHT = 20; if ((_parent.SoftBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _parent._y, true) && (speedY >= 0)) || (HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _x, ((((_y + offsetY) + (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _y, true) && (speedY >= 0))) { TOUCHground = true; } else { TOUCHground = false; } if (_parent.HardBoundary.hitTest(((((_x + offsetX) + (charWIDTH * 0.5)) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHwallright = true; throwspeedX = throwspeedX / (-bouncerate); } else { TOUCHwallright = false; } if (_parent.HardBoundary.hitTest(((((_x + offsetX) - (charWIDTH * 0.5)) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHwallleft = true; throwspeedX = throwspeedX / (-bouncerate); } else { TOUCHwallleft = false; } if (_parent.HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) - (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHceiling = true; throwspeedY = throwspeedY / (-bouncerate); } else { TOUCHceiling = false; } if (_parent.Water.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((_y + offsetY) * _parent._yscale) / 100) + _parent._y, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (_parent.Spring.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.5)) * _parent._yscale) / 100) + _parent._y, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (environment == "duckpaddle") { throwspeedX = 0; throwspeedY = 0; throwX = 0; throwY = 0; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = _parent.watercurrentrateX; windY = 0; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { throwspeedY = 0; throwX = 0; throwY = 0; gravityX = _parent.gravityrateX; gravityY = _parent.gravityrateY; windX = _parent.watercurrentrateX; windY = _parent.watercurrentrateY; throwspeedX = throwspeedX / 1.25; gspeedX = gspeedX / 1.25; gspeedY = gspeedY / 1.25; environmentchecker = "water"; } else if (environment == "watergrounded") { gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; throwspeedX = 0; throwspeedY = 0; throwX = 0; throwY = 0; windX = 0; windY = 0; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { gravityX = _parent.gravityrateX; gravityY = _parent.gravityrateY; windX = _parent.windrateX; windY = _parent.windrateY; throwX = 0; throwY = 0; environmentchecker = "air"; } else if (environment == "grounded") { throwspeedX = throwspeedX / _parent.throwdrag; throwspeedY = throwspeedY / _parent.throwdrag; if (throwspeedY < 0) { throwspeedY = ((-1 * throwspeedY) + gspeedY) / bouncerate; } if (Math.abs(throwspeedX) < deadspeed) { throwspeedX = 0; } if (Math.abs(throwspeedY) < deadspeed) { throwspeedY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "ground"; } else if (environment == "sprung") { throwspeedY = 0; throwX = _parent.springrateX; throwY = _parent.springrateY; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "sprung"; } throwspeedX = throwspeedX + throwX; gspeedX = gspeedX + gravityX; windspeedX = windX; throwspeedY = throwspeedY + throwY; gspeedY = gspeedY + gravityY; windspeedY = windY; speedX = (throwspeedX - gspeedX) + windspeedX; speedY = ((-throwspeedY) + gspeedY) - windspeedY; if (speedX > _parent.speedXMAX) { speedX = speedX - (speedX - _parent.speedXMAX); } else if (speedX < (-_parent.speedXMAX)) { speedX = speedX + (_parent.speedXMAX - speedX); } if (speedY > _parent.speedYMAX) { speedY = speedY - (speedY - _parent.speedYMAX); } else if (speedY < (-_parent.speedYMAX)) { speedY = speedY + (_parent.speedYMAX - speedY); } _x = (_x + speedX); _y = (_y + speedY); if (speedY >= 0) { d = 1; while (d <= _parent.floorpushes) { if (((!_parent.SoftBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) + (charHEIGHT * 0.5)) - d) * _parent._yscale) / 100) + _parent._y, true)) && (!_parent.HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) + (charHEIGHT * 0.5)) - d) * _parent._yscale) / 100) + _parent._y, true))) && (!_parent.Spring.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) + (charHEIGHT * 0.5)) - d) * _parent._yscale) / 100) + _parent._y, true))) { _y = (_y - (d - 1)); break; } gspeedY = 0; windspeedY = 0; speedY = 0; d++; } } else if (speedY < 0) { u = 1; while (u <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((_x + offsetX) * _parent._xscale) / 100) + _parent._x, (((((_y + offsetY) - (charHEIGHT * 0.5)) + u) * _parent._yscale) / 100) + _parent._y, true)) { _y = (_y + (u - 1)); break; } gspeedY = 0; windspeedY = 0; speedY = 0; u++; } } if ((speedX >= 0) || (speedY != 0)) { r = 1; while (r <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) + (charWIDTH * 0.5)) - r) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.375)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x - (r - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; r++; } ur = 1; while (ur <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) + (charWIDTH * 0.3)) - ur) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) - (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x - (ur - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; ur++; } } if ((speedX <= 0) || (speedY != 0)) { l = 1; while (l <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) - (charWIDTH * 0.5)) + l) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) + (charHEIGHT * 0.375)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x + (l - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; l++; } ul = 1; while (ul <= _parent.floorpushes) { if (!_parent.HardBoundary.hitTest((((((_x + offsetX) - (charWIDTH * 0.3)) + ul) * _parent._xscale) / 100) + _parent._x, ((((_y + offsetY) - (charHEIGHT * 0.25)) * _parent._yscale) / 100) + _parent._y, true)) { _x = (_x + (ul - 1)); break; } gspeedX = 0; windspeedX = 0; speedX = 0; ul++; } } frameloops++; } } };
Symbol 96 MovieClip [Explosion 1] Frame 1
DEGtoRAD = (Math.PI/180); this.hitDISTANCE = (this._width / 2) + ((_parent.charWIDTH + _parent.charHEIGHT) / 4); onEnterFrame = function () { this.Player1X = _parent.Player1._x; this.Player1Y = _parent.Player1._y; this.PlayerHEIGHT = _parent.Player1._height; this.Player1WIDTH = _parent.Player1._width; this.Player1DISTANCE = Math.pow(Math.pow(this.Player1X - this._x, 2) + Math.pow(this.Player1Y - this._y, 2), 0.5); if (((_parent.Player1.rocksloaded > 0) && (this.Player1DISTANCE < this.hitDISTANCE)) && (_root.World.charBLINK == false)) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; _parent.Player1.rocksthrown = _parent.Player1.rocksthrown + 1; _parent.attachMovie("Rock 1", "rock" + _parent.Player1.rocksthrown, 100 + _parent.Player1.rocksthrown, {_x:_parent.charsensorX + _parent.charX, _y:(_parent.charsensorY + _parent.charY) - ((_parent.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(this.throwANGLEdamaged * DEGtoRAD) * this.throwratedamaged) * _parent.faceX) + _parent.speedX, throwspeedY:(Math.cos(this.throwANGLEdamaged * DEGtoRAD) * this.throwratedamaged) - _parent.speedY, weapon:false}); _parent.oldrock = _parent.Player1.rocksthrown - _parent.rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); _parent.Player1.rocksloaded = _parent.Player1.rocksloaded - 1; if (_parent.Player1.rocksloaded > 0) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; _parent.Player1.rocksthrown = _parent.Player1.rocksthrown + 1; _parent.attachMovie("Rock 1", "rock" + _parent.Player1.rocksthrown, 100 + _parent.Player1.rocksthrown, {_x:_parent.charsensorX + _parent.charX, _y:(_parent.charsensorY + _parent.charY) - ((_parent.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(this.throwANGLEdamaged * DEGtoRAD) * this.throwratedamaged) * _parent.faceX) + _parent.speedX, throwspeedY:(Math.cos(this.throwANGLEdamaged * DEGtoRAD) * this.throwratedamaged) - _parent.speedY}); _parent.oldrock = _parent.Player1.rocksthrown - _parent.rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); _parent.Player1.rocksloaded = _parent.Player1.rocksloaded - 1; } else if ((this.Player1DISTANCE < this.hitDISTANCE) && (_root.World.charBLINK == false)) { _root.World.charALIVE = false; } _root.World.charBLINK = true; } else if ((this.Player1DISTANCE < this.hitDISTANCE) && (_root.World.charBLINK == false)) { _root.World.charALIVE = false; } };
Instance of Symbol 81 MovieClip in Symbol 96 MovieClip [Explosion 1] Frame 1
onClipEvent (load) { _visible = false; }
Symbol 96 MovieClip [Explosion 1] Frame 3
onEnterFrame = undefined; _root.soundManager_mc.playSound("Explo_Small_Bomb3.wav", 0, 1);
Symbol 96 MovieClip [Explosion 1] Frame 17
removeMovieClip(this);
Symbol 103 MovieClip [Bomber 1] Frame 1
this.bombTIMER = 0; this.bombINTERVAL = Math.round(_parent.framerateDEFAULT / 0.75); this.speedX = 1; this.bombFALLX = this.speedX; this.bombFALLY = 2; this.charALIVE = true; this.vulnerableDISTANCE = _width; if (this.flyDIR == undefined) { this.flyDIR = 1; } if (this.flyDIR < 0) { this._xscale = -100; } if (_parent.bombs == undefined) { _parent.bombs = 0; } DEGtoRAD = (Math.PI/180); this.hitDISTANCE = 50; this.birth = getTimer() / 1000; onEnterFrame = function () { this.age = getTimer() / 1000; this.engineloops = _root.World.engineloops; if (this.charALIVE == true) { this.Player1X = _parent.Player1._x; this.Player1Y = _parent.Player1._y; this.PlayerHEIGHT = _parent.Player1._height; this.Player1WIDTH = _parent.Player1._width; this.Player1DISTANCE = Math.pow(Math.pow(this.Player1X - this._x, 2) + Math.pow(this.Player1Y - this._y, 2), 0.5); if (((_parent.Player1.rocksloaded > 0) && (this.Player1DISTANCE < this.hitDISTANCE)) && (_root.World.charBLINK == false)) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; _parent.Player1.rocksthrown = _parent.Player1.rocksthrown + 1; _parent.attachMovie("Rock 1", "rock" + _parent.Player1.rocksthrown, 100 + _parent.Player1.rocksthrown, {_x:_parent.charsensorX + _parent.charX, _y:(_parent.charsensorY + _parent.charY) - ((_parent.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * _parent.faceX) + _parent.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - _parent.speedY, weapon:false}); _parent.oldrock = _parent.Player1.rocksthrown - _parent.rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); _parent.Player1.rocksloaded = _parent.Player1.rocksloaded - 1; _root.World.charBLINK = true; } else if ((this.Player1DISTANCE < this.hitDISTANCE) && (_root.World.charBLINK == false)) { _root.World.charALIVE = false; } this._x = this._x - ((this.speedX * this.flyDIR) * this.engineloops); this.bombTIMER = this.bombTIMER + (0.2 * this.engineloops); if ((this.bombTIMER >= this.bombINTERVAL) && (!_root.World.HardBoundary.hitTest(((this._x * _root.World.worldXSCALEinit) / 100) + _root.World.worldXinit, ((this._y * _root.World.worldYSCALEinit) / 100) + _root.World.worldYinit, true))) { this.bombTIMER = 0; _parent.bombs = _parent.bombs + 1; _parent.attachMovie("Bomb 1", "Bomb" + _parent.bombs, _root.attachDEPTH, {_x:_x, _y:_y, bombFALLX:this.bombFALLX, bombFALLY:this.bombFALLY}); _root.attachDEPTH = _root.attachDEPTH + 1; _root.soundManager_mc.playSound("Cartoon_BombFall_Whistle1.wav", 0, 1); } if (((Math.abs(_x - _parent.camera._x) > ((_parent.camera._width / 2) + _root.World.badguyDISTANCEMAX)) && ((this.age - this.birth) > 2)) || ((Math.abs(_y - _parent.camera._y) > (((_parent.camera._height / 2) + this._height) + _root.World.badguyDISTANCEMAX)) && ((this.age - this.birth) > 2))) { this.removeMovieClip(); } if (this.charALIVE == true) { rockcheck = _parent.Player1.rocksthrown - _root.World.rocksMAX; while (rockcheck <= _parent.Player1.rocksthrown) { if (((_parent["rock" + rockcheck].weapon == true) && (_parent["rock" + rockcheck] != undefined)) && (_parent["rock" + rockcheck].totalspeed > 5)) { this[("rock" + rockcheck) + "currentXDIS"] = _parent["rock" + rockcheck]._x - this._x; this[("rock" + rockcheck) + "currentYDIS"] = _parent["rock" + rockcheck]._y - this._y; this[("rock" + rockcheck) + "currentDIS"] = Math.pow(Math.pow((this[("rock" + rockcheck) + "currentXDIS"] + this[("rock" + rockcheck) + "oldXDIS"]) / 2, 2) + Math.pow((this[("rock" + rockcheck) + "currentYDIS"] + this[("rock" + rockcheck) + "oldYDIS"]) / 2, 2), 0.5); this[("rock" + rockcheck) + "avgDIS"] = Math.pow(Math.pow(this[("rock" + rockcheck) + "currentXDIS"], 2) + Math.pow(this[("rock" + rockcheck) + "currentYDIS"], 2), 0.5); if ((this[("rock" + rockcheck) + "currentDIS"] < vulnerableDISTANCE) || (this[("rock" + rockcheck) + "avgDIS"] < vulnerableDISTANCE)) { this.charALIVE = false; _root.soundManager_mc.playSound("explosion.wav", 0, 1); _parent["rock" + rockcheck].removeMovieClip(); _parent.attachMovie("BomberExplosion", this._name + "EXPLOSION", _root.attachDEPTH, {_x:_x, _y:_y, _xscale:50, _yscale:50}); this.removeMovieClip(); } this[("rock" + rockcheck) + "oldXDIS"] = this[("rock" + rockcheck) + "currentXDIS"]; this[("rock" + rockcheck) + "oldYDIS"] = this[("rock" + rockcheck) + "currentYDIS"]; this[("rock" + rockcheck) + "oldDIS"] = this[("rock" + rockcheck) + "currentDIS"]; } rockcheck++; } } } };
Symbol 134 MovieClip [Attack Dog 1] Frame 1
framerateDEFAULT = _parent.framerateDEFAULT; framerateMAX = _parent.framerateMAX; framerateMIN = _parent.framerateMIN; DEGtoRAD = (Math.PI/180); bubbleDEPTH = _parent.bubbleDEPTH; digitMODE = _parent.digitMODE; this.charALIVE = true; this.rocksloaded = 0; _parent.rocksthrown = 0; this.rocksloadedMAX = 3; this.rocksMAX = _parent.rocksMAX; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = sensor._width; initHEIGHT = sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = _parent.speedXMAX; speedYMAX = _parent.speedYMAX; speedMAXdivisor = _parent.speedMAXdivisor; speedXMIN = _parent.speedXMIN; speedYMIN = _parent.speedYMIN; slidespeedMIN = _parent.slidespeedMIN; jumpTHRESHOLD = _parent.jumpTHRESHOLD; airjumpsMAX = 0; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 0; throwANGLEforward = 45; throwANGLEdown = 135; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = _parent.duckpaddleFALLSPEED; duckpaddleRATIO = _parent.duckpaddleRATIO; faceX = 1; faceY = 1; if (initfaceXDIR != undefined) { faceXDIR = initfaceXDIR; } else { faceXDIR = (this._x - _root.World.Player1._x) / Math.abs(this._x - _root.World.Player1._x); } if (initfaceYDIR != undefined) { faceYDIR = initfaceYDIR; } else { faceYDIR = 1; } digitARCLENGTH = _parent.digitARCLENGTH; engineloops = _parent.engineloops; speedmultiUNIVERSAL = _parent.speedmultiUNIVERSAL; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.075; movedragY = 1.075; slidedragX = _parent.slidedragX; slidedragY = _parent.slidedragY; waterdragX = _parent.waterdragX; waterdragY = _parent.waterdragY; swimdragX = _parent.swimdragX; swimdragY = _parent.swimdragY; watergroundfriction = _parent.watergroundfriction; throwdrag = _parent.throwdrag; swimspindrag = _parent.swimspindrag; airspindrag = _parent.airspindrag; windrateX = _parent.windrateX; windrateY = _parent.windrateY; watercurrentrateX = _parent.watercurrentrateX; watercurrentrateY = _parent.watercurrentrateY; gravityrateX = _parent.gravityrateX; gravityrateY = _parent.gravityrateY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.3 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (25 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (2 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (2 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; charX = this._x; charY = this._y; charROT = this._rotation; charsensorX = this.sensor._x; charsensorY = this.sensor._y; charsensorWIDTH = this.sensor._width; charsensorHEIGHT = this.sensor._height; worldX = _parent._x; worldY = _parent._y; worldROT = _parent._rotation; worldXSCALE = _parent._xscale; worldYSCALE = _parent._yscale; this.attackRANGE = 400; this.jumpRANGE = 200; this.hitDISTANCE = 50; this.vulnerableDISTANCE = _width; this.birth = getTimer() / 1000; onEnterFrame = function () { this.age = getTimer() / 1000; if ((((this.pasted == true) && (Math.abs(_x - _parent.camera._x) > (((_parent.camera._width / 2) + _width) + _root.World.badguyDISTANCEMAX))) && ((this.age - this.birth) > 2)) || (((this.pasted == true) && (Math.abs(_y - _parent.camera._y) > (((_parent.camera._height / 2) + this._height) + _root.World.badguyDISTANCEMAX))) && ((this.age - this.birth) > 2))) { _root.soundManager_mc.stopSound("dogBark", 0, 999999999); _root.soundManager_mc.stopSound("dogGrowl", 0, 999999999); this.removeMovieClip(); } this.Player1X = _parent.Player1._x; this.Player1Y = _parent.Player1._y; this.PlayerHEIGHT = _parent.Player1._height; this.Player1WIDTH = _parent.Player1._width; this.Player1DISTANCE = Math.pow(Math.pow(this.Player1X - this._x, 2) + Math.pow(this.Player1Y - this._y, 2), 0.5); if ((((_parent.Player1.rocksloaded > 0) && (this.Player1DISTANCE < this.hitDISTANCE)) && (_root.World.charBLINK == false)) && (this.charALIVE == true)) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; _parent.Player1.rocksthrown = _parent.Player1.rocksthrown + 1; _parent.attachMovie("Rock 1", "rock" + _parent.Player1.rocksthrown, 100 + _parent.Player1.rocksthrown, {_x:_parent.charsensorX + _parent.charX, _y:(_parent.charsensorY + _parent.charY) - ((_parent.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * _parent.faceX) + _parent.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - _parent.speedY, weapon:false}); _parent.oldrock = _parent.Player1.rocksthrown - _parent.rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); _parent.Player1.rocksloaded = _parent.Player1.rocksloaded - 1; _root.World.charBLINK = true; } else if (((this.Player1DISTANCE < this.hitDISTANCE) && (_root.World.charBLINK == false)) && (this.charALIVE == true)) { _root.World.charALIVE = false; } if (this.charALIVE == true) { if ((this.Player1X < this._x) && (this.Player1DISTANCE < this.attackRANGE)) { triggerLEFT = true; } else { triggerLEFT = false; } if ((this.Player1X > this._x) && (this.Player1DISTANCE < this.attackRANGE)) { triggerRIGHT = true; } else { triggerRIGHT = false; } if (((environment == "swimmingupward") || (environment == "swimmingdownward")) || (((environment == "duckpaddle") && ((this.Player1Y + (this.PlayerHEIGHT / 2)) < (this._y + (this._height / 2)))) && (this.Player1DISTANCE < 200))) { triggerUP = true; } else { triggerUP = false; } if (((((((((this.Player1Y + (this.PlayerHEIGHT / 2)) < (this._y + (this._height / 2))) && (this.Player1DISTANCE < this.jumpRANGE)) && ((slopeANGLE / Math.abs(slopeANGLE)) != ((this.Player1X - this._x) / Math.abs(this.Player1X - this._x)))) && (TOUCHwater == false)) && (jumparmed == true)) || ((environment == "swimmingupward") && (swimarmed == true))) || ((environment == "swimmingdownward") && (swimarmed == true))) || (((environment == "duckpaddle") && (this.Player1DISTANCE < this.attackRANGE)) && (swimarmed == true))) { triggerJUMP = true; } else { triggerJUMP = false; } engineloops = _parent.engineloops; } else { triggerLEFT = false; triggerRIGHT = false; triggerUP = false; triggerDOWN = false; triggerJUMP = false; engineloops = 0; } worldXinit = _parent._x; worldYinit = _parent._y; worldROTinit = _parent._rotation; worldXSCALEinit = _parent._xscale; worldYSCALEinit = _parent._yscale; frameloops = 1; while (frameloops <= _parent.engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (this.charALIVE == true) { rockcheck = _parent.Player1.rocksthrown - _root.World.rocksMAX; while (rockcheck <= _parent.Player1.rocksthrown) { if (((_parent["rock" + rockcheck].weapon == true) && (_parent["rock" + rockcheck] != undefined)) && (_parent["rock" + rockcheck].totalspeed > 5)) { this[("rock" + rockcheck) + "currentXDIS"] = _parent["rock" + rockcheck]._x - this._x; this[("rock" + rockcheck) + "currentYDIS"] = _parent["rock" + rockcheck]._y - this._y; this[("rock" + rockcheck) + "currentDIS"] = Math.pow(Math.pow((this[("rock" + rockcheck) + "currentXDIS"] + this[("rock" + rockcheck) + "oldXDIS"]) / 2, 2) + Math.pow((this[("rock" + rockcheck) + "currentYDIS"] + this[("rock" + rockcheck) + "oldYDIS"]) / 2, 2), 0.5); this[("rock" + rockcheck) + "avgDIS"] = Math.pow(Math.pow(this[("rock" + rockcheck) + "currentXDIS"], 2) + Math.pow(this[("rock" + rockcheck) + "currentYDIS"], 2), 0.5); if (((this[("rock" + rockcheck) + "currentDIS"] < vulnerableDISTANCE) && (_root.basketball == false)) || ((this[("rock" + rockcheck) + "avgDIS"] < vulnerableDISTANCE) && (_root.basketball == false))) { this.charALIVE = false; _parent.attachMovie("puffexplosion", "puffexplosion" + rockcheck, _root.attachDEPTH, {_x:_parent["rock" + rockcheck]._x, _y:_parent["rock" + rockcheck]._y, _xscale:50, _yscale:50}); _root.attachDEPTH = _root.attachDEPTH + 1; _parent["rock" + rockcheck].removeMovieClip(); _root.soundManager_mc.playSound("B12sFire_Shot.wav", 0, 1); } this[("rock" + rockcheck) + "oldXDIS"] = this[("rock" + rockcheck) + "currentXDIS"]; this[("rock" + rockcheck) + "oldYDIS"] = this[("rock" + rockcheck) + "currentYDIS"]; this[("rock" + rockcheck) + "oldDIS"] = this[("rock" + rockcheck) + "currentDIS"]; } rockcheck++; } } if (((speedY >= 0) && (_parent.SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (_parent.HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (_parent.SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (_parent.HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if (_parent.HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallright = true; } else { TOUCHwallright = false; } if (_parent.HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwallleft = true; } else { TOUCHwallleft = false; } if (_parent.HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (_parent.Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (_parent.Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((this.rocksloaded > 0) && (throwarmed == true)) && (triggerTHROW == true)) { _parent.rocksthrown = _parent.rocksthrown + 1; if (triggerUP == true) { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY}); } else if (triggerDOWN == true) { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY}); } else { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY}); } oldrock = _parent.rocksthrown - rocksMAX; _parent["rock" + oldrock].removeMovieClip(); this.rocksloaded = this.rocksloaded - 1; throwarmed = false; } else if ((!triggerTHROW) == true) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if ((triggerRIGHT == true) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if ((triggerLEFT == true) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if ((triggerJUMP == true) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if ((triggerJUMP == true) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; if (triggerRIGHT == true) { moveX = -moverate; } else if (triggerLEFT == true) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if ((triggerRIGHT == true) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if ((triggerLEFT == true) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((triggerJUMP == true) && (jumparmed == true)) && (airjumpCOUNT > 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } if (((((Key.isDown(_root.kJUMP) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) == -2)) && (jumpspeedX == 0)) && (jumpspeedY == 0)) && (environment == "falling")) { airjumpCOUNT = airjumpsMAX; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if (((triggerRIGHT == true) && (triggerUP == true)) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((triggerRIGHT == true) && (triggerDOWN == true)) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (((triggerLEFT == true) && (triggerUP == true)) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((triggerLEFT == true) && (triggerDOWN == true)) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (triggerRIGHT == true) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (triggerLEFT == true) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((triggerUP == true) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (triggerDOWN == true) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if ((triggerJUMP == true) && (swimarmed == true)) { if (((triggerUP == true) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if ((!triggerJUMP) == true) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (triggerRIGHT == true)) && ((!triggerUP) == true)) && ((!triggerDOWN) == true)) || ((((environmentchecker == "water") && (triggerLEFT == true)) && ((!triggerUP) == true)) && ((!triggerDOWN) == true))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if ((triggerJUMP == true) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!_parent.SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!_parent.Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!_parent.HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if (speedX > 0) { r = 1; while (r <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if (speedX < 0) { l = 1; while (l <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!_parent.SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!_parent.SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if (TOUCHdigit == true) { oldTOUCHdigit = true; } else { oldTOUCHdigit = false; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); frameloops++; } worldX = _parent._x; worldY = _parent._y; worldROT = _parent._rotation; worldXSCALE = _parent._xscale; worldYSCALE = _parent._yscale; this._x = charX; this._y = charY; this._rotation = charROT; this.sensor._x = charsensorX; this.sensor._y = charsensorY; this.sensor._width = charsensorWIDTH; this.sensor._height = charsensorHEIGHT; if (faceX > 0) { this._xscale = 100; } else if (faceX < 0) { this._xscale = -100; } };
Instance of Symbol 81 MovieClip "sensor" in Symbol 134 MovieClip [Attack Dog 1] Frame 1
onClipEvent (load) { _visible = false; _parent.stop(); bubbles = 0; bubbletime = 2; bubbleSCALEMIN = 100; bubbleSCALEMAX = 400; bubblesMAX = 50; bubbleLOOPS = 5; bubbleSPEEDSPAWN = 5 * bubbleLOOPS; } onClipEvent (enterFrame) { if (_parent.charALIVE == false) { _parent.gotoAndStop("Dead"); } else if (_parent.environment == "duckpaddle") { if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("SurfaceSwimming-Flapping"); } else { _parent.gotoAndStop("SurfaceSwimming"); } } else if (((_parent.environment == "swimmingupward") || (_parent.environment == "swimmingdownward")) || (_parent.environment == "watergrounded")) { if ((bubbletimeSTART + bubbletime) > (getTimer() / 1000)) { bubbleloop = 1; while (bubbleloop < bubbleLOOPS) { if (random(Math.max(0, bubbleSPEEDSPAWN - (_parent.totalspeed * bubbleLOOPS))) == 0) { bubbles = bubbles + 1; bubbleSCALE = random(bubbleSCALEMAX - bubbleSCALEMIN) + bubbleSCALEMIN; _parent.attachMovie("Bubble 1", "bubble" + bubbles, _parent.bubbledepth + bubbles, {_x:((((_x + (((_height / 2) * _parent.faceX) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) + ((random(_width) - (_width / 2)) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) * _parent._xscale) / 100) + _parent._x, _y:((((_y - ((_height / 2) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) - ((random(_width) - (_width / 2)) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) * _parent._yscale) / 100) + _parent._y, _xscale:bubbleSCALE, _yscale:bubbleSCALE, bubbleSCALE:bubbleSCALE}); } bubbleloop++; } } if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("Swimming-Flapping"); } else if ((Math.abs(_parent.swimspeedX) > _parent.gspeedY) || (Math.abs(_parent.swimspeedY) > _parent.gspeedY)) { _parent.gotoAndStop("Swimming"); } else { _parent.gotoAndStop("Sinking"); } } else if ((_parent.jumpspeedY >= _parent.gspeedY) && (_parent.jumpspeedY > 0)) { if (_parent.airjumpCOUNT == _parent.airjumpsMAX) { _parent.gotoAndStop("Flying"); } else { _parent.gotoAndStop("DoubleJumping"); } } else if (((_parent.jumpspeedY < _parent.gspeedY) && (_parent.jumpspeedY > 0)) || ((_parent.jumpspeedY == 0) && (_parent.gspeedY > _parent.jumpTHRESHOLD))) { _parent.gotoAndStop("Falling"); } else if (_parent.environment == "wallslide") { _parent.gotoAndStop("Wallsliding"); } else if (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME < 99)) || (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME >= 99)) && (Math.abs(_parent.movespeedX) > _parent.slidespeedMIN))) { _parent.gotoAndStop("BellySliding"); } else if (((_parent.environment == "grounded") && (_parent.charROT >= 165)) || ((_parent.environment == "grounded") && (_parent.charROT <= -165))) { _parent.gotoAndStop("Nosedivebounce"); } else if (_parent.moveX != 0) { _parent.gotoAndStop("Walking"); } else { _parent.gotoAndStop("Standing"); } if (((_parent.environment != "swimmingupward") && (_parent.environment != "swimmingdownward")) && (_parent.environment != "watergrounded")) { bubbletimeSTART = getTimer() / 1000; } }
Symbol 134 MovieClip [Attack Dog 1] Frame 2
_root.soundManager_mc.stopSound("dogBark", 0, 999999999); barking = false; if (growling != true) { _root.soundManager_mc.playSound("dogGrowl", 0, 999999999); growling = true; }
Symbol 134 MovieClip [Attack Dog 1] Frame 3
_root.soundManager_mc.stopSound("dogGrowl", 0, 999999999); growling = false; if (barking != true) { _root.soundManager_mc.playSound("dogBark", 0, 999999999); barking = true; }
Symbol 134 MovieClip [Attack Dog 1] Frame 4
_root.soundManager_mc.stopSound("dogGrowl", 0, 999999999); growling = false; if (barking != true) { _root.soundManager_mc.playSound("dogBark", 0, 999999999); barking = true; }
Symbol 134 MovieClip [Attack Dog 1] Frame 15
if ((_root.stattracking == true) && (this.deathtracked != true)) { StatTracker.submitStat("/flashgames/breakfastclub/dogkilled"); this.deathtracked = true; } _root.soundManager_mc.stopSound("dogBark", 0, 999999999); barking = false; _root.soundManager_mc.stopSound("dogGrowl", 0, 999999999); growling = false; stop();
Symbol 146 MovieClip Frame 14
stop();
Symbol 147 MovieClip [Goomba 1] Frame 1
framerateDEFAULT = _parent.framerateDEFAULT; framerateMAX = _parent.framerateMAX; framerateMIN = _parent.framerateMIN; DEGtoRAD = (Math.PI/180); bubbleDEPTH = _parent.bubbleDEPTH; digitMODE = _parent.digitMODE; this.charALIVE = true; this.rocksloaded = 0; _parent.rocksthrown = 0; this.rocksloadedMAX = 3; this.rocksMAX = _parent.rocksMAX; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = sensor._width; initHEIGHT = sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = _parent.speedXMAX; speedYMAX = _parent.speedYMAX; speedMAXdivisor = _parent.speedMAXdivisor; speedXMIN = _parent.speedXMIN; speedYMIN = _parent.speedYMIN; slidespeedMIN = _parent.slidespeedMIN; jumpTHRESHOLD = _parent.jumpTHRESHOLD; airjumpsMAX = 0; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 0; throwANGLEforward = 45; throwANGLEdown = 135; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = _parent.duckpaddleFALLSPEED; duckpaddleRATIO = _parent.duckpaddleRATIO; faceX = 1; faceY = 1; if (initfaceXDIR != undefined) { faceXDIR = initfaceXDIR; } else { faceXDIR = (this._x - _root.World.Player1._x) / Math.abs(this._x - _root.World.Player1._x); } if (initfaceYDIR != undefined) { faceYDIR = initfaceYDIR; } else { faceYDIR = 1; } digitARCLENGTH = _parent.digitARCLENGTH; engineloops = _parent.engineloops; speedmultiUNIVERSAL = _parent.speedmultiUNIVERSAL; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.2; movedragY = 1.2; slidedragX = _parent.slidedragX; slidedragY = _parent.slidedragY; waterdragX = 3; waterdragY = 3; swimdragX = _parent.swimdragX; swimdragY = _parent.swimdragY; watergroundfriction = _parent.watergroundfriction; throwdrag = _parent.throwdrag; swimspindrag = _parent.swimspindrag; airspindrag = _parent.airspindrag; windrateX = _parent.windrateX; windrateY = _parent.windrateY; watercurrentrateX = _parent.watercurrentrateX; watercurrentrateY = _parent.watercurrentrateY; gravityrateX = _parent.gravityrateX; gravityrateY = _parent.gravityrateY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.3 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (25 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; charX = this._x; charY = this._y; charROT = this._rotation; charsensorX = this.sensor._x; charsensorY = this.sensor._y; charsensorWIDTH = this.sensor._width; charsensorHEIGHT = this.sensor._height; worldX = _parent._x; worldY = _parent._y; worldROT = _parent._rotation; worldXSCALE = _parent._xscale; worldYSCALE = _parent._yscale; this.attackRANGE = 400; this.jumpRANGE = 200; this.hitDISTANCE = 50; this.vulnerableDISTANCE = (_width + _height) / 4; this.birth = getTimer() / 1000; onEnterFrame = function () { this.age = getTimer() / 1000; if ((((this.pasted == true) && (Math.abs(_x - _parent.camera._x) > (((_parent.camera._width / 2) + _width) + _root.World.badguyDISTANCEMAX))) && ((this.age - this.birth) > 2)) || (((this.pasted == true) && (Math.abs(_y - _parent.camera._y) > (((_parent.camera._height / 2) + this._height) + _root.World.badguyDISTANCEMAX))) && ((this.age - this.birth) > 2))) { this.removeMovieClip(); } this.Player1X = _parent.Player1._x; this.Player1Y = _parent.Player1._y; this.Player1HEIGHT = _parent.Player1._height; this.Player1WIDTH = _parent.Player1._width; this.Player1DISTANCE = Math.pow(Math.pow(this.Player1X - this._x, 2) + Math.pow(this.Player1Y - this._y, 2), 0.5); if ((((_parent.Player1.rocksloaded > 0) && (this.Player1DISTANCE < this.hitDISTANCE)) && (_root.World.charBLINK == false)) && (this.charALIVE == true)) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; _parent.Player1.rocksthrown = _parent.Player1.rocksthrown + 1; _parent.attachMovie("Rock 1", "rock" + _parent.Player1.rocksthrown, 100 + _parent.Player1.rocksthrown, {_x:_parent.charsensorX + _parent.charX, _y:(_parent.charsensorY + _parent.charY) - ((_parent.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * _parent.faceX) + _parent.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - _parent.speedY, weapon:false}); _parent.oldrock = _parent.Player1.rocksthrown - _parent.rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); _parent.Player1.rocksloaded = _parent.Player1.rocksloaded - 1; _root.World.charBLINK = true; } else if (((this.Player1DISTANCE < this.hitDISTANCE) && (_root.World.charBLINK == false)) && (this.charALIVE == true)) { _root.World.charALIVE = false; } if (this.charALIVE == true) { if (this.faceXDIR < 0) { triggerLEFT = true; } else { triggerLEFT = false; } if (this.faceXDIR > 0) { triggerRIGHT = true; } else { triggerRIGHT = false; } if ((((environment == "swimmingupward") && (swimarmed == true)) || ((environment == "swimmingdownward") && (swimarmed == true))) || ((environment == "duckpaddle") && (swimarmed == true))) { triggerJUMP = true; } else { triggerJUMP = false; } engineloops = _parent.engineloops; } else { triggerLEFT = false; triggerRIGHT = false; triggerUP = false; triggerDOWN = false; triggerJUMP = false; engineloops = 0; } worldXinit = _parent._x; worldYinit = _parent._y; worldROTinit = _parent._rotation; worldXSCALEinit = _parent._xscale; worldYSCALEinit = _parent._yscale; frameloops = 1; while (frameloops <= _parent.engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (this.charALIVE == true) { rockcheck = _parent.Player1.rocksthrown - _root.World.rocksMAX; while (rockcheck <= _parent.Player1.rocksthrown) { if (((_parent["rock" + rockcheck].weapon == true) && (_parent["rock" + rockcheck] != undefined)) && (_parent["rock" + rockcheck].totalspeed > 5)) { this[("rock" + rockcheck) + "currentXDIS"] = _parent["rock" + rockcheck]._x - this._x; this[("rock" + rockcheck) + "currentYDIS"] = _parent["rock" + rockcheck]._y - this._y; this[("rock" + rockcheck) + "currentDIS"] = Math.pow(Math.pow((this[("rock" + rockcheck) + "currentXDIS"] + this[("rock" + rockcheck) + "oldXDIS"]) / 2, 2) + Math.pow((this[("rock" + rockcheck) + "currentYDIS"] + this[("rock" + rockcheck) + "oldYDIS"]) / 2, 2), 0.5); this[("rock" + rockcheck) + "avgDIS"] = Math.pow(Math.pow(this[("rock" + rockcheck) + "currentXDIS"], 2) + Math.pow(this[("rock" + rockcheck) + "currentYDIS"], 2), 0.5); if ((this[("rock" + rockcheck) + "currentDIS"] < vulnerableDISTANCE) || (this[("rock" + rockcheck) + "avgDIS"] < vulnerableDISTANCE)) { this.charALIVE = false; _parent.attachMovie("puffexplosion", "puffexplosion" + rockcheck, _root.attachDEPTH, {_x:_parent["rock" + rockcheck]._x, _y:_parent["rock" + rockcheck]._y, _xscale:50, _yscale:50}); _root.attachDEPTH = _root.attachDEPTH + 1; _parent["rock" + rockcheck].removeMovieClip(); _root.soundManager_mc.playSound("B12sFire_Shot.wav", 0, 1); } this[("rock" + rockcheck) + "oldXDIS"] = this[("rock" + rockcheck) + "currentXDIS"]; this[("rock" + rockcheck) + "oldYDIS"] = this[("rock" + rockcheck) + "currentYDIS"]; this[("rock" + rockcheck) + "oldDIS"] = this[("rock" + rockcheck) + "currentDIS"]; } rockcheck++; } } if (((speedY >= 0) && (_parent.SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (_parent.HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (_parent.SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (_parent.HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; } else { TOUCHdigit = false; } } else { TOUCHground = false; TOUCHdigit = false; } if ((faceXDIR > 0) && (_parent.HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true))) { TOUCHwallright = true; faceXDIR = faceXDIR * -1; } else { TOUCHwallright = false; } if ((faceXDIR < 0) && (_parent.HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true))) { TOUCHwallleft = true; faceXDIR = faceXDIR * -1; } else { TOUCHwallleft = false; } if (_parent.HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (_parent.Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (_parent.Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((this.rocksloaded > 0) && (throwarmed == true)) && (triggerTHROW == true)) { _parent.rocksthrown = _parent.rocksthrown + 1; if (triggerUP == true) { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY}); } else if (triggerDOWN == true) { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY}); } else { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY}); } oldrock = _parent.rocksthrown - rocksMAX; _parent["rock" + oldrock].removeMovieClip(); this.rocksloaded = this.rocksloaded - 1; throwarmed = false; } else if ((!triggerTHROW) == true) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if ((triggerRIGHT == true) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if ((triggerLEFT == true) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if ((triggerJUMP == true) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if ((triggerJUMP == true) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; if (triggerRIGHT == true) { moveX = -moverate; } else if (triggerLEFT == true) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if ((triggerRIGHT == true) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if ((triggerLEFT == true) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((triggerJUMP == true) && (jumparmed == true)) && (airjumpCOUNT > 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } if (((((Key.isDown(_root.kJUMP) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) == -2)) && (jumpspeedX == 0)) && (jumpspeedY == 0)) && (environment == "falling")) { airjumpCOUNT = airjumpsMAX; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if (((triggerRIGHT == true) && (triggerUP == true)) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((triggerRIGHT == true) && (triggerDOWN == true)) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (((triggerLEFT == true) && (triggerUP == true)) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((triggerLEFT == true) && (triggerDOWN == true)) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (triggerRIGHT == true) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (triggerLEFT == true) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((triggerUP == true) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (triggerDOWN == true) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if ((triggerJUMP == true) && (swimarmed == true)) { if (((triggerUP == true) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if ((!triggerJUMP) == true) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (triggerRIGHT == true)) && ((!triggerUP) == true)) && ((!triggerDOWN) == true)) || ((((environmentchecker == "water") && (triggerLEFT == true)) && ((!triggerUP) == true)) && ((!triggerDOWN) == true))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if ((triggerJUMP == true) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!_parent.SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!_parent.Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!_parent.HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if (speedX > 0) { r = 1; while (r <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if (speedX < 0) { l = 1; while (l <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!_parent.SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!_parent.SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); frameloops++; } worldX = _parent._x; worldY = _parent._y; worldROT = _parent._rotation; worldXSCALE = _parent._xscale; worldYSCALE = _parent._yscale; this._x = charX; this._y = charY; this._rotation = charROT; this.sensor._x = charsensorX; this.sensor._y = charsensorY; this.sensor._width = charsensorWIDTH; this.sensor._height = charsensorHEIGHT; if (faceX > 0) { this._xscale = 100; } else if (faceX < 0) { this._xscale = -100; } };
Instance of Symbol 81 MovieClip "sensor" in Symbol 147 MovieClip [Goomba 1] Frame 1
onClipEvent (load) { _visible = false; _parent.stop(); bubbles = 0; bubbletime = 2; bubbleSCALEMIN = 100; bubbleSCALEMAX = 400; bubblesMAX = 50; bubbleLOOPS = 5; bubbleSPEEDSPAWN = 5 * bubbleLOOPS; } onClipEvent (enterFrame) { if (_parent.charALIVE == false) { _parent.gotoAndStop("Dead"); } else if (_parent.environment == "duckpaddle") { if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("SurfaceSwimming-Flapping"); } else { _parent.gotoAndStop("SurfaceSwimming"); } } else if (((_parent.environment == "swimmingupward") || (_parent.environment == "swimmingdownward")) || (_parent.environment == "watergrounded")) { if ((bubbletimeSTART + bubbletime) > (getTimer() / 1000)) { bubbleloop = 1; while (bubbleloop < bubbleLOOPS) { if (random(Math.max(0, bubbleSPEEDSPAWN - (_parent.totalspeed * bubbleLOOPS))) == 0) { bubbles = bubbles + 1; bubbleSCALE = random(bubbleSCALEMAX - bubbleSCALEMIN) + bubbleSCALEMIN; _parent.attachMovie("Bubble 1", "bubble" + bubbles, _parent.bubbledepth + bubbles, {_x:((((_x + (((_height / 2) * _parent.faceX) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) + ((random(_width) - (_width / 2)) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) * _parent._xscale) / 100) + _parent._x, _y:((((_y - ((_height / 2) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) - ((random(_width) - (_width / 2)) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) * _parent._yscale) / 100) + _parent._y, _xscale:bubbleSCALE, _yscale:bubbleSCALE, bubbleSCALE:bubbleSCALE}); } bubbleloop++; } } if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("Swimming-Flapping"); } else if ((Math.abs(_parent.swimspeedX) > _parent.gspeedY) || (Math.abs(_parent.swimspeedY) > _parent.gspeedY)) { _parent.gotoAndStop("Swimming"); } else { _parent.gotoAndStop("Sinking"); } } else if ((_parent.jumpspeedY >= _parent.gspeedY) && (_parent.jumpspeedY > 0)) { if (_parent.airjumpCOUNT == _parent.airjumpsMAX) { _parent.gotoAndStop("Flying"); } else { _parent.gotoAndStop("DoubleJumping"); } } else if (((_parent.jumpspeedY < _parent.gspeedY) && (_parent.jumpspeedY > 0)) || ((_parent.jumpspeedY == 0) && (_parent.gspeedY > _parent.jumpTHRESHOLD))) { _parent.gotoAndStop("Falling"); } else if (_parent.environment == "wallslide") { _parent.gotoAndStop("Wallsliding"); } else if (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME < 99)) || (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME >= 99)) && (Math.abs(_parent.movespeedX) > _parent.slidespeedMIN))) { _parent.gotoAndStop("BellySliding"); } else if (((_parent.environment == "grounded") && (_parent.charROT >= 165)) || ((_parent.environment == "grounded") && (_parent.charROT <= -165))) { _parent.gotoAndStop("Nosedivebounce"); } else if (_parent.moveX != 0) { _parent.gotoAndStop("Walking"); } else { _parent.gotoAndStop("Standing"); } if (((_parent.environment != "swimmingupward") && (_parent.environment != "swimmingdownward")) && (_parent.environment != "watergrounded")) { bubbletimeSTART = getTimer() / 1000; } }
Symbol 176 MovieClip Frame 14
stop();
Symbol 177 MovieClip [Koopa Troopa 1] Frame 1
framerateDEFAULT = _parent.framerateDEFAULT; framerateMAX = _parent.framerateMAX; framerateMIN = _parent.framerateMIN; DEGtoRAD = (Math.PI/180); bubbleDEPTH = _parent.bubbleDEPTH; digitMODE = _parent.digitMODE; this.charALIVE = true; this.rocksloaded = 0; _parent.rocksthrown = 0; this.rocksloadedMAX = 3; this.rocksMAX = _parent.rocksMAX; dHEIGHT = 0.5; uHEIGHT = 0.5; rWIDTH = 0.5; rHEIGHT = 0; urWIDTH = 0.3; urHEIGHT = 0.25; lWIDTH = 0.5; lHEIGHT = 0; ulWIDTH = 0.3; ulHEIGHT = 0.25; offsetX = 0; offsetY = 0; charACTION = true; initWIDTH = sensor._width; initHEIGHT = sensor._height; initHYP = Math.sqrt(Math.pow(initWIDTH, 2) + Math.pow(initHEIGHT, 2)); initANGLE1 = Math.asin(initHEIGHT / initHYP); initANGLE2 = Math.asin(initWIDTH / initHYP); slopesensorRATIO = 3; floorpushes = 100; speedXMAX = _parent.speedXMAX; speedYMAX = _parent.speedYMAX; speedMAXdivisor = _parent.speedMAXdivisor; speedXMIN = _parent.speedXMIN; speedYMIN = _parent.speedYMIN; slidespeedMIN = _parent.slidespeedMIN; jumpTHRESHOLD = _parent.jumpTHRESHOLD; airjumpsMAX = 0; duckjumpRATIO = 2; throwTIME = 2.5; throwANGLEup = 0; throwANGLEforward = 45; throwANGLEdown = 135; nosedivebounceTIME = 0.25; swimcollideMAX = 7; duckpaddleFALLSPEED = _parent.duckpaddleFALLSPEED; duckpaddleRATIO = _parent.duckpaddleRATIO; faceX = 1; faceY = 1; if (initfaceXDIR != undefined) { faceXDIR = initfaceXDIR; } else { faceXDIR = (this._x - _root.World.Player1._x) / Math.abs(this._x - _root.World.Player1._x); } if (initfaceYDIR != undefined) { faceYDIR = initfaceYDIR; } else { faceYDIR = 1; } digitARCLENGTH = _parent.digitARCLENGTH; engineloops = _parent.engineloops; speedmultiUNIVERSAL = _parent.speedmultiUNIVERSAL; speedmultiX = speedmultiUNIVERSAL; speedmultiY = speedmultiUNIVERSAL; speedmultiROT = speedmultiUNIVERSAL; movedragX = 1.2; movedragY = 1.2; slidedragX = _parent.slidedragX; slidedragY = _parent.slidedragY; waterdragX = 3; waterdragY = 3; swimdragX = _parent.swimdragX; swimdragY = _parent.swimdragY; watergroundfriction = _parent.watergroundfriction; throwdrag = _parent.throwdrag; swimspindrag = _parent.swimspindrag; airspindrag = _parent.airspindrag; windrateX = _parent.windrateX; windrateY = _parent.windrateY; watercurrentrateX = _parent.watercurrentrateX; watercurrentrateY = _parent.watercurrentrateY; gravityrateX = _parent.gravityrateX; gravityrateY = _parent.gravityrateY; gspeedX = 0 * speedmultiX; gspeedY = 0 * speedmultiY; windX = 0 * speedmultiX; windY = 0 * speedmultiY; windspeedX = 0 * speedmultiX; windspeedY = 0 * speedmultiY; environment = "falling"; environmentchecker = "air"; moverate = 0.3 * speedmultiUNIVERSAL; sliderate = 0.75 * speedmultiUNIVERSAL; sliderampBOOST = 0.8 * speedmultiUNIVERSAL; sliderampTHRESHOLD = 13; swimspeedMAXTRANSFER = 15 * speedmultiUNIVERSAL; jumprateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); jumprateY = (25 * gravityrateY) / Math.sqrt(speedmultiY); walljumpTIME = 20; nosedivejumprateX = jumprateX * 1.4; nosedivejumprateY = jumprateY * 1.4; springrateX = (0 * gravityrateX) / Math.sqrt(speedmultiX); springrateY = (50 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEXrate = 0.5; nosediveBOUNCEYrate = (24 * gravityrateY) / Math.sqrt(speedmultiY); nosediveBOUNCEspinrate = 17 * speedmultiROT; swimrateX = (1 * gravityrateY) / Math.sqrt(speedmultiY); swimrateY = (1 * gravityrateY) / Math.sqrt(speedmultiY); throwrate = (40 * gravityrateY) / Math.sqrt(speedmultiY); swimspinrate = 0.5 * speedmultiROT; airspinrate = 0.75 * speedmultiROT; watergroundboostX = (0 * gravityrateX) / Math.sqrt(speedmultiX); watergroundboostY = (0 * gravityrateY) / Math.sqrt(speedmultiY); moveX = 0 * speedmultiX; moveY = 0 * speedmultiY; movespeedX = 0 * speedmultiX; movespeedY = 0 * speedmultiY; jumpX = 0 * speedmultiX; jumpY = 0 * speedmultiY; walljumpTIMER = 0; airjumpCOUNT = 0; jumpspeedX = 0 * speedmultiX; jumpspeedY = 0 * speedmultiY; swimX = 0 * speedmultiX; swimY = 0 * speedmultiY; swimX2 = 0 * speedmultiX; swimY2 = 0 * speedmultiY; swimI = 0 * speedmultiUNIVERSAL; swimspeedX = 0 * speedmultiX; swimspeedY = 0 * speedmultiY; speedX = 0 * speedmultiX; speedY = 0 * speedmultiY; swimspin = 0 * speedmultiROT; swimspinspeed = 0 * speedmultiROT; airspin = 0 * speedmultiROT; airspinspeed = 0 * speedmultiROT; charX = this._x; charY = this._y; charROT = this._rotation; charsensorX = this.sensor._x; charsensorY = this.sensor._y; charsensorWIDTH = this.sensor._width; charsensorHEIGHT = this.sensor._height; worldX = _parent._x; worldY = _parent._y; worldROT = _parent._rotation; worldXSCALE = _parent._xscale; worldYSCALE = _parent._yscale; this.attackRANGE = 400; this.jumpRANGE = 200; this.hitDISTANCE = 50; this.vulnerableDISTANCE = (_width + _height) / 4; this.birth = getTimer() / 1000; onEnterFrame = function () { this.age = getTimer() / 1000; if ((((this.pasted == true) && (Math.abs(_x - _parent.camera._x) > (((_parent.camera._width / 2) + _width) + _root.World.badguyDISTANCEMAX))) && ((this.age - this.birth) > 2)) || (((this.pasted == true) && (Math.abs(_y - _parent.camera._y) > (((_parent.camera._height / 2) + this._height) + _root.World.badguyDISTANCEMAX))) && ((this.age - this.birth) > 2))) { this.removeMovieClip(); } this.Player1X = _parent.Player1._x; this.Player1Y = _parent.Player1._y; this.Player1HEIGHT = _parent.Player1._height; this.Player1WIDTH = _parent.Player1._width; this.Player1DISTANCE = Math.pow(Math.pow(this.Player1X - this._x, 2) + Math.pow(this.Player1Y - this._y, 2), 0.5); if ((((_parent.Player1.rocksloaded > 0) && (this.Player1DISTANCE < this.hitDISTANCE)) && (_root.World.charBLINK == false)) && (this.charALIVE == true)) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; _parent.Player1.rocksthrown = _parent.Player1.rocksthrown + 1; _parent.attachMovie("Rock 1", "rock" + _parent.Player1.rocksthrown, 100 + _parent.Player1.rocksthrown, {_x:_parent.charsensorX + _parent.charX, _y:(_parent.charsensorY + _parent.charY) - ((_parent.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * _parent.faceX) + _parent.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - _parent.speedY, weapon:false}); _parent.oldrock = _parent.Player1.rocksthrown - _parent.rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); _parent.Player1.rocksloaded = _parent.Player1.rocksloaded - 1; _root.World.charBLINK = true; } else if (((this.Player1DISTANCE < this.hitDISTANCE) && (_root.World.charBLINK == false)) && (this.charALIVE == true)) { _root.World.charALIVE = false; } if (charALIVE == true) { if (this.faceXDIR < 0) { triggerLEFT = true; } else { triggerLEFT = false; } if (this.faceXDIR > 0) { triggerRIGHT = true; } else { triggerRIGHT = false; } if ((((environment == "swimmingupward") && (swimarmed == true)) || ((environment == "swimmingdownward") && (swimarmed == true))) || ((environment == "duckpaddle") && (swimarmed == true))) { triggerJUMP = true; } else { triggerJUMP = false; } engineloops = _parent.engineloops; } else { triggerLEFT = false; triggerRIGHT = false; triggerUP = false; triggerDOWN = false; triggerJUMP = false; engineloops = 0; } worldXinit = _parent._x; worldYinit = _parent._y; worldROTinit = _parent._rotation; worldXSCALEinit = _parent._xscale; worldYSCALEinit = _parent._yscale; frameloops = 1; while (frameloops <= _parent.engineloops) { if (environmentchecker != "bellyslide") { charWIDTH = Math.abs(Math.cos(initANGLE1 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); charHEIGHT = Math.abs(Math.cos(initANGLE2 - ((Math.abs(charROT) + 180) * DEGtoRAD)) * initHYP); } else { charWIDTH = initWIDTH; charHEIGHT = initWIDTH; } slopesensorDISTANCE = charWIDTH / slopesensorRATIO; if (this.charALIVE == true) { rockcheck = _parent.Player1.rocksthrown - _root.World.rocksMAX; while (rockcheck <= _parent.Player1.rocksthrown) { if (((_parent["rock" + rockcheck].weapon == true) && (_parent["rock" + rockcheck] != undefined)) && (_parent["rock" + rockcheck].totalspeed > 5)) { this[("rock" + rockcheck) + "currentXDIS"] = _parent["rock" + rockcheck]._x - this._x; this[("rock" + rockcheck) + "currentYDIS"] = _parent["rock" + rockcheck]._y - this._y; this[("rock" + rockcheck) + "currentDIS"] = Math.pow(Math.pow((this[("rock" + rockcheck) + "currentXDIS"] + this[("rock" + rockcheck) + "oldXDIS"]) / 2, 2) + Math.pow((this[("rock" + rockcheck) + "currentYDIS"] + this[("rock" + rockcheck) + "oldYDIS"]) / 2, 2), 0.5); this[("rock" + rockcheck) + "avgDIS"] = Math.pow(Math.pow(this[("rock" + rockcheck) + "currentXDIS"], 2) + Math.pow(this[("rock" + rockcheck) + "currentYDIS"], 2), 0.5); if ((this[("rock" + rockcheck) + "currentDIS"] < vulnerableDISTANCE) || (this[("rock" + rockcheck) + "avgDIS"] < vulnerableDISTANCE)) { this.charALIVE = false; _parent.attachMovie("puffexplosion", "puffexplosion" + rockcheck, _root.attachDEPTH, {_x:_parent["rock" + rockcheck]._x, _y:_parent["rock" + rockcheck]._y, _xscale:50, _yscale:50}); _root.attachDEPTH = _root.attachDEPTH + 1; _parent["rock" + rockcheck].removeMovieClip(); _root.soundManager_mc.playSound("B12sFire_Shot.wav", 0, 1); } this[("rock" + rockcheck) + "oldXDIS"] = this[("rock" + rockcheck) + "currentXDIS"]; this[("rock" + rockcheck) + "oldYDIS"] = this[("rock" + rockcheck) + "currentYDIS"]; this[("rock" + rockcheck) + "oldDIS"] = this[("rock" + rockcheck) + "currentDIS"]; } rockcheck++; } } if (((speedY >= 0) && (_parent.SoftBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (_parent.HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHground = true; if (((speedY >= 0) && (_parent.SoftBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true))) || ((speedY >= 0) && (_parent.HardBoundary.DigitBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)))) { TOUCHdigit = true; changedirarmed = true; } else { TOUCHdigit = false; if (changedirarmed == true) { faceXDIR = faceXDIR * -1; changedirarmed = false; } } } else { TOUCHground = false; TOUCHdigit = false; if (changedirarmed == true) { faceXDIR = faceXDIR * -1; changedirarmed = false; } } if ((faceXDIR > 0) && (_parent.HardBoundary.hitTest((((((charsensorX + charX) + offsetX) + (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true))) { TOUCHwallright = true; faceXDIR = faceXDIR * -1; } else { TOUCHwallright = false; } if ((faceXDIR < 0) && (_parent.HardBoundary.hitTest((((((charsensorX + charX) + offsetX) - (charWIDTH * 0.5)) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.25)) * worldYSCALEinit) / 100) + worldYinit, true))) { TOUCHwallleft = true; faceXDIR = faceXDIR * -1; } else { TOUCHwallleft = false; } if (_parent.HardBoundary.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) - (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHceiling = true; } else { TOUCHceiling = false; } if (_parent.Water.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, ((((charsensorY + charY) + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { TOUCHwater = true; } else { TOUCHwater = false; } if (_parent.Spring.hitTest(((((charsensorX + charX) + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charsensorY + charY) + offsetY) + (charHEIGHT * 0.5)) * worldYSCALEinit) / 100) + worldYinit, true) && (speedY >= 0)) { TOUCHspring = true; } else { TOUCHspring = false; } if ((((environmentchecker == "air") && (TOUCHwater == true)) && (Math.abs(speedY) < duckpaddleFALLSPEED)) || (environment == "duckpaddle")) { environment = "duckpaddle"; } else if (((((TOUCHwater == true) && (TOUCHground == true)) || ((TOUCHwater == true) && (TOUCHceiling == true))) || ((TOUCHwater == true) && (TOUCHwallleft == true))) || ((TOUCHwater == true) && (TOUCHwallright == true))) { environment = "watergrounded"; } else if ((TOUCHwater == true) && (speedY < 0)) { environment = "swimmingupward"; } else if (((TOUCHwater == true) && (TOUCHground == false)) && (speedY >= 0)) { environment = "swimmingdownward"; } else if ((TOUCHspring == true) && (speedY >= 0)) { environment = "sprung"; } else if ((TOUCHground == true) && (speedY >= 0)) { environment = "grounded"; } else if (speedY < 0) { environment = "flying"; } else if ((TOUCHground == false) && (speedY >= 0)) { environment = "falling"; } if (((this.rocksloaded > 0) && (throwarmed == true)) && (triggerTHROW == true)) { _parent.rocksthrown = _parent.rocksthrown + 1; if (triggerUP == true) { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:charsensorX + charX, _y:(charsensorY + charY) - ((charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEup * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEup * DEGtoRAD) * throwrate) - speedY}); } else if (triggerDOWN == true) { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEdown * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEdown * DEGtoRAD) * throwrate) - speedY}); } else { _parent.attachMovie("Rock 1", "rock" + _parent.rocksthrown, 100 + _parent.rocksthrown, {_x:(charsensorX + charX) + (((charWIDTH / 2) + 1) * faceX), _y:charsensorY + charY, throwspeedX:((Math.sin(throwANGLEforward * DEGtoRAD) * throwrate) * faceX) + speedX, throwspeedY:(Math.cos(throwANGLEforward * DEGtoRAD) * throwrate) - speedY}); } oldrock = _parent.rocksthrown - rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); this.rocksloaded = this.rocksloaded - 1; throwarmed = false; } else if ((!triggerTHROW) == true) { throwarmed = true; } else { throwarmed = false; } if (environment == "grounded") { if ((environmentchecker != "bellyslide") && (environmentchecker != "nosedivebounce")) { movementhyp = moverate / Math.pow(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2), 0.5); if ((triggerRIGHT == true) && (TOUCHwallright == false)) { moveX = movementhyp * slopesensorDISTANCE; moveY = movementhyp * (-Math.abs(dr - dl)); faceX = 1; } else if ((triggerLEFT == true) && (TOUCHwallleft == false)) { moveX = movementhyp * (-slopesensorDISTANCE); moveY = movementhyp * (-Math.abs(dr - dl)); faceX = -1; } else { moveX = 0; moveY = 0; } } if ((triggerJUMP == true) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } } else if ((environment == "wallslide") || (environmentchecker == "wallsliding")) { if ((triggerJUMP == true) && (jumparmed == true)) { jumpX = 0; jumpY = jumprateY; gspeedX = 0; gspeedY = 0; if (triggerRIGHT == true) { moveX = -moverate; } else if (triggerLEFT == true) { moveX = moverate; } moveY = 0; movespeedY = 0; jumparmed = false; walljumpTIMER = walljumpTIME; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } } else if ((environment == "flying") || (environment == "falling")) { if (walljumpTIMER <= 0) { if (environmentchecker != "bellyslide") { if ((triggerRIGHT == true) && (TOUCHwallright == false)) { moveX = moverate; faceX = 1; } else if ((triggerLEFT == true) && (TOUCHwallleft == false)) { moveX = -moverate; faceX = -1; } else { moveX = 0; } } else { moveX = 0; } walljumpTIMER = 0; } else { walljumpTIMER = walljumpTIMER - 1; } if (((triggerJUMP == true) && (jumparmed == true)) && (airjumpCOUNT > 0)) { jumpspeedX = 0; jumpspeedY = jumprateY; gspeedX = 0; gspeedY = 0; moveY = 0; movespeedY = 0; jumparmed = false; airjumpCOUNT = airjumpCOUNT - 1; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } if (((((Key.isDown(_root.kJUMP) && (gspeedY <= jumpTHRESHOLD)) && ((dr + dl) == -2)) && (jumpspeedX == 0)) && (jumpspeedY == 0)) && (environment == "falling")) { airjumpCOUNT = airjumpsMAX; } } else if ((((environment == "duckpaddle") || (environment == "swimmingupward")) || (environment == "swimmingdownward")) || (environment == "watergrounded")) { if (((triggerRIGHT == true) && (triggerUP == true)) && (environment != "duckpaddle")) { if ((charROT > -135) && (charROT <= 45)) { if ((45 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((45 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-135 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((triggerRIGHT == true) && (triggerDOWN == true)) { if ((charROT > -45) && (charROT <= 135)) { if ((135 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((135 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-45 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (((triggerLEFT == true) && (triggerUP == true)) && (environment != "duckpaddle")) { if ((charROT >= -45) && (charROT < 135)) { if ((-45 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (135 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-45 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (135 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -45; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((triggerLEFT == true) && (triggerDOWN == true)) { if ((charROT >= -135) && (charROT < 45)) { if ((-135 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (45 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((-135 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (45 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -135; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (triggerRIGHT == true) { if (environment == "duckpaddle") { faceX = 1; } else if ((charROT >= -90) && (charROT < 90)) { if ((90 < (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (-90 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((90 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-90 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if (triggerLEFT == true) { if (environment == "duckpaddle") { faceX = -1; } else if ((charROT > -90) && (charROT <= 90)) { if ((90 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-90 > (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((90 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (-90 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = -90; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if ((triggerUP == true) && (environment != "duckpaddle")) { if (faceX > 0) { if ((0 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) && (-180 < (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) && (180 > (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 0; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else if (triggerDOWN == true) { if (environment == "duckpaddle") { swimX2 = swimX2 / duckpaddleRATIO; swimY2 = swimY2 / duckpaddleRATIO; environment = "swimmingdownward"; } if (faceX < 0) { if ((0 <= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag))) || (-180 >= (charROT + ((swimspinspeed - swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = -swimspinrate; } } else if ((0 >= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag))) || (180 <= (charROT + ((swimspinspeed + swimspinrate) / swimspindrag)))) { charROT = 180; swimspin = 0; swimspinspeed = 0; } else { swimspin = swimspinrate; } } else { swimspin = 0; } if ((swimspeedX > 0) && (environment != "duckpaddle")) { faceX = 1; } else if ((swimspeedX < 0) && (environment != "duckpaddle")) { faceX = -1; } if ((triggerJUMP == true) && (swimarmed == true)) { if (((triggerUP == true) && (environment == "duckpaddle")) && (duckjumparmed == true)) { while (Water.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((charY + offsetY) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY - 1; } jumpX = jumprateX; jumpY = jumprateY; environment = "duckjump"; environmentchecker = "duckjump"; duckjumparmed = false; swimarmed = false; } else if ((((environment == "duckpaddle") && (speedX == 0)) || (((environment == "duckpaddle") && (speedX > 0)) && (TOUCHwallright == false))) || (((environment == "duckpaddle") && (speedX < 0)) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX / duckpaddleRATIO; swimY = swimrateY / duckpaddleRATIO; swimarmed = false; } } else if (((speedX == 0) || ((speedX > 0) && (TOUCHwallright == false))) || ((speedX < 0) && (TOUCHwallleft == false))) { if (((speedY == 0) || ((speedY > 0) && (TOUCHground == false))) || ((speedY < 0) && (TOUCHceiling == false))) { swimX = swimrateX; swimY = swimrateY; swimarmed = false; } } } else { swimX = 0; swimY = 0; } if ((!triggerJUMP) == true) { swimarmed = true; duckjumparmed = true; } } if (environment == "duckpaddle") { charROT = 90 * faceX; if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimI = swimI + (Math.abs(movespeedX) / 3); } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gspeedX = 0; gspeedY = 0; gravityX = 0; gravityY = 0; windX = watercurrentrateX; windY = 0; if ((environmentchecker != "water") && (environmentchecker != "duckpaddle")) { swimY = 0; swimY2 = 0; } swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; environmentchecker = "duckpaddle"; } else if ((environment == "swimmingupward") || (environment == "swimmingdownward")) { if (airspinspeed != 0) { swimspinspeed = swimspinspeed + airspinspeed; airspinspeed = 0; } airspin = 0; if ((charROT > 100) || (charROT < -100)) { if (environmentchecker != "water") { swimI = swimI + ((Math.abs(movespeedX) / 3) + (gspeedY / 3)); gspeedY = 0; } } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; gravityX = gravityrateX; gravityY = gravityrateY; windX = watercurrentrateX; windY = watercurrentrateY; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; swimI = swimI / swimdragY; gspeedX = gspeedX / waterdragX; gspeedY = gspeedY / waterdragY; environmentchecker = "water"; } else if (environment == "watergrounded") { if (((Math.abs(swimX2) >= swimcollideMAX) || (Math.abs(swimY2) >= swimcollideMAX)) || (Math.abs(swimI) >= swimcollideMAX)) { swimX2 = Math.min(swimX2, swimcollideMAX); swimY2 = Math.min(swimY2, swimcollideMAX); swimI = Math.min(swimI, swimcollideMAX); } else if (((Math.abs(swimX2) >= 0.25) || (Math.abs(swimY2) >= 0.25)) || (Math.abs(swimI) >= 0.25)) { swimX2 = swimX2 / watergroundfriction; swimY2 = swimY2 / watergroundfriction; swimI = swimI / watergroundfriction; } movespeedX = 0; movespeedY = 0; moveX = 0; moveY = 0; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; jumpspeedX = 0; jumpspeedY = 0; jumpX = 0; jumpY = 0; airjumpCOUNT = airjumpsMAX; windX = 0; windY = 0; swimspinspeed = swimspinspeed / swimspindrag; swimX2 = swimX2 / swimdragX; swimY2 = swimY2 / swimdragY; movespeedX = movespeedX / waterdragX; movespeedY = movespeedY / waterdragY; environmentchecker = "waterground"; } else if ((environment == "flying") || (environment == "falling")) { charROT = 0; if ((dr == -1) && (dl == -1)) { moveY = 0; movespeedY = 0; } if (swimspinspeed != 0) { airspinspeed = airspinspeed + swimspinspeed; swimspinspeed = 0; } swimspin = 0; if (((swimX2 != 0) || (swimY2 != 0)) || (swimI != 0)) { if (environmentchecker == "duckjump") { swimX2 = swimX2 / duckjumpRATIO; swimI = swimI / duckjumpRATIO; } jumpspeedX = jumpspeedX + (Math.sin(charROT * DEGtoRAD) * swimX2); if (environmentchecker != "duckjump") { jumpspeedY = jumpspeedY + Math.min(Math.cos(charROT * DEGtoRAD) * (swimX2 + swimI), swimspeedMAXTRANSFER); } } swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; gravityX = gravityrateX; gravityY = gravityrateY; windX = windrateX; windY = windrateY; if (environment == "flying") { jumpX = 0; jumpY = 0; } airspinspeed = airspinspeed / airspindrag; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; } else { movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (environmentchecker == "nosedivebounce") { airspin = 0; if (Math.abs(charROT) < 5) { charROT = 0; environmentchecker = ((gspeedY > (jumpspeedY * 2)) ? "air" : "nosedivebounce"); } } if (((((environmentchecker == "water") && (triggerRIGHT == true)) && ((!triggerUP) == true)) && ((!triggerDOWN) == true)) || ((((environmentchecker == "water") && (triggerLEFT == true)) && ((!triggerUP) == true)) && ((!triggerDOWN) == true))) { environmentchecker = "porpoising"; } else if (((environmentchecker != "porpoising") && (environmentchecker != "bellyslide")) && (environmentchecker != "nosedivebounce")) { environmentchecker = "air"; } } else if (environment == "wallslide") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 1; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; environmentchecker = "wallsliding"; } else if (environment == "grounded") { jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; swimspin = 0; swimspinspeed = 0; airspin = 0; airspinspeed = 0; swimX2 = 0; swimY2 = 0; swimI = 0; swimX = 0; swimY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; if (environmentchecker != "bellyslide") { movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; bellyslideTIME = 0; } else { if ((dr - dl) != 0) { moveX = (((sliderate * slopesensorDISTANCE) / Math.sqrt(Math.pow(dl - dr, 2) + Math.pow(slopesensorDISTANCE, 2))) * (dl - dr)) / Math.abs(dl - dr); moveY = (sliderate * (-Math.abs(dr - dl))) / Math.sqrt(Math.pow(dr - dl, 2) + Math.pow(slopesensorDISTANCE, 2)); } else { moveX = 0; moveY = 0; } movespeedX = movespeedX / slidedragX; movespeedY = movespeedY / slidedragY; } if (((((charROT < 89) && (charROT > -89)) && (environmentchecker != "bellyslide")) || ((((environmentchecker == "bellyslide") && (Math.abs(movespeedX) <= slidespeedMIN)) && (Math.abs(dr - dl) <= 0)) && (bellyslideTIME > 100))) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 0; environmentchecker = "ground"; } else if (((charROT < 165) && (charROT > -165)) || (((environmentchecker == "bellyslide") && (charROT < 30)) && (charROT > -30))) { charY = charY - ((initWIDTH - charHEIGHT) / 2); charWIDTH = initWIDTH; charHEIGHT = initWIDTH; if (environmentchecker != "bellyslide") { charROT = ((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD); } else if (charROT != (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD))) { slopeDIFFERENCE = (((90 * charROT) / Math.abs(charROT)) + (Math.atan((dl - dr) / slopesensorDISTANCE) / DEGtoRAD)) - charROT; charROT = charROT + (slopeDIFFERENCE / 2); } bellyslideTIME = bellyslideTIME + 1; environmentchecker = "bellyslide"; if ((((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (oldslopeANGLE != 0)) || (((jumpspeedY == 0) && ((oldslopeANGLE * slopeANGLE) <= 0)) && (slopeANGLE != 0))) { if (((oldslopeANGLE > 0) && (speedX > 0)) || ((oldslopeANGLE < 0) && (speedX < 0))) { moveY = 0; movespeedY = 0; gspeedY = 0; rampjumpY = (sliderampBOOST * Math.abs(speedX)) * Math.cos(oldslopeANGLE * DEGtoRAD); jumpY = ((rampjumpY > 0) ? rampjumpY : 0); } else { moveY = 0; movespeedY = 0; } } } else { charY = charY - ((initHEIGHT - charHEIGHT) / 2); charROT = 180; if (environmentchecker != "nosedivebounce") { nosedivebounceSTART = getTimer() / 1000; environmentchecker = "nosedivebounce"; } if ((triggerJUMP == true) && (jumparmed == true)) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosedivejumprateX * faceX; jumpY = nosedivejumprateY; environmentchecker = "nosedivebounce"; moveY = 0; movespeedY = 0; jumparmed = false; } else { jumpX = 0; jumpY = 0; if ((!triggerJUMP) == true) { jumparmed = true; } } nosedivebounceTIMER = (getTimer() / 1000) - nosedivebounceSTART; if (nosedivebounceTIMER >= nosedivebounceTIME) { airspin = airspin + (nosediveBOUNCEspinrate * faceX); jumpX = nosediveBOUNCEXrate * faceX; jumpY = nosediveBOUNCEYrate; } } } else if (environment == "sprung") { swimX2 = 0; swimY2 = 0; swimI = 0; jumpspeedX = 0; jumpspeedY = 0; airjumpCOUNT = airjumpsMAX; if (TOUCHwater == false) { jumpX = springrateX; jumpY = springrateY; swimX = 0; swimY = 0; } else { swimX = springrateX; swimY = springrateY; jumpX = 0; jumpY = 0; } gravityX = 0; gravityY = 0; gspeedX = 0; gspeedY = 0; windX = 0; windY = 0; windspeedX = 0; windspeedY = 0; movespeedX = movespeedX / movedragX; movespeedY = movespeedY / movedragY; environmentchecker = "sprung"; } movespeedX = movespeedX + moveX; jumpspeedX = jumpspeedX + jumpX; swimX2 = swimX2 + swimX; if ((charROT == 180) || (charROT == -180)) { swimspeedX = 0; } else { swimspeedX = Math.sin(charROT * DEGtoRAD) * (swimX2 + swimI); } gspeedX = gspeedX + gravityX; windspeedX = windX; movespeedY = movespeedY + moveY; jumpspeedY = jumpspeedY + jumpY; swimY2 = swimY2 + swimY; swimspeedY = Math.cos(charROT * DEGtoRAD) * (swimY2 + swimI); gspeedY = gspeedY + gravityY; windspeedY = windY; if (Math.abs(movespeedX) < 0.1) { movespeedX = 0; } if (Math.abs(movespeedY) < 0.1) { movespeedY = 0; } speedX = (((movespeedX + jumpspeedX) + swimspeedX) - gspeedX) + windspeedX; speedY = ((((-movespeedY) - jumpspeedY) - swimspeedY) + gspeedY) - windspeedY; if (speedX > speedXMAX) { speedX = speedX - (speedX - speedXMAX); } else if (speedX < (-speedXMAX)) { speedX = speedX + (speedXMAX - speedX); } if (speedY > speedYMAX) { speedY = speedY - (speedY - speedYMAX); } else if (speedY < (-speedYMAX)) { speedY = speedY + (speedYMAX - speedY); } if (Math.abs(speedX) < speedMINX) { speedX = 0; } if (Math.abs(speedY) < speedMINY) { speedY = 0; } charX = charX + speedX; charY = charY + speedY; swimspinspeed = swimspinspeed + swimspin; airspinspeed = airspinspeed + airspin; speedROT = swimspinspeed + airspinspeed; charROT = charROT + speedROT; if (charROT > 180) { charROT = charROT - 360; } else if (charROT < -180) { charROT = charROT + 360; } if (((speedX == 0) && (speedY == 0)) && (speedROT == 0)) { charACTION = false; } else { charACTION = true; } if (charACTION == true) { if (speedY > 0) { d = 1; while (d <= floorpushes) { if (((!_parent.SoftBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) && (!_parent.Spring.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * dHEIGHT)) - d) * worldYSCALEinit) / 100) + worldYinit, true))) { charY = charY - (d - 1); break; } d++; } } else if (speedY < 0) { u = 1; while (u <= floorpushes) { if (!_parent.HardBoundary.hitTest((((charX + offsetX) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) - (charHEIGHT * uHEIGHT)) + u) * worldYSCALEinit) / 100) + worldYinit, true)) { charY = charY + (u - 1); break; } movespeedY = 0; jumpspeedY = 0; gspeedY = 0; u++; } } if (speedX > 0) { r = 1; while (r <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * rWIDTH)) - r) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * rHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (r - 1); break; } movespeedX = 0; jumpspeedX = 0; r++; } if (environmentchecker != "bellysliding") { ur = 1; while (ur <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) + (charWIDTH * urWIDTH)) - ur) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * urHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX - (ur - 1); break; } movespeedX = 0; jumpspeedX = 0; ur++; } } } if (speedX < 0) { l = 1; while (l <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * lWIDTH)) + l) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) + (charHEIGHT * lHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (l - 1); break; } movespeedX = 0; jumpspeedX = 0; l++; } if (environmentchecker != "bellysliding") { ul = 1; while (ul <= floorpushes) { if (!_parent.HardBoundary.hitTest((((((charX + offsetX) - (charWIDTH * ulWIDTH)) + ul) * worldXSCALEinit) / 100) + worldXinit, ((((charY + offsetY) - (charHEIGHT * ulHEIGHT)) * worldYSCALEinit) / 100) + worldYinit, true)) { charX = charX + (ul - 1); break; } movespeedX = 0; jumpspeedX = 0; ul++; } } } } oldslopeANGLE = slopeANGLE; if ((((charACTION == true) && (oldTOUCHdigit == false)) && (digitMODE == "constant")) || ((charACTION == true) && (digitMODE != "constant"))) { dr = 0; while (dr <= floorpushes) { if ((!_parent.SoftBoundary.hitTest(((((charX + offsetX) + (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest(((((charX + offsetX) + slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dr) * worldYSCALEinit) / 100) + worldYinit, true))) { dr = dr - 1; break; } dr++; } dl = 0; while (dl <= floorpushes) { if ((!_parent.SoftBoundary.hitTest(((((charX + offsetX) - (slopesensorDISTANCE / 2)) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true)) && (!_parent.HardBoundary.hitTest(((((charX + offsetX) - slopesensorDISTANCE) * worldXSCALEinit) / 100) + worldXinit, (((((charY + offsetY) + (charHEIGHT * 0.75)) - dl) * worldYSCALEinit) / 100) + worldYinit, true))) { dl = dl - 1; break; } dl++; } slopeANGLE = Math.atan((dr - dl) / slopesensorDISTANCE) / DEGtoRAD; if ((TOUCHdigit == true) && (digitMODE == "restricted")) { slopeANGLE = Math.round(slopeANGLE / digitARCLENGTH) * digitARCLENGTH; if (slopeANGLE > 0) { dr = Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } else { dr = -Math.abs((Math.tan(slopeANGLE * DEGtoRAD) * slopesensorDISTANCE) / 2); dl = -dr; } } } if ((((TOUCHground == true) && (TOUCHdigit == false)) || ((jumpspeedY < gspeedY) && (jumpspeedY > 0))) || ((jumpspeedY == 0) && (gspeedY > jumpTHRESHOLD))) { oldTOUCHdigit = false; } else { oldTOUCHdigit = true; } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); frameloops++; } worldX = _parent._x; worldY = _parent._y; worldROT = _parent._rotation; worldXSCALE = _parent._xscale; worldYSCALE = _parent._yscale; this._x = charX; this._y = charY; this._rotation = charROT; this.sensor._x = charsensorX; this.sensor._y = charsensorY; this.sensor._width = charsensorWIDTH; this.sensor._height = charsensorHEIGHT; if (faceX > 0) { this._xscale = 100; } else if (faceX < 0) { this._xscale = -100; } };
Instance of Symbol 81 MovieClip "sensor" in Symbol 177 MovieClip [Koopa Troopa 1] Frame 1
onClipEvent (load) { _visible = false; _parent.stop(); bubbles = 0; bubbletime = 2; bubbleSCALEMIN = 100; bubbleSCALEMAX = 400; bubblesMAX = 50; bubbleLOOPS = 5; bubbleSPEEDSPAWN = 5 * bubbleLOOPS; } onClipEvent (enterFrame) { if (_parent.charALIVE == false) { _parent.gotoAndStop("Dead"); } else if (_parent.environment == "duckpaddle") { if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("SurfaceSwimming-Flapping"); } else { _parent.gotoAndStop("SurfaceSwimming"); } } else if (((_parent.environment == "swimmingupward") || (_parent.environment == "swimmingdownward")) || (_parent.environment == "watergrounded")) { if ((bubbletimeSTART + bubbletime) > (getTimer() / 1000)) { bubbleloop = 1; while (bubbleloop < bubbleLOOPS) { if (random(Math.max(0, bubbleSPEEDSPAWN - (_parent.totalspeed * bubbleLOOPS))) == 0) { bubbles = bubbles + 1; bubbleSCALE = random(bubbleSCALEMAX - bubbleSCALEMIN) + bubbleSCALEMIN; _parent.attachMovie("Bubble 1", "bubble" + bubbles, _parent.bubbledepth + bubbles, {_x:((((_x + (((_height / 2) * _parent.faceX) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) + ((random(_width) - (_width / 2)) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) * _parent._xscale) / 100) + _parent._x, _y:((((_y - ((_height / 2) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) - ((random(_width) - (_width / 2)) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) * _parent._yscale) / 100) + _parent._y, _xscale:bubbleSCALE, _yscale:bubbleSCALE, bubbleSCALE:bubbleSCALE}); } bubbleloop++; } } if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("Swimming-Flapping"); } else if ((Math.abs(_parent.swimspeedX) > _parent.gspeedY) || (Math.abs(_parent.swimspeedY) > _parent.gspeedY)) { _parent.gotoAndStop("Swimming"); } else { _parent.gotoAndStop("Sinking"); } } else if ((_parent.jumpspeedY >= _parent.gspeedY) && (_parent.jumpspeedY > 0)) { if (_parent.airjumpCOUNT == _parent.airjumpsMAX) { _parent.gotoAndStop("Flying"); } else { _parent.gotoAndStop("DoubleJumping"); } } else if (((_parent.jumpspeedY < _parent.gspeedY) && (_parent.jumpspeedY > 0)) || ((_parent.jumpspeedY == 0) && (_parent.gspeedY > _parent.jumpTHRESHOLD))) { _parent.gotoAndStop("Falling"); } else if (_parent.environment == "wallslide") { _parent.gotoAndStop("Wallsliding"); } else if (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME < 99)) || (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME >= 99)) && (Math.abs(_parent.movespeedX) > _parent.slidespeedMIN))) { _parent.gotoAndStop("BellySliding"); } else if (((_parent.environment == "grounded") && (_parent.charROT >= 165)) || ((_parent.environment == "grounded") && (_parent.charROT <= -165))) { _parent.gotoAndStop("Nosedivebounce"); } else if (_parent.moveX != 0) { _parent.gotoAndStop("Walking"); } else { _parent.gotoAndStop("Standing"); } if (((_parent.environment != "swimmingupward") && (_parent.environment != "swimmingdownward")) && (_parent.environment != "watergrounded")) { bubbletimeSTART = getTimer() / 1000; } }
Symbol 180 MovieClip [Point Number] Frame 24
this.removeMovieClip();
Symbol 183 MovieClip [Point 1] Frame 1
onEnterFrame = function () { if ((Math.abs((_parent.Player1.sensor._x + _parent.Player1._x) - _x) <= (_parent.Player1.sensor._width / 2)) && (Math.abs((_parent.Player1.sensor._y + _parent.Player1._y) - _y) <= (_parent.Player1.sensor._height / 2))) { _parent.Player1.points = _parent.Player1.points + 1; _parent.attachMovie("Point Number", "PointNumber" + _parent.Player1.points, _root.attachDEPTH, {_x:_x, _y:_y - 10, pointvalue:"+1"}); _root.attachDEPTH = _root.attachDEPTH + 1; _root[(_root.level + "obtained") + this._name] = true; _root.soundManager_mc.playSound("get cigs.wav", 0, 1); this.removeMovieClip(); } };
Symbol 191 MovieClip [textbubble] Frame 1
maxlength = textbox.text.length; textarray = textcontent.split(" "); lastword = 0; pagenumber = 1; while (pagenumber > 0) { this["page" + pagenumber] = ""; word = lastword + 1; while (word <= textarray.length) { if ((this["page" + pagenumber].length == 0) && (textarray[word - 1].length > maxlength)) { this["page" + pagenumber] = this["page" + pagenumber] + textarray[word - 1]; } else if ((this["page" + pagenumber].length + textarray[word - 1].length) <= maxlength) { this["page" + pagenumber] = this["page" + pagenumber] + textarray[word - 1]; if ((this["page" + pagenumber].length + 1) <= maxlength) { this["page" + pagenumber] = this["page" + pagenumber] + " "; } } else { break; } lastword = word; lastpage = pagenumber; word++; } if (lastword >= textarray.length) { break; } pagenumber++; } pagenumber = 1; textbox.text = this["page" + pagenumber]; onEnterFrame = function () { textbox.text = this["page" + pagenumber]; if ((armed == true) && (Key.isDown(_root.kSTART))) { if (pagenumber < lastpage) { pagenumber = pagenumber + 1; armed = false; } else { _root.World.jumparmed = false; _root.PAUSE = false; _root.pauseEND = getTimer() / 1000; _root.pauseTIME = _root.pauseTIME + (_root.pauseEND - _root.pauseSTART); this.removeMovieClip(); } } else if (!Key.isDown(_root.kSTART)) { armed = true; } };
Symbol 195 MovieClip [Fireball] Frame 1
if (speedX == undefined) { speedX = 0; } if (speedY == undefined) { speedY = 0; } if (moverateINIT == undefined) { moverateINIT = 1; } if (moverate == undefined) { moverate = 0.005; } if (speedMAX == undefined) { speedMAX = 2; } startTIME = getTimer() / 1000; ageMAX = 12; hitDISTANCE = 50; DEGtoRAD = (Math.PI/180); onEnterFrame = function () { if ((((getTimer() / 1000) - startTIME) > ageMAX) || (_parent.Boss.charALIVE == false)) { this.removeMovieClip(); } this.Player1X = _parent.Player1._x; this.Player1Y = _parent.Player1._y; this.PlayerHEIGHT = _parent.Player1._height; this.Player1WIDTH = _parent.Player1._width; this.Player1XDIS = Player1X - _x; this.Player1YDIS = Player1Y - _y; this.Player1DIS = Math.pow(Math.pow(Player1XDIS, 2) + Math.pow(Player1YDIS, 2), 0.5); if (((_parent.Player1.rocksloaded > 0) && (this.Player1DIS < this.hitDISTANCE)) && (_root.World.charBLINK == false)) { this.throwANGLEdamaged = random(90) - 45; this.throwratedamaged = 8; _parent.Player1.rocksthrown = _parent.Player1.rocksthrown + 1; _parent.attachMovie("Rock 1", "rock" + _parent.Player1.rocksthrown, 100 + _parent.Player1.rocksthrown, {_x:_parent.charsensorX + _parent.charX, _y:(_parent.charsensorY + _parent.charY) - ((_parent.charHEIGHT / 2) + 1), throwspeedX:((Math.sin(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) * _parent.faceX) + _parent.speedX, throwspeedY:(Math.cos(throwANGLEdamaged * DEGtoRAD) * throwratedamaged) - _parent.speedY, weapon:false}); _parent.oldrock = _parent.Player1.rocksthrown - _parent.rocksMAX; _parent["rock" + _parent.oldrock].removeMovieClip(); _parent.Player1.rocksloaded = _parent.Player1.rocksloaded - 1; _root.World.charBLINK = true; this.removeMovieClip(); } else if ((this.Player1DIS < this.hitDISTANCE) && (_root.World.charBLINK == false)) { _root.World.charALIVE = false; this.removeMovieClip(); } engineloops = 0; while (engineloops < _root.World.engineloops) { if (moverateINIT != 0) { speedX = speedX + ((moverateINIT * Player1XDIS) / Player1DIS); speedY = speedY + ((moverateINIT * Player1YDIS) / Player1DIS); moverateINIT = 0; } else if ((type == "heatseeker") || (type == undefined)) { speedX = speedX + ((moverate * Player1XDIS) / Player1DIS); speedY = speedY + ((moverate * Player1YDIS) / Player1DIS); } totalspeed = Math.pow(Math.pow(speedX, 2) + Math.pow(speedY, 2), 0.5); _x = (_x + speedX); _y = (_y + speedY); engineloops++; } };
Symbol 206 MovieClip [CrumblingBox] Frame 1
stop();
Symbol 215 MovieClip [BomberExplosion] Frame 10
this.removeMovieClip();
Symbol 240 MovieClip Frame 1
_root.stop(); this.levelname.text = this.textvalue; onMouseDown = function () { if ((this._visible == true) && (this.hitTest(_root._xmouse, _root._ymouse, true))) { _root.soundManager_mc.playSound("Beep_Error06.wavsound", 0, 1); _root.gotoAndPlay(this.linkvalue); } }; armed = false; var buttonColor = new Color(this); var mouseoverFlash = {ra:100, rb:100, ga:100, gb:100, ba:100, bb:100, aa:100, ab:0}; var normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; onEnterFrame = function () { if ((Key.isDown(_root.kSTART) && (armed == true)) && (this.linkvalue == "Level 0A Start")) { _root.soundManager_mc.playSound("Beep_Error06.wavsound", 0, 1); _root.gamestartpoint = this._name; _root.levelSTART = getTimer() / 1000; _root.go = true; _root.gotoAndPlay(this.linkvalue); } else if (!Key.isDown(_root.kSTART)) { armed = true; } if ((((_parent._xmouse > (this._x - (this._width / 2))) && (_parent._xmouse < (this._x + (this._width / 2)))) && (_parent._ymouse > (this._y - (this._height / 2)))) && (_parent._ymouse < (this._y + (this._height / 2)))) { buttonColor.setTransform(mouseoverFlash); } else { buttonColor.setTransform(normal); } };
Symbol 241 MovieClip [deadalert] Frame 1
stop();
Instance of Symbol 240 MovieClip in Symbol 241 MovieClip [deadalert] Frame 1
onClipEvent (load) { this.textvalue = "Menu"; this.linkvalue = "Game Start"; this.gotoAndStop("Menu"); }
Symbol 241 MovieClip [deadalert] Frame 2
_root.gotoAndPlay(_root.level + " Start"); this.removeMovieClip();
Symbol 242 MovieClip [puffexplosion] Frame 18
this.removeMovieClip();
Symbol 268 MovieClip [Sparkle] Frame 1
_root.soundManager_mc.playSound("Cartoon_OpenMagicBag2.wav", 0, 1);
Symbol 268 MovieClip [Sparkle] Frame 10
this.removeMovieClip();
Symbol 299 MovieClip Frame 1
stop();
Symbol 333 Button
on (release) { play(); }
Symbol 371 MovieClip Frame 1
this.segment = 1; _root.soundManager_mc.playSound("BreakfastCinematic.wav", 0, 9999999999);
Instance of Symbol 81 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (load) { this._visible = false; this.skiparmed = false; } onClipEvent (enterFrame) { _parent.nextsegment = _parent.segment + 1; if (Key.isDown(_root.kSTART) && (this.skiparmed == true)) { _parent.gotoAndPlay("segment" + _parent.nextsegment); this.skiparmed = false; } else if (!Key.isDown(_root.kSTART)) { this.skiparmed = true; } }
Symbol 371 MovieClip Frame 136
stop();
Symbol 371 MovieClip Frame 137
this.segment = 2;
Symbol 371 MovieClip Frame 263
stop();
Symbol 371 MovieClip Frame 264
this.segment = 3; _root.soundManager_mc.stopSound("BreakfastCinematic.wav");
Symbol 371 MovieClip Frame 265
_root.soundManager_mc.playSound("BreakfastIntroCinematic.wav", 0, 9999999999);
Symbol 371 MovieClip Frame 356
stop();
Symbol 371 MovieClip Frame 357
this.segment = 4;
Symbol 371 MovieClip Frame 396
stop();
Symbol 371 MovieClip Frame 397
this.segment = 5;
Symbol 371 MovieClip Frame 463
_root.go = true; _parent.play();
Symbol 376 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 376 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 381 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyblue == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } };
Symbol 383 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 381 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 393 MovieClip Frame 1
_name = "keyblue"; if (_root.died == false) { _root[(((((("keyblue" + this.keynumber) + "LVL") + _root.level) + "x") + _x) + "y") + _y] == false; } onEnterFrame = function () { if (((Math.abs((_root.World.Player1.sensor._x + _root.World.Player1._x) - _x) <= (_root.World.Player1.sensor._width / 2)) && (Math.abs((_root.World.Player1.sensor._y + _root.World.Player1._y) - _y) <= (_root.World.Player1.sensor._height / 2))) || (((_root[(((((("keyblue" + this.keynumber) + "LVL") + _root.level) + "x") + _x) + "y") + _y] == true) && (_root.died == true)) && (_root.levelselect == false))) { _root.World.Player1.keyblue = this.keynumber; this.play(); } }; stop();
Symbol 393 MovieClip Frame 2
onEnterFrame = undefined; _root[(((((("keyblue" + this.keynumber) + "LVL") + _root.level) + "x") + _x) + "y") + _y] = true; _root.soundManager_mc.playSound("Pickup_Key10.wav", 0, 1); stop();
Symbol 396 MovieClip Frame 1
_name = "keyred"; if (_root.died == false) { _root[(((((("keyred" + this.keynumber) + "LVL") + _root.level) + "x") + _x) + "y") + _y] == false; } onEnterFrame = function () { if (((Math.abs((_root.World.Player1.sensor._x + _root.World.Player1._x) - _x) <= (_root.World.Player1.sensor._width / 2)) && (Math.abs((_root.World.Player1.sensor._y + _root.World.Player1._y) - _y) <= (_root.World.Player1.sensor._height / 2))) || (((_root[(((((("keyred" + this.keynumber) + "LVL") + _root.level) + "x") + _x) + "y") + _y] == true) && (_root.died == true)) && (_root.levelselect == false))) { _root.World.Player1.keyred = this.keynumber; this.play(); } }; stop();
Symbol 396 MovieClip Frame 2
onEnterFrame = undefined; _root[(((((("keyred" + this.keynumber) + "LVL") + _root.level) + "x") + _x) + "y") + _y] = true; _root.soundManager_mc.playSound("Pickup_Key10.wav", 0, 1); stop();
Symbol 402 MovieClip Frame 1
_root.World.Barrels = _root.World.Barrels + 1; this.filled = 0; this.vulnerableDISTANCE = 35; if (((_root[(((("BarrelFilledLVL" + _root.level) + "x") + _x) + "y") + _y] == true) && (_root.died == true)) && (_root.levelselect == false)) { gotoAndStop (4); } else { _root[(((("BarrelFilledLVL" + _root.level) + "x") + _x) + "y") + _y] = false; } onEnterFrame = function () { rockcheck = _parent.Player1.rocksthrown - _root.World.rocksMAX; while (rockcheck <= _parent.Player1.rocksthrown) { if (((this.filled < 3) && (_parent["rock" + rockcheck].weapon == true)) && (_parent["rock" + rockcheck] != undefined)) { this[("rock" + rockcheck) + "currentXDIS"] = _parent["rock" + rockcheck]._x - this._x; this[("rock" + rockcheck) + "currentYDIS"] = _parent["rock" + rockcheck]._y - this._y; this[("rock" + rockcheck) + "currentDIS"] = Math.pow(Math.pow((this[("rock" + rockcheck) + "currentXDIS"] + this[("rock" + rockcheck) + "oldXDIS"]) / 2, 2) + Math.pow((this[("rock" + rockcheck) + "currentYDIS"] + this[("rock" + rockcheck) + "oldYDIS"]) / 2, 2), 0.5); this[("rock" + rockcheck) + "avgDIS"] = Math.pow(Math.pow(this[("rock" + rockcheck) + "currentXDIS"], 2) + Math.pow(this[("rock" + rockcheck) + "currentYDIS"], 2), 0.5); if ((this[("rock" + rockcheck) + "currentDIS"] < vulnerableDISTANCE) || (this[("rock" + rockcheck) + "avgDIS"] < vulnerableDISTANCE)) { this.filled = this.filled + 1; this.nextFrame(); _parent.attachMovie("puffexplosion", "puffexplosion" + rockcheck, _root.attachDEPTH, {_x:_parent["rock" + rockcheck]._x, _y:_parent["rock" + rockcheck]._y, _xscale:50, _yscale:50}); _root.attachDEPTH = _root.attachDEPTH + 1; _parent["rock" + rockcheck].removeMovieClip(); } this[("rock" + rockcheck) + "oldXDIS"] = this[("rock" + rockcheck) + "currentXDIS"]; this[("rock" + rockcheck) + "oldYDIS"] = this[("rock" + rockcheck) + "currentYDIS"]; this[("rock" + rockcheck) + "oldDIS"] = this[("rock" + rockcheck) + "currentDIS"]; } rockcheck++; } }; stop();
Symbol 402 MovieClip Frame 4
_root.World.BarrelsFilled = _root.World.BarrelsFilled + 1; _root[(((("BarrelFilledLVL" + _root.level) + "x") + _x) + "y") + _y] = true; this.BarrelLabel = (_root.World.BarrelsFilled + "/") + _root.World.Barrels; onEnterFrame = undefined; this.nextFrame();
Symbol 412 MovieClip Frame 1
_root.endlevel = false; this.skiplevelarmed = false; sensorWIDTH = 50; sensorHEIGHT = 100; onEnterFrame = function () { if ((((_root.World.Barrels <= _root.World.BarrelsFilled) && (_root.World.Barrels > 0)) || ((_root.World.Barrels == 0) && (skiplevelarmed == true))) || (((_root.PAUSE == false) && (Key.isDown(_root.kSKIPLEVEL))) && (skiplevelarmed == true))) { this.Player1X = _root.World.Player1._x; this.Player1Y = _root.World.Player1._y; this.Player1XDIS = Math.abs(this.Player1X - this._x); this.Player1YDIS = Math.abs(this.Player1Y - this._y); if (((this.Player1XDIS < (sensorWIDTH / 2)) && (this.Player1YDIS < (sensorHEIGHT / 2))) || (Key.isDown(_root.kSKIPLEVEL) && (skiplevelarmed == true))) { if (Key.isDown(_root.kSKIPLEVEL)) { _root.cheats = true; } _root.endlevel = true; _root.gotoAndPlay(_root.level + " Complete"); } nextFrame(); } else if (!Key.isDown(_root.kSKIPLEVEL)) { skiplevelarmed = true; } }; stop();
Symbol 419 MovieClip Frame 1
armed = true; onEnterFrame = function () { if ((((armed == true) && (_root.textbubble == undefined)) && (Math.abs((_parent.Player1.sensor._x + _parent.Player1._x) - _x) <= (_parent.Player1.sensor._width / 2))) && (Math.abs((_parent.Player1.sensor._y + _parent.Player1._y) - _y) <= (_parent.Player1.sensor._height / 2))) { _root.PAUSE = true; _root.pauseSTART = getTimer() / 1000; _root.attachMovie("textbubble", "textbubble", _root.attachDEPTH, {_x:275, _y:75, textcontent:textcontent}); _root.attachDEPTH = _root.attachDEPTH + 1; armed = false; if (this.pushright == true) { _parent.charX = _parent.charX + 50; } _root.Antifreezer = false; } else if (((armed == false) && (Math.abs((_parent.Player1.sensor._x + _parent.Player1._x) - _x) > (_parent.Player1.sensor._width / 2))) || ((armed == false) && (Math.abs((_parent.Player1.sensor._y + _parent.Player1._y) - _y) > (_parent.Player1.sensor._height / 2)))) { armed = true; } };
Symbol 456 MovieClip Frame 1
this.keynumber = 1; onEnterFrame = function () { if (_root.World.Player1.keyblue == this.keynumber) { this._visible = true; this.play(); } }; stop();
Symbol 456 MovieClip Frame 18
onEnterFrame = undefined; stop();
Symbol 459 MovieClip Frame 1
this.keynumber = 1; onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.play(); } }; stop();
Symbol 459 MovieClip Frame 15
onEnterFrame = undefined; stop();
Symbol 477 MovieClip Frame 6
stop();
Symbol 479 MovieClip Frame 6
stop();
Symbol 483 MovieClip Frame 6
stop();
Symbol 493 MovieClip Frame 28
_root.attachMovie("deadalert", "deadalert", _root.attachDEPTH, {_x:275, _y:200}); _root.attachDEPTH = _root.attachDEPTH + 1; stop();
Instance of Symbol 81 MovieClip "sensor" in Symbol 494 MovieClip Frame 1
onClipEvent (load) { _visible = false; _parent.stop(); bubbles = 0; bubbletime = 2; bubbleSCALEMIN = 100; bubbleSCALEMAX = 400; bubblesMAX = 50; bubbleLOOPS = 5; bubbleSPEEDSPAWN = 5 * bubbleLOOPS; } onClipEvent (enterFrame) { if (_parent._parent.charALIVE == false) { _parent.gotoAndStop("Dead"); } else if (_parent._parent.environment == "duckpaddle") { if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("SurfaceSwimming-Flapping"); } else { _parent.gotoAndStop("SurfaceSwimming"); } } else if (((_parent._parent.environment == "swimmingupward") || (_parent._parent.environment == "swimmingdownward")) || (_parent._parent.environment == "watergrounded")) { if ((bubbletimeSTART + bubbletime) > (getTimer() / 1000)) { bubbleloop = 1; while (bubbleloop < bubbleLOOPS) { if (random(Math.max(0, bubbleSPEEDSPAWN - (_parent._parent.totalspeed * bubbleLOOPS))) == 0) { bubbles = bubbles + 1; bubbleSCALE = random(bubbleSCALEMAX - bubbleSCALEMIN) + bubbleSCALEMIN; _parent._parent.attachMovie("Bubble 1", "bubble" + bubbles, _parent._parent.bubbledepth + bubbles, {_x:((((_x + (((_height / 2) * _parent._parent.faceX) * Math.sin(_parent._rotation * _parent._parent.DEGtoRAD))) + ((random(_width) - (_width / 2)) * Math.cos(_parent._rotation * _parent._parent.DEGtoRAD))) * _parent._xscale) / 100) + _parent._x, _y:((((_y - ((_height / 2) * Math.cos(_parent._rotation * _parent._parent.DEGtoRAD))) - ((random(_width) - (_width / 2)) * Math.sin(_parent._rotation * _parent._parent.DEGtoRAD))) * _parent._yscale) / 100) + _parent._y, _xscale:bubbleSCALE, _yscale:bubbleSCALE, bubbleSCALE:bubbleSCALE}); } bubbleloop++; } } if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("Swimming-Flapping"); } else if ((Math.abs(_parent._parent.swimspeedX) > _parent._parent.gspeedY) || (Math.abs(_parent._parent.swimspeedY) > _parent._parent.gspeedY)) { _parent.gotoAndStop("Swimming"); } else { _parent.gotoAndStop("Sinking"); } } else if ((_parent._parent.jumpspeedY >= _parent._parent.gspeedY) && (_parent._parent.jumpspeedY > 0)) { if (_parent._parent.airjumpCOUNT == _parent._parent.airjumpsMAX) { _parent.gotoAndStop("Flying"); } else { _parent.gotoAndStop("DoubleJumping"); } } else if (((_parent._parent.jumpspeedY < _parent._parent.gspeedY) && (_parent._parent.jumpspeedY > 0)) || ((_parent._parent.jumpspeedY == 0) && (_parent._parent.gspeedY > _parent._parent.jumpTHRESHOLD))) { _parent.gotoAndStop("Falling"); } else if (_parent._parent.environment == "wallslide") { _parent.gotoAndStop("Wallsliding"); } else if (((_parent._parent.environmentchecker == "bellyslide") && (_parent._parent.bellyslideTIME < 99)) || (((_parent._parent.environmentchecker == "bellyslide") && (_parent._parent.bellyslideTIME >= 99)) && (Math.abs(_parent._parent.movespeedX) > _parent._parent.slidespeedMIN))) { _parent.gotoAndStop("BellySliding"); } else if (((_parent._parent.environment == "grounded") && (_parent._parent.charROT >= 165)) || ((_parent._parent.environment == "grounded") && (_parent._parent.charROT <= -165))) { _parent.gotoAndStop("Nosedivebounce"); } else if (_parent._parent.moveX != 0) { _parent.gotoAndStop("Walking"); } else { _parent.gotoAndStop("Standing"); } if (((_parent._parent.environment != "swimmingupward") && (_parent._parent.environment != "swimmingdownward")) && (_parent._parent.environment != "watergrounded")) { bubbletimeSTART = getTimer() / 1000; } }
Symbol 494 MovieClip Frame 3
_root.soundManager_mc.playSound("jump 1", 0, 1);
Symbol 494 MovieClip Frame 4
_root.soundManager_mc.playSound("bender_2xjump.aiff", 0, 1);
Symbol 494 MovieClip Frame 14
_root.soundManager_mc.playSound("jump2.wav", 0, 1);
Symbol 495 MovieClip Frame 1
_visible = false; this.armed = true; _root.World.points = _root.World.points + 1; this.number = _root.World.points; this.levelselectarmed = _root.levelselect; if ((_root[(_root.level + "obtainedPoint") + this.number] == true) && (_root.levelselect == false)) { _parent.Player1.points = _parent.Player1.points + 1; } else { onEnterFrame = function () { if ((_root[(_root.level + "obtainedPoint") + this.number] != true) || (this.levelselectarmed == true)) { if (this.levelselectarmed == true) { _root[(_root.level + "obtainedPoint") + this.number] = false; } this.levelselectarmed = false; if ((((this.armed == true) && (_root.World["Point" + this.number]._x == undefined)) && (Math.abs(_x - _parent.camera._x) < ((_parent.camera._width / 2) + _root.World.badguyDISTANCEMAX))) && (Math.abs(_y - _parent.camera._y) < (((_parent.camera._height / 2) + this._height) + _root.World.badguyDISTANCEMAX))) { _root.World.attachMovie("Point 1", "Point" + this.number, _root.attachDEPTH, {_x:_x, _y:_y, pasted:true}); this.armed = false; _root.attachDEPTH = _root.attachDEPTH + 1; } } }; }
Symbol 498 MovieClip Frame 1
onEnterFrame = function () { if ((((Math.abs((_parent.Player1.sensor._x + _parent.Player1._x) - _x) <= (_parent.Player1.sensor._width / 2)) && (Math.abs((_parent.Player1.sensor._y + _parent.Player1._y) - _y) <= (_parent.Player1.sensor._height / 2))) && (_parent.Player1.rocksloaded < (_parent.Player1.rocksloadedMAX + Math.floor(_root.World.Player1.points / 100)))) && (rockdroparmed == true)) { _parent.Player1.rocksloaded = _parent.Player1.rocksloadedMAX + Math.floor(_root.World.Player1.points / 100); rockdroparmed = false; _parent.attachMovie("Rock Number", "rocknumber" + _parent.Player1.rocksloaded, 250, {_x:_x, _y:_y - 10, rocksloaded:_parent.Player1.rocksloaded}); } else if ((Math.abs((_parent.Player1.sensor._x + _parent.Player1._x) - _x) > (_parent.Player1.sensor._width / 2)) || (Math.abs((_parent.Player1.sensor._y + _parent.Player1._y) - _y) > (_parent.Player1.sensor._height / 2))) { rockdroparmed = true; } else { rockdroparmed = false; } };
Instance of Symbol 378 MovieClip "HardBoundary" in Symbol 499 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Instance of Symbol 384 MovieClip "SoftBoundary" in Symbol 499 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Instance of Symbol 393 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 396 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 419 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Press \"space\" to jump. Use the \"arrow keys\" to move left or right."; }
Instance of Symbol 419 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Jump onto a wall and press the arrow key in the wall's direction to \"slide\" on the wall. While sliding, press \"space\" to jump upward, off the wall."; }
Instance of Symbol 419 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "While in the air, you can press \"space\" once more to do a \"double jump.\""; }
Instance of Symbol 419 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Congratulations, you've arrived at the end of your first stage, however it is not over yet! You must destroy those three security boxes to unlock the stage exit. Go pick up cherry bombs from the rockpile to the left, then press \"F\" to throw the cherry bombs at the security boxes. You can carry 1 extra cherry bomb for every 100 packs of cigarettes collected. Light up!"; }
Instance of Symbol 419 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "You can press \"up\" or \"down\" while throwing to change the trajectory of your rock. Try to fill these two barrels without jumping."; this.pushright = true; }
Symbol 505 MovieClip Frame 1
onEnterFrame = function () { if ((_root.PAUSE == true) && (_root.textbubble == undefined)) { _visible = true; } else { _visible = false; } };
Instance of Symbol 503 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { _visible = false; variablechecked = 0; } onClipEvent (enterFrame) { if (variablechecked < Math.abs(_root.World.speedX)) { variablechecked = Math.abs(_root.World.speedX); } if (Key.isToggled(20) && (_root.devinfo == true)) { _visible = true; } else { _visible = false; } }
Instance of Symbol 503 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { variablechecked = _root.World.environment; if (Key.isToggled(20) && (_root.devinfo == true)) { _visible = true; } else { _visible = false; } }
Instance of Symbol 503 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { _visible = false; variablechecked = 0; } onClipEvent (enterFrame) { if (variablechecked < Math.abs(_root.World.gspeedY)) { variablechecked = Math.abs(_root.World.gspeedY); } if (Key.isToggled(20) && (_root.devinfo == true)) { _visible = true; } else { _visible = false; } }
Instance of Symbol 503 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { variablechecked = _root.World.recentFPSoutput; if (Key.isToggled(20) && (_root.devinfo == true)) { _visible = true; } else { _visible = false; } }
Instance of Symbol 503 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { variablechecked = 0; } onClipEvent (enterFrame) { variablechecked = (_root.World.Player1.points + "/") + _root.World.points; }
Instance of Symbol 503 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { variablechecked = 0; } onClipEvent (enterFrame) { variablechecked = (_root.World.BarrelsFilled + "/") + _root.World.Barrels; }
Instance of Symbol 503 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { variablechecked = 0; this.rocksloadedMAX = _root.World.Player1.rocksloadedMAX; } onClipEvent (enterFrame) { if (this.rocksloadedMAX < (_root.World.Player1.rocksloadedMAX + Math.floor(_root.World.Player1.points / 100))) { this.rocksloadedMAX = _root.World.Player1.rocksloadedMAX + Math.floor(_root.World.Player1.points / 100); _root.World.Player1.rocksloaded = _root.World.Player1.rocksloaded + 1; _parent.attachMovie("Sparkle", "Sparkle", _root.attachDEPTH, {_x:_parent.cherryicon._x, _y:_parent.cherryicon._y}); _root.attachDEPTH = _root.attachDEPTH + 1; } variablechecked = (_root.World.Player1.rocksloaded + "/") + this.rocksloadedMAX; }
Instance of Symbol 505 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 528 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 528 MovieClip in Symbol 529 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 532 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Symbol 536 MovieClip Frame 1
_visible = false; this.armed = true; _root.World.AttackDogs = _root.World.AttackDogs + 1; this.number = _root.World.AttackDogs; onEnterFrame = function () { if (_root.Antifreezer == false) { this.armed = true; } if (((((((this.armed == true) && (_root.World["Attack Dog" + this.number] == undefined)) && (_root.World.BasketballDog == undefined)) && (Math.abs(_x - _parent.camera._x) < (((_parent.camera._width / 2) + (_width / 2)) + _root.World.badguyDISTANCEMAX))) && (Math.abs(_y - _parent.camera._y) < (((_parent.camera._height / 2) + (this._height / 2)) + _root.World.badguyDISTANCEMAX))) && (_root.Antifreezer != true)) || (_root.Antifreezer == false)) { if (_root.basketball == false) { _root.World.attachMovie("Attack Dog 1", "Attack Dog" + this.number, _root.attachDEPTH, {_x:_x, _y:_y, pasted:true}); } else { _root.World.attachMovie("Attack Dog 1", "BasketballDog", _root.attachDEPTH, {_x:_x, _y:_y, pasted:true}); } _root.attachDEPTH = _root.attachDEPTH + 1; _root.Antifreezer = undefined; this.armed = false; } else if ((((_root.World["Attack Dog" + this.number] == undefined) && (_root.World.BasketballDog == undefined)) && (Math.abs(_x - _parent.camera._x) > (((_parent.camera._width / 2) + (_width / 2)) + _root.World.badguyDISTANCEMAX))) || ((_root.World["Attack Dog" + this.number] == undefined) && (Math.abs(_y - _parent.camera._y) > (((_parent.camera._height / 2) + (_height / 2)) + _root.World.badguyDISTANCEMAX)))) { this.armed = true; } };
Instance of Symbol 81 MovieClip "sensor" in Symbol 536 MovieClip Frame 1
onClipEvent (load) { _visible = false; _parent.stop(); bubbles = 0; bubbletime = 2; bubbleSCALEMIN = 100; bubbleSCALEMAX = 400; bubblesMAX = 50; bubbleLOOPS = 5; bubbleSPEEDSPAWN = 5 * bubbleLOOPS; } onClipEvent (enterFrame) { if (_parent.charALIVE == false) { _parent.gotoAndStop("Dead"); } else if (_parent.environment == "duckpaddle") { if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("SurfaceSwimming-Flapping"); } else { _parent.gotoAndStop("SurfaceSwimming"); } } else if (((_parent.environment == "swimmingupward") || (_parent.environment == "swimmingdownward")) || (_parent.environment == "watergrounded")) { if ((bubbletimeSTART + bubbletime) > (getTimer() / 1000)) { bubbleloop = 1; while (bubbleloop < bubbleLOOPS) { if (random(Math.max(0, bubbleSPEEDSPAWN - (_parent.totalspeed * bubbleLOOPS))) == 0) { bubbles = bubbles + 1; bubbleSCALE = random(bubbleSCALEMAX - bubbleSCALEMIN) + bubbleSCALEMIN; _parent.attachMovie("Bubble 1", "bubble" + bubbles, _parent.bubbledepth + bubbles, {_x:((((_x + (((_height / 2) * _parent.faceX) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) + ((random(_width) - (_width / 2)) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) * _parent._xscale) / 100) + _parent._x, _y:((((_y - ((_height / 2) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) - ((random(_width) - (_width / 2)) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) * _parent._yscale) / 100) + _parent._y, _xscale:bubbleSCALE, _yscale:bubbleSCALE, bubbleSCALE:bubbleSCALE}); } bubbleloop++; } } if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("Swimming-Flapping"); } else if ((Math.abs(_parent.swimspeedX) > _parent.gspeedY) || (Math.abs(_parent.swimspeedY) > _parent.gspeedY)) { _parent.gotoAndStop("Swimming"); } else { _parent.gotoAndStop("Sinking"); } } else if ((_parent.jumpspeedY >= _parent.gspeedY) && (_parent.jumpspeedY > 0)) { if (_parent.airjumpCOUNT == _parent.airjumpsMAX) { _parent.gotoAndStop("Flying"); } else { _parent.gotoAndStop("DoubleJumping"); } } else if (((_parent.jumpspeedY < _parent.gspeedY) && (_parent.jumpspeedY > 0)) || ((_parent.jumpspeedY == 0) && (_parent.gspeedY > _parent.jumpTHRESHOLD))) { _parent.gotoAndStop("Falling"); } else if (_parent.environment == "wallslide") { _parent.gotoAndStop("Wallsliding"); } else if (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME < 99)) || (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME >= 99)) && (Math.abs(_parent.movespeedX) > _parent.slidespeedMIN))) { _parent.gotoAndStop("BellySliding"); } else if (((_parent.environment == "grounded") && (_parent.charROT >= 165)) || ((_parent.environment == "grounded") && (_parent.charROT <= -165))) { _parent.gotoAndStop("Nosedivebounce"); } else if (_parent.moveX != 0) { _parent.gotoAndStop("Walking"); } else { _parent.gotoAndStop("Standing"); } if (((_parent.environment != "swimmingupward") && (_parent.environment != "swimmingdownward")) && (_parent.environment != "watergrounded")) { bubbletimeSTART = getTimer() / 1000; } }
Symbol 540 MovieClip Frame 1
_visible = false; this.armed = true; _root.World.Goombas = _root.World.Goombas + 1; this.number = _root.World.Goombas; onEnterFrame = function () { if ((((this.armed == true) && (_root.World["Goomba" + this.number] == undefined)) && (Math.abs(_x - _parent.camera._x) < (((_parent.camera._width / 2) + (_width / 2)) + _root.World.badguyDISTANCEMAX))) && (Math.abs(_y - _parent.camera._y) < (((_parent.camera._height / 2) + this._height) + _root.World.badguyDISTANCEMAX))) { _root.World.attachMovie("Goomba 1", "Goomba" + this.number, _root.attachDEPTH, {_x:_x, _y:_y, pasted:true}); this.armed = false; _root.attachDEPTH = _root.attachDEPTH + 1; } else if (((_root.World["Goomba" + this.number] == undefined) && (Math.abs(_x - _parent.camera._x) > (((_parent.camera._width / 2) + (_width / 2)) + _root.World.badguyDISTANCEMAX))) || ((_root.World["Goomba" + this.number] == undefined) && (Math.abs(_y - _parent.camera._y) > (((_parent.camera._height / 2) + (_height / 2)) + _root.World.badguyDISTANCEMAX)))) { this.armed = true; } };
Instance of Symbol 81 MovieClip "sensor" in Symbol 540 MovieClip Frame 1
onClipEvent (load) { _visible = false; _parent.stop(); bubbles = 0; bubbletime = 2; bubbleSCALEMIN = 100; bubbleSCALEMAX = 400; bubblesMAX = 50; bubbleLOOPS = 5; bubbleSPEEDSPAWN = 5 * bubbleLOOPS; } onClipEvent (enterFrame) { if (_parent.charALIVE == false) { _parent.gotoAndStop("Dead"); } else if (_parent.environment == "duckpaddle") { if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("SurfaceSwimming-Flapping"); } else { _parent.gotoAndStop("SurfaceSwimming"); } } else if (((_parent.environment == "swimmingupward") || (_parent.environment == "swimmingdownward")) || (_parent.environment == "watergrounded")) { if ((bubbletimeSTART + bubbletime) > (getTimer() / 1000)) { bubbleloop = 1; while (bubbleloop < bubbleLOOPS) { if (random(Math.max(0, bubbleSPEEDSPAWN - (_parent.totalspeed * bubbleLOOPS))) == 0) { bubbles = bubbles + 1; bubbleSCALE = random(bubbleSCALEMAX - bubbleSCALEMIN) + bubbleSCALEMIN; _parent.attachMovie("Bubble 1", "bubble" + bubbles, _parent.bubbledepth + bubbles, {_x:((((_x + (((_height / 2) * _parent.faceX) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) + ((random(_width) - (_width / 2)) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) * _parent._xscale) / 100) + _parent._x, _y:((((_y - ((_height / 2) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) - ((random(_width) - (_width / 2)) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) * _parent._yscale) / 100) + _parent._y, _xscale:bubbleSCALE, _yscale:bubbleSCALE, bubbleSCALE:bubbleSCALE}); } bubbleloop++; } } if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("Swimming-Flapping"); } else if ((Math.abs(_parent.swimspeedX) > _parent.gspeedY) || (Math.abs(_parent.swimspeedY) > _parent.gspeedY)) { _parent.gotoAndStop("Swimming"); } else { _parent.gotoAndStop("Sinking"); } } else if ((_parent.jumpspeedY >= _parent.gspeedY) && (_parent.jumpspeedY > 0)) { if (_parent.airjumpCOUNT == _parent.airjumpsMAX) { _parent.gotoAndStop("Flying"); } else { _parent.gotoAndStop("DoubleJumping"); } } else if (((_parent.jumpspeedY < _parent.gspeedY) && (_parent.jumpspeedY > 0)) || ((_parent.jumpspeedY == 0) && (_parent.gspeedY > _parent.jumpTHRESHOLD))) { _parent.gotoAndStop("Falling"); } else if (_parent.environment == "wallslide") { _parent.gotoAndStop("Wallsliding"); } else if (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME < 99)) || (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME >= 99)) && (Math.abs(_parent.movespeedX) > _parent.slidespeedMIN))) { _parent.gotoAndStop("BellySliding"); } else if (((_parent.environment == "grounded") && (_parent.charROT >= 165)) || ((_parent.environment == "grounded") && (_parent.charROT <= -165))) { _parent.gotoAndStop("Nosedivebounce"); } else if (_parent.moveX != 0) { _parent.gotoAndStop("Walking"); } else { _parent.gotoAndStop("Standing"); } if (((_parent.environment != "swimmingupward") && (_parent.environment != "swimmingdownward")) && (_parent.environment != "watergrounded")) { bubbletimeSTART = getTimer() / 1000; } }
Symbol 541 MovieClip Frame 1
_visible = false; this.armed = true; _root.World.KoopaTroopas = _root.World.KoopaTroopas + 1; this.number = _root.World.KoopaTroopas; onEnterFrame = function () { if ((((this.armed == true) && (_root.World["Koopa Troopa" + this.number] == undefined)) && (Math.abs(_x - _parent.camera._x) < (((_parent.camera._width / 2) + (_width / 2)) + _root.World.badguyDISTANCEMAX))) && (Math.abs(_y - _parent.camera._y) < (((_parent.camera._height / 2) + this._height) + _root.World.badguyDISTANCEMAX))) { _root.World.attachMovie("Koopa Troopa 1", "Koopa Troopa" + this.number, _root.attachDEPTH, {_x:_x, _y:_y, pasted:true}); this.armed = false; _root.attachDEPTH = _root.attachDEPTH + 1; } else if (((_root.World["Koopa Troopa" + this.number] == undefined) && (Math.abs(_x - _parent.camera._x) > (((_parent.camera._width / 2) + (_width / 2)) + _root.World.badguyDISTANCEMAX))) || ((_root.World["Koopa Troopa" + this.number] == undefined) && (Math.abs(_y - _parent.camera._y) > (((_parent.camera._height / 2) + (_height / 2)) + _root.World.badguyDISTANCEMAX)))) { this.armed = true; } };
Instance of Symbol 81 MovieClip "sensor" in Symbol 541 MovieClip Frame 1
onClipEvent (load) { _visible = false; _parent.stop(); bubbles = 0; bubbletime = 2; bubbleSCALEMIN = 100; bubbleSCALEMAX = 400; bubblesMAX = 50; bubbleLOOPS = 5; bubbleSPEEDSPAWN = 5 * bubbleLOOPS; } onClipEvent (enterFrame) { if (_parent.charALIVE == false) { _parent.gotoAndStop("Dead"); } else if (_parent.environment == "duckpaddle") { if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("SurfaceSwimming-Flapping"); } else { _parent.gotoAndStop("SurfaceSwimming"); } } else if (((_parent.environment == "swimmingupward") || (_parent.environment == "swimmingdownward")) || (_parent.environment == "watergrounded")) { if ((bubbletimeSTART + bubbletime) > (getTimer() / 1000)) { bubbleloop = 1; while (bubbleloop < bubbleLOOPS) { if (random(Math.max(0, bubbleSPEEDSPAWN - (_parent.totalspeed * bubbleLOOPS))) == 0) { bubbles = bubbles + 1; bubbleSCALE = random(bubbleSCALEMAX - bubbleSCALEMIN) + bubbleSCALEMIN; _parent.attachMovie("Bubble 1", "bubble" + bubbles, _parent.bubbledepth + bubbles, {_x:((((_x + (((_height / 2) * _parent.faceX) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) + ((random(_width) - (_width / 2)) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) * _parent._xscale) / 100) + _parent._x, _y:((((_y - ((_height / 2) * Math.cos(_parent._rotation * _parent.DEGtoRAD))) - ((random(_width) - (_width / 2)) * Math.sin(_parent._rotation * _parent.DEGtoRAD))) * _parent._yscale) / 100) + _parent._y, _xscale:bubbleSCALE, _yscale:bubbleSCALE, bubbleSCALE:bubbleSCALE}); } bubbleloop++; } } if (Key.isDown(_root.kJUMP)) { _parent.gotoAndStop("Swimming-Flapping"); } else if ((Math.abs(_parent.swimspeedX) > _parent.gspeedY) || (Math.abs(_parent.swimspeedY) > _parent.gspeedY)) { _parent.gotoAndStop("Swimming"); } else { _parent.gotoAndStop("Sinking"); } } else if ((_parent.jumpspeedY >= _parent.gspeedY) && (_parent.jumpspeedY > 0)) { if (_parent.airjumpCOUNT == _parent.airjumpsMAX) { _parent.gotoAndStop("Flying"); } else { _parent.gotoAndStop("DoubleJumping"); } } else if (((_parent.jumpspeedY < _parent.gspeedY) && (_parent.jumpspeedY > 0)) || ((_parent.jumpspeedY == 0) && (_parent.gspeedY > _parent.jumpTHRESHOLD))) { _parent.gotoAndStop("Falling"); } else if (_parent.environment == "wallslide") { _parent.gotoAndStop("Wallsliding"); } else if (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME < 99)) || (((_parent.environmentchecker == "bellyslide") && (_parent.bellyslideTIME >= 99)) && (Math.abs(_parent.movespeedX) > _parent.slidespeedMIN))) { _parent.gotoAndStop("BellySliding"); } else if (((_parent.environment == "grounded") && (_parent.charROT >= 165)) || ((_parent.environment == "grounded") && (_parent.charROT <= -165))) { _parent.gotoAndStop("Nosedivebounce"); } else if (_parent.moveX != 0) { _parent.gotoAndStop("Walking"); } else { _parent.gotoAndStop("Standing"); } if (((_parent.environment != "swimmingupward") && (_parent.environment != "swimmingdownward")) && (_parent.environment != "watergrounded")) { bubbletimeSTART = getTimer() / 1000; } }
Instance of Symbol 529 MovieClip "HardBoundary" in Symbol 542 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Instance of Symbol 533 MovieClip "SoftBoundary" in Symbol 542 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Instance of Symbol 535 MovieClip "DeathBoundary" in Symbol 542 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 396 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 419 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Watch out for those barbed wires! Touch them and you will lose cherry bombs. If you have no cherry bombs, the barbed wire will kill you!"; }
Instance of Symbol 419 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Avoid enemies or use your cherry bombs to disable them! Be careful, they mean business. Some enemies will even chase after you or drop bombs from the sky!"; }
Instance of Symbol 419 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Hm, that barbed wire will hurt. . . . Can you destroy the security box from afar?"; }
Symbol 599 MovieClip Frame 1
this.segment = 1; _root.soundManager_mc.playSound("BreakfastCinematic.wav", 0, 9999999999);
Instance of Symbol 81 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (load) { this._visible = false; this.skiparmed = false; } onClipEvent (enterFrame) { _parent.nextsegment = _parent.segment + 1; if (Key.isDown(_root.kSTART) && (this.skiparmed == true)) { _parent.gotoAndPlay("segment" + _parent.nextsegment); this.skiparmed = false; } else if (!Key.isDown(_root.kSTART)) { this.skiparmed = true; } }
Symbol 599 MovieClip Frame 77
stop();
Symbol 599 MovieClip Frame 78
this.segment = 2;
Symbol 599 MovieClip Frame 150
stop();
Symbol 599 MovieClip Frame 151
this.segment = 3;
Symbol 599 MovieClip Frame 214
stop();
Symbol 599 MovieClip Frame 215
this.segment = 4;
Symbol 599 MovieClip Frame 250
_root.go = true; _parent.play(); _root.soundManager_mc.stopSound("BreakfastCinematic.wav");
Symbol 604 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 604 MovieClip in Symbol 605 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 608 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyblue == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } };
Symbol 610 MovieClip [Crumbling 1] Frame 1
_visible = false; this.hitXDIS = (this._width / 2) + 1; this.hitYDIS = ((this._height / 2) + (_root.World.Player1.sensor._height / 2)) + 1; firstframe = true; if (_root.World[this._name + "ART"]._name == undefined) { _root.World.attachMovie("CrumblingBox", this._name + "ART", _root.attachDEPTH, {_x:this._x, _y:this._y}); _root.attachDEPTH = _root.attachDEPTH + 1; } onEnterFrame = function () { this.Player1X = _root.World.Player1._x; this.Player1Y = _root.World.Player1._y; this.Player1XDIS = Math.abs(this.Player1X - this._x); this.Player1YDIS = Math.abs(this.Player1Y - this._y); if ((((((_root.PAUSE == false) && (this.Player1Y <= this._y)) && (this.Player1XDIS < this.hitXDIS)) && (this.Player1YDIS < this.hitYDIS)) && (_root.World.environment == "grounded")) || ((_root.PAUSE == false) && (firstframe == false))) { _root.World[this._name + "ART"].play(); play(); } else if (_root.PAUSE == true) { _root.World[this._name + "ART"].stop(); stop(); } }; stop();
Symbol 610 MovieClip [Crumbling 1] Frame 2
firstframe = false;
Symbol 610 MovieClip [Crumbling 1] Frame 17
onEnterFrame = function () { if (_root.PAUSE == false) { play(); } else if (_root.PAUSE == true) { stop(); } };
Symbol 612 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 608 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Instance of Symbol 615 MovieClip "DeathBoundary" in Symbol 623 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 419 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "See if you can collect all the cigarettes in this level. Some are hidden in secret locations! You can press \"CONTROL\" and \"SHIFT\" to zoom in and out for a better view. . . . Hm, that big wall looks suspicious. Explore and be rewarded with hundreds smooth smokes, filled with sweet nicotine."; }
Instance of Symbol 419 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Nice work! You've got the blue and red keys! The stage exit is just up ahead, but maybe you should see what else those keys may have opened up."; }
Instance of Symbol 419 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Hello! Hope you're enjoying the game! -Christopher J. Rock"; }
Instance of Symbol 393 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 396 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 540 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) { initfaceXDIR = -1; }
Symbol 640 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 640 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 644 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyblue == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } };
Symbol 646 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 644 MovieClip in Symbol 647 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Instance of Symbol 649 MovieClip "DeathBoundary" in Symbol 659 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 419 MovieClip in Symbol 659 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Hm, nothing here but barbed wire. . . . Could some of these pits be hiding something?"; }
Instance of Symbol 419 MovieClip in Symbol 659 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "When stuck, don't forget to look upward!"; }
Instance of Symbol 419 MovieClip in Symbol 659 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Nice moves, hot shot! -Christopher J. Rock"; }
Instance of Symbol 396 MovieClip "keyred" in Symbol 659 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 393 MovieClip "keyblue" in Symbol 659 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Symbol 712 MovieClip Frame 1
this.segment = 1; _root.soundManager_mc.playSound("BreakfastCinematic.wav", 0, 9999999999);
Instance of Symbol 81 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) { this._visible = false; this.skiparmed = false; } onClipEvent (enterFrame) { _parent.nextsegment = _parent.segment + 1; if (Key.isDown(_root.kSTART) && (this.skiparmed == true)) { _parent.gotoAndPlay("segment" + _parent.nextsegment); this.skiparmed = false; } else if (!Key.isDown(_root.kSTART)) { this.skiparmed = true; } }
Symbol 712 MovieClip Frame 73
stop();
Symbol 712 MovieClip Frame 74
this.segment = 2;
Symbol 712 MovieClip Frame 136
stop();
Symbol 712 MovieClip Frame 137
this.segment = 3;
Symbol 712 MovieClip Frame 206
stop();
Symbol 712 MovieClip Frame 207
this.segment = 4;
Symbol 712 MovieClip Frame 243
_root.go = true; _parent.play(); _root.soundManager_mc.stopSound("BreakfastCinematic.wav");
Symbol 721 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 724 MovieClip "DeathBoundary" in Symbol 728 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 419 MovieClip in Symbol 728 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "What are you doing down here? -Christopher J. Rock"; }
Symbol 745 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 745 MovieClip in Symbol 746 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 749 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyblue == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } };
Symbol 751 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 749 MovieClip in Symbol 752 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Instance of Symbol 754 MovieClip "DeathBoundary" in Symbol 772 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 419 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Ooh, not just any player makes it this far. Keep playing! -Christopher J. Rock"; }
Instance of Symbol 419 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Check out cigarette trails. Some will lead to more treasure, keys or the end of the level! Plus, smoking makes you even sexier than drinking makes you cool!"; }
Instance of Symbol 419 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Are these things really worth the effort? -Christopher J. Rock"; }
Instance of Symbol 396 MovieClip "keyred " in Symbol 772 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 393 MovieClip "keyblue" in Symbol 772 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Symbol 819 MovieClip Frame 1
this.segment = 1; _root.soundManager_mc.playSound("BreakfastCinematic.wav", 0, 9999999999);
Instance of Symbol 81 MovieClip in Symbol 819 MovieClip Frame 1
onClipEvent (load) { this._visible = false; this.skiparmed = false; } onClipEvent (enterFrame) { _parent.nextsegment = _parent.segment + 1; if (Key.isDown(_root.kSTART) && (this.skiparmed == true)) { _parent.gotoAndPlay("segment" + _parent.nextsegment); this.skiparmed = false; } else if (!Key.isDown(_root.kSTART)) { this.skiparmed = true; } }
Symbol 819 MovieClip Frame 136
stop();
Symbol 819 MovieClip Frame 137
this.segment = 2;
Symbol 819 MovieClip Frame 190
stop();
Symbol 819 MovieClip Frame 191
this.segment = 3;
Symbol 819 MovieClip Frame 273
stop();
Symbol 819 MovieClip Frame 274
this.segment = 4;
Symbol 819 MovieClip Frame 368
stop();
Symbol 819 MovieClip Frame 369
this.segment = 5;
Symbol 819 MovieClip Frame 382
_root.go = true; _parent.play(); _root.soundManager_mc.stopSound("BreakfastCinematic.wav");
Symbol 824 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 824 MovieClip in Symbol 825 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 828 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyblue == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } };
Symbol 830 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 828 MovieClip in Symbol 831 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Instance of Symbol 833 MovieClip "DeathBoundary" in Symbol 851 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 419 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "That dog looks hungry. . . ."; }
Instance of Symbol 419 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Cigarettes never caused anything except for big muscles and sun-glasses."; }
Instance of Symbol 419 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "You can plan a pretty picnic, but you can't predict the weather. -Christopher J. Rock"; }
Instance of Symbol 419 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Keep it real. -Christopher J. Rock"; }
Instance of Symbol 419 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Now and again, it is perfectly healthy for a man to question his own sexuality. -Christopher J. Rock"; }
Instance of Symbol 396 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 393 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 536 MovieClip in Symbol 851 MovieClip Frame 1
onClipEvent (load) { _root.Antifreezer = true; }
Symbol 868 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 868 MovieClip in Symbol 869 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 872 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyblue == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } };
Symbol 874 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 872 MovieClip in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Instance of Symbol 877 MovieClip "DeathBoundary" in Symbol 902 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 419 MovieClip in Symbol 902 MovieClip Frame 1
onClipEvent (load) { this.textcontent = "Run. Run as fast as you can."; }
Instance of Symbol 419 MovieClip in Symbol 902 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "You are dead. -Christopher J. Rock"; }
Instance of Symbol 419 MovieClip in Symbol 902 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Sweet jump! -Christopher J. Rock"; }
Instance of Symbol 396 MovieClip in Symbol 902 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Instance of Symbol 393 MovieClip in Symbol 902 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Symbol 987 MovieClip Frame 1
this.segment = 1; _root.soundManager_mc.playSound("BreakfastCinematic.wav", 0, 9999999999);
Instance of Symbol 81 MovieClip in Symbol 987 MovieClip Frame 1
onClipEvent (load) { this._visible = false; this.skiparmed = false; } onClipEvent (enterFrame) { _parent.nextsegment = _parent.segment + 1; if (Key.isDown(_root.kSTART) && (this.skiparmed == true)) { _parent.gotoAndPlay("segment" + _parent.nextsegment); this.skiparmed = false; } else if (!Key.isDown(_root.kSTART)) { this.skiparmed = true; } }
Symbol 987 MovieClip Frame 52
stop();
Symbol 987 MovieClip Frame 53
this.segment = 2;
Symbol 987 MovieClip Frame 91
this.segment = 3; _root.soundManager_mc.stopSound("BreakfastCinematic.wav");
Symbol 987 MovieClip Frame 92
_root.soundManager_mc.playSound("BreakfastIntroCinematic.wav", 0, 9999999999);
Symbol 987 MovieClip Frame 129
stop();
Symbol 987 MovieClip Frame 130
this.segment = 4;
Symbol 987 MovieClip Frame 340
_root.go = true; _parent.play(); _root.soundManager_mc.stopSound("BreakfastIntroCinematic.wav"); stop();
Symbol 992 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyblue == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } };
Symbol 994 MovieClip Frame 1
onEnterFrame = function () { if ((_parent._parent.environment == "grounded") && (this.hitTest((((_parent._parent.Player1._x + _parent._parent.offsetX) * _parent._parent._xscale) / 100) + _parent._parent._x, ((((_parent._parent.Player1._y + _parent._parent.offsetY) + (_parent._parent.charHEIGHT * 0.5)) * _parent._parent._yscale) / 100) + _parent._parent._y, true))) { _parent._parent.TOUCHtile = true; } else { _parent._parent.TOUCHtile = false; } };
Instance of Symbol 992 MovieClip in Symbol 995 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 998 MovieClip Frame 1
if (_root.chains == undefined) { _root.chains = 1; } else { _root.chains = _root.chains + 1; } this.chainnumber = _root.chains; if (speedY == undefined) { speedY = 1; } if (yMIN == undefined) { yMIN = _y; } _root.World.attachMovie("ChainArt", "Chain" + this.chainnumber, _root.attachDEPTH, {_x:_x + _parent._x, _y:_y + _parent._y}); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World.attachMovie("ChainMask", "ChainMask" + this.chainnumber, _root.attachDEPTH, {_x:_parent._x, _y:_parent._y}); _root.attachDEPTH = _root.attachDEPTH + 1; _root.World["Chain" + this.chainnumber].setMask(_root.World["ChainMask" + this.chainnumber]); onEnterFrame = function () { engineloops = 1; while (engineloops <= _root.World.engineloops) { _y = (_y - this.speedY); if (((yMAX != undefined) && (yMAX <= yMIN)) && (_y <= yMAX)) { _y = yMIN; } else if (((yMAX != undefined) && (yMAX > yMIN)) && (_y >= yMAX)) { _y = yMIN; } engineloops++; } _root.World["Chain" + this.chainnumber]._y = _y + _parent._y; };
Symbol 999 MovieClip Frame 2
stop();
Symbol 1001 MovieClip Frame 1
onEnterFrame = function () { if (_root.World.Player1.keyred == this.keynumber) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = -1; wall.yMAX = 325; wall.yMIN = -325; wall._y = wall.yMIN; }
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = 1; wall.yMAX = -325; }
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = 1; wall.yMAX = -325; wall.yMIN = 325; wall._y = 0; }
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = -1; wall.yMAX = 325; wall.yMIN = -325; wall._y = 0; }
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = -1; wall.yMAX = 325; wall.yMIN = -325; wall._y = wall.yMIN; }
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = 1; wall.yMAX = -325; }
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = 1; wall.yMAX = -325; wall.yMIN = 325; wall._y = 0; }
Instance of Symbol 999 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) { wall.speedY = -1; wall.yMAX = 325; wall.yMIN = -325; wall._y = 0; }
Instance of Symbol 1001 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (enterFrame) { this.keynumber = 1; }
Symbol 1036 MovieClip Frame 5
_root.soundManager_mc.playSound("Hit_SlimeSplat8.wav", 0, 1);
Symbol 1036 MovieClip Frame 15
_parent.gotoAndStop("default");
Symbol 1055 MovieClip Frame 1
stopAllSounds(); _root.soundManager_mc.playSound("GiantMantis_Roar3.wav", 0, 1); _root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 2
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 4
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 8
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 11
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 12
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 15
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 16
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 18
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 19
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 22
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 26
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 30
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 32
_root.soundManager_mc.playSound("explosion.wav", 0, 1);
Symbol 1055 MovieClip Frame 69
_parent.onEnterFrame = undefined; stop();
Symbol 1056 MovieClip Frame 1
faceLENGTH = 225; location1X = this._x; location1Y = this._y; location2X = this._x + (faceLENGTH / 2); location2Y = this._y - Math.pow(Math.pow(faceLENGTH, 2) - Math.pow(faceLENGTH / 2, 2), 0.5); location3X = this._x - (faceLENGTH / 2); location3Y = this._y - Math.pow(Math.pow(faceLENGTH, 2) - Math.pow(faceLENGTH / 2, 2), 0.5); locationTIME = 8; faderate = 1; currentLOCATION = 1; startTIME = getTimer() / 1000; fireballs = 0; charALIVE = true; vulnerableDISTANCE = this.sensor._height / 2; hits = 0; hitsMAX = 7; active = false; onEnterFrame = function () { engineloopsMAX = _root.World.engineloops; if ((active == false) && (Math.abs(_parent.Player1._y - this._y) < 500)) { active = true; } if (active == true) { if ((((getTimer() / 1000) - startTIME) >= locationTIME) && (charALIVE == true)) { startTIME = getTimer() / 1000; currentLOCATION = currentLOCATION + 1; if (this[("location" + currentLOCATION) + "X"] == undefined) { currentLOCATION = 1; } } else if (charALIVE == false) { engineloopsMAX = 0; _root.World.Player1.keyblue = 1; } engineloops = 0; while (engineloops <= engineloopsMAX) { if (_x != this[("location" + currentLOCATION) + "X"]) { if (_alpha > 0) { _alpha = (_alpha - faderate); } else { _x = this[("location" + currentLOCATION) + "X"]; _y = this[("location" + currentLOCATION) + "Y"]; } } else if (_x == this[("location" + currentLOCATION) + "X"]) { if (_alpha < 100) { _alpha = (_alpha + faderate); } else if ((((Math.floor((getTimer() / 1000) - startTIME) % 3) == 0) && (lastshot != Math.floor((getTimer() / 1000) - startTIME))) && (charALIVE == true)) { fireballs = fireballs + 1; _root.World.attachMovie("Fireball", "Fireball" + fireballs, _root.attachDEPTH, {_x:_x, _y:_y}); _root.attachDEPTH = _root.attachDEPTH + 1; lastshot = Math.floor((getTimer() / 1000) - startTIME); } } engineloops++; } if (this.charALIVE == true) { rockcheck = _parent.Player1.rocksthrown - _root.World.rocksMAX; while (rockcheck <= _parent.Player1.rocksthrown) { if (((_parent["rock" + rockcheck].weapon == true) && (_parent["rock" + rockcheck] != undefined)) && (_parent["rock" + rockcheck].totalspeed > 5)) { this[("rock" + rockcheck) + "currentXDIS"] = _parent["rock" + rockcheck]._x - this._x; this[("rock" + rockcheck) + "currentYDIS"] = _parent["rock" + rockcheck]._y - this._y; this[("rock" + rockcheck) + "currentDIS"] = Math.pow(Math.pow((this[("rock" + rockcheck) + "currentXDIS"] + this[("rock" + rockcheck) + "oldXDIS"]) / 2, 2) + Math.pow((this[("rock" + rockcheck) + "currentYDIS"] + this[("rock" + rockcheck) + "oldYDIS"]) / 2, 2), 0.5); this[("rock" + rockcheck) + "avgDIS"] = Math.pow(Math.pow(this[("rock" + rockcheck) + "currentXDIS"], 2) + Math.pow(this[("rock" + rockcheck) + "currentYDIS"], 2), 0.5); if (((this[("rock" + rockcheck) + "currentDIS"] < vulnerableDISTANCE) || (this[("rock" + rockcheck) + "avgDIS"] < vulnerableDISTANCE)) || (Key.isDown(_root.kSKIPLEVEL))) { hits = hits + 1; if (hits > hitsMAX) { this.gotoAndStop("Dead"); this.charALIVE = false; } else { this.gotoAndStop("Hurt"); } _parent.attachMovie("puffexplosion", "puffexplosion" + rockcheck, _root.attachDEPTH, {_x:_parent["rock" + rockcheck]._x, _y:_parent["rock" + rockcheck]._y, _xscale:50, _yscale:50}); _root.attachDEPTH = _root.attachDEPTH + 1; _parent["rock" + rockcheck].removeMovieClip(); _root.soundManager_mc.playSound("B12sFire_Shot.wav", 0, 1); } this[("rock" + rockcheck) + "oldXDIS"] = this[("rock" + rockcheck) + "currentXDIS"]; this[("rock" + rockcheck) + "oldYDIS"] = this[("rock" + rockcheck) + "currentYDIS"]; this[("rock" + rockcheck) + "oldDIS"] = this[("rock" + rockcheck) + "currentDIS"]; } rockcheck++; } } } if (random(48) == 0) { _root.soundManager_mc.playSound("Claws_RatScurry_Loop.wav", 0, 999999999); } };
Instance of Symbol 81 MovieClip "sensor" in Symbol 1056 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 1056 MovieClip Frame 2
stop();
Symbol 1056 MovieClip Frame 3
stop();
Symbol 1056 MovieClip Frame 4
stop();
Instance of Symbol 1004 MovieClip "DeathBoundary" in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { _root.DeathBoundaryPresent = true; }
Instance of Symbol 419 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "Man, you're wasting both of our damn time. You gotta game to beat! -Christopher J. Rock"; }
Instance of Symbol 419 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { _visible = false; this.textcontent = "You're dead. On the last boss, you've jumped off a cliff. You son of a bitch. -Christopher J. Rock"; }
Instance of Symbol 456 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 456 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 456 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 456 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 456 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 456 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 456 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 396 MovieClip in Symbol 1057 MovieClip Frame 1
onClipEvent (load) { this.keynumber = 1; }
Symbol 1086 Button
on (release) { play(); }
Symbol 1121 Button
on (release) { play(); }
Symbol 1123 MovieClip Frame 1
this.segment = 1; _root.soundManager_mc.playSound("BreakfastEnding.wav", 0, 9999999999);
Instance of Symbol 81 MovieClip in Symbol 1123 MovieClip Frame 1
onClipEvent (load) { this._visible = false; this.skiparmed = false; } onClipEvent (enterFrame) { _parent.nextsegment = _parent.segment + 1; if (Key.isDown(_root.kSTART) && (this.skiparmed == true)) { _parent.gotoAndPlay("segment" + _parent.nextsegment); this.skiparmed = false; } else if (!Key.isDown(_root.kSTART)) { this.skiparmed = true; } }
Symbol 1123 MovieClip Frame 87
stop();
Symbol 1123 MovieClip Frame 88
this.segment = 2;
Symbol 1123 MovieClip Frame 190
stop();
Symbol 1123 MovieClip Frame 191
this.segment = 3;
Symbol 1123 MovieClip Frame 223
stop();
Symbol 1123 MovieClip Frame 224
this.segment = 4;
Symbol 1123 MovieClip Frame 417
stop();
Symbol 1123 MovieClip Frame 418
this.segment = 5;
Symbol 1123 MovieClip Frame 437
_root.go = true; _parent.play();

Library Items

Symbol 1 MovieClip [camShaker]
Symbol 2 MovieClip [ManagerSymbol]
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip [camera]Uses:3Used by:499 542 623 659 728 772 851 902 1057
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:7
Symbol 7 MovieClip [Bubble 1]Uses:6Used by:299
Symbol 8 GraphicUsed by:371 599 712 819 987 999 1123  Timeline
Symbol 9 GraphicUsed by:Timeline
Symbol 10 GraphicUsed by:14
Symbol 11 GraphicUsed by:14
Symbol 12 FontUsed by:13
Symbol 13 TextUses:12Used by:14
Symbol 14 MovieClipUses:10 11 13Used by:Timeline
Symbol 15 FontUsed by:16
Symbol 16 EditableTextUses:15Used by:Timeline
Symbol 1140 MovieClip [__Packages.com.managers.SoundManager]
Symbol 1141 MovieClip [__Packages.com.managers.SoundDataObject]
Symbol 1142 MovieClip [__Packages.com.utilities.StatTracker]
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:Timeline
Symbol 19 GraphicUsed by:24
Symbol 20 FontUsed by:21 219 504 509 510 511 512 513 514 518 520 522 523 543 544 545 546 549 550 552 554 624 625 626 627 630 631 633 635 660 661 662 663 666 667 669 671 716 729 730 731 732 735 736 738 740 773 774 775 776 779 780 782 784 852 853 854 855 858 859 861 863 903 904 905 906 909 910 912 914 1060 1061 1063 1065 1127 1128 1129 1130 1134 1135 1137 1139
Symbol 21 TextUses:20Used by:24
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:24
Symbol 24 MovieClipUses:19 21 23Used by:241  Timeline
Symbol 25 FontUsed by:26
Symbol 26 TextUses:25Used by:29 32
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:29 32
Symbol 29 MovieClipUses:26 28Used by:32
Symbol 30 GraphicUsed by:32
Symbol 31 GraphicUsed by:32
Symbol 32 ButtonUses:29 30 31 26 28Used by:Timeline
Symbol 33 GraphicUsed by:38
Symbol 34 GraphicUsed by:37
Symbol 35 GraphicUsed by:37
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:34 35 36Used by:38
Symbol 38 MovieClipUses:33 37Used by:39
Symbol 39 MovieClip [Rock 1]Uses:38Used by:299 506
Symbol 40 FontUsed by:41 42 178 179 186 187 188 401 515 516 517 519 547 548 551 553 555 556 628 629 632 634 664 665 668 670 733 734 737 739 777 778 781 783 856 857 860 862 907 908 911 913 1062 1064 1131 1132 1133 1136 1138
Symbol 41 EditableTextUses:40Used by:43
Symbol 42 EditableTextUses:40Used by:43
Symbol 43 MovieClip [Rock Number]Uses:41 42Used by:299
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClip [PlayerStart]Uses:44Used by:299
Symbol 46 GraphicUsed by:78
Symbol 47 GraphicUsed by:78
Symbol 48 GraphicUsed by:78
Symbol 49 GraphicUsed by:78
Symbol 50 GraphicUsed by:78
Symbol 51 GraphicUsed by:78
Symbol 52 GraphicUsed by:78
Symbol 53 GraphicUsed by:78
Symbol 54 GraphicUsed by:78
Symbol 55 GraphicUsed by:78
Symbol 56 GraphicUsed by:78
Symbol 57 GraphicUsed by:78
Symbol 58 GraphicUsed by:78
Symbol 59 GraphicUsed by:78
Symbol 60 GraphicUsed by:78
Symbol 61 GraphicUsed by:78
Symbol 62 GraphicUsed by:78
Symbol 63 GraphicUsed by:78
Symbol 64 GraphicUsed by:78
Symbol 65 GraphicUsed by:78
Symbol 66 GraphicUsed by:78
Symbol 67 GraphicUsed by:78
Symbol 68 GraphicUsed by:78
Symbol 69 GraphicUsed by:78
Symbol 70 GraphicUsed by:78
Symbol 71 GraphicUsed by:78
Symbol 72 GraphicUsed by:78
Symbol 73 GraphicUsed by:78
Symbol 74 GraphicUsed by:78
Symbol 75 GraphicUsed by:78
Symbol 76 GraphicUsed by:78
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77Used by:79
Symbol 79 MovieClip [Bomb 1]Uses:78Used by:299
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:96 134 147 177 371 494 536 540 541 599 712 819 987 1056 1123
Symbol 82 GraphicUsed by:96 242 371
Symbol 83 GraphicUsed by:96 242 987 1055
Symbol 84 GraphicUsed by:96 242
Symbol 85 GraphicUsed by:96 242 987 1055
Symbol 86 GraphicUsed by:96 242
Symbol 87 GraphicUsed by:96 242
Symbol 88 GraphicUsed by:96 242
Symbol 89 GraphicUsed by:96 242
Symbol 90 GraphicUsed by:96 242
Symbol 91 GraphicUsed by:96 242
Symbol 92 GraphicUsed by:96 242
Symbol 93 GraphicUsed by:96 242
Symbol 94 GraphicUsed by:96 242
Symbol 95 GraphicUsed by:96 242
Symbol 96 MovieClip [Explosion 1]Uses:81 82 83 84 85 86 87 88 89 90 91 92 93 94 95Used by:299
Symbol 97 GraphicUsed by:102
Symbol 98 GraphicUsed by:102
Symbol 99 GraphicUsed by:102
Symbol 100 GraphicUsed by:102
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClip [puffexplode]Uses:97 98 99 100 101Used by:103
Symbol 103 MovieClip [Bomber 1]Uses:102Used by:299
Symbol 104 GraphicUsed by:110 118 122 124 133
Symbol 105 GraphicUsed by:110
Symbol 106 GraphicUsed by:110
Symbol 107 GraphicUsed by:110
Symbol 108 GraphicUsed by:110
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:104 105 106 107 108 109Used by:134 536
Symbol 111 GraphicUsed by:118 122 124 133
Symbol 112 GraphicUsed by:118 122 124 133
Symbol 113 GraphicUsed by:118 122 124 133
Symbol 114 GraphicUsed by:118 122 124 133
Symbol 115 GraphicUsed by:118
Symbol 116 GraphicUsed by:118 124
Symbol 117 GraphicUsed by:118 124
Symbol 118 MovieClipUses:111 112 104 113 114 115 116 117Used by:134
Symbol 119 GraphicUsed by:122
Symbol 120 GraphicUsed by:122 124
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:111 112 104 113 114 119 120 121Used by:134
Symbol 123 GraphicUsed by:134 147 177
Symbol 124 MovieClipUses:111 112 104 113 114 117 120 116Used by:134
Symbol 125 GraphicUsed by:134 147 177
Symbol 126 GraphicUsed by:134 147 177 494
Symbol 127 GraphicUsed by:134
Symbol 128 GraphicUsed by:134
Symbol 129 GraphicUsed by:134 147 177 494
Symbol 130 GraphicUsed by:134
Symbol 131 GraphicUsed by:133
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:111 112 104 113 114 131 132Used by:134
Symbol 134 MovieClip [Attack Dog 1]Uses:110 81 118 122 123 124 125 126 127 128 129 130 133Used by:299
Symbol 135 GraphicUsed by:141 146 147 540
Symbol 136 GraphicUsed by:141 146 147 157 176 177 540 541
Symbol 137 GraphicUsed by:141 146 147 540
Symbol 138 GraphicUsed by:141 146 147 540
Symbol 139 GraphicUsed by:141 146 147 157 176 177 540 541
Symbol 140 GraphicUsed by:141 146 147 540
Symbol 141 MovieClipUses:135 136 137 138 139 140Used by:147
Symbol 142 GraphicUsed by:147
Symbol 143 GraphicUsed by:147
Symbol 144 GraphicUsed by:147
Symbol 145 GraphicUsed by:147
Symbol 146 MovieClipUses:135 136 137 138 139 140Used by:147
Symbol 147 MovieClip [Goomba 1]Uses:135 136 137 138 139 140 81 141 142 123 125 126 143 144 129 145 146Used by:299
Symbol 148 GraphicUsed by:157 177 541
Symbol 149 GraphicUsed by:157 176 177 541
Symbol 150 GraphicUsed by:157 176 177 541
Symbol 151 GraphicUsed by:157 176 177 541
Symbol 152 GraphicUsed by:157 176 177 541
Symbol 153 GraphicUsed by:157
Symbol 154 GraphicUsed by:157
Symbol 155 GraphicUsed by:157
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:148 149 136 150 151 139 152 153 154 155 156Used by:177
Symbol 158 GraphicUsed by:177
Symbol 159 GraphicUsed by:177
Symbol 160 GraphicUsed by:177
Symbol 161 GraphicUsed by:177
Symbol 162 GraphicUsed by:176
Symbol 163 GraphicUsed by:176
Symbol 164 GraphicUsed by:176
Symbol 165 GraphicUsed by:176
Symbol 166 GraphicUsed by:176
Symbol 167 GraphicUsed by:176
Symbol 168 GraphicUsed by:176
Symbol 169 GraphicUsed by:176
Symbol 170 GraphicUsed by:176
Symbol 171 GraphicUsed by:176
Symbol 172 GraphicUsed by:176
Symbol 173 GraphicUsed by:176
Symbol 174 GraphicUsed by:176
Symbol 175 GraphicUsed by:176
Symbol 176 MovieClipUses:162 149 136 150 151 139 152 163 164 165 166 167 168 169 170 171 172 173 174 175Used by:177
Symbol 177 MovieClip [Koopa Troopa 1]Uses:148 149 136 150 151 139 152 81 157 158 123 125 126 159 160 129 161 176Used by:299
Symbol 178 EditableTextUses:40Used by:180
Symbol 179 EditableTextUses:40Used by:180
Symbol 180 MovieClip [Point Number]Uses:178 179Used by:299
Symbol 181 BitmapUsed by:182
Symbol 182 GraphicUses:181Used by:183 495 506
Symbol 183 MovieClip [Point 1]Uses:182Used by:299
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:191
Symbol 186 EditableTextUses:40Used by:191
Symbol 187 EditableTextUses:40Used by:191
Symbol 188 TextUses:40Used by:191
Symbol 189 FontUsed by:190
Symbol 190 EditableTextUses:189Used by:191
Symbol 191 MovieClip [textbubble]Uses:185 186 187 188 190Used by:299
Symbol 192 GraphicUsed by:194
Symbol 193 GraphicUsed by:194
Symbol 194 MovieClipUses:192 193Used by:195
Symbol 195 MovieClip [Fireball]Uses:194Used by:299
Symbol 196 GraphicUsed by:206
Symbol 197 GraphicUsed by:206
Symbol 198 GraphicUsed by:206
Symbol 199 GraphicUsed by:206
Symbol 200 GraphicUsed by:206
Symbol 201 GraphicUsed by:206
Symbol 202 GraphicUsed by:206
Symbol 203 GraphicUsed by:206
Symbol 204 GraphicUsed by:206
Symbol 205 GraphicUsed by:206
Symbol 206 MovieClip [CrumblingBox]Uses:196 197 198 199 200 201 202 203 204 205Used by:299
Symbol 207 GraphicUsed by:215
Symbol 208 GraphicUsed by:215
Symbol 209 GraphicUsed by:215
Symbol 210 GraphicUsed by:215
Symbol 211 GraphicUsed by:215
Symbol 212 GraphicUsed by:215
Symbol 213 GraphicUsed by:215
Symbol 214 GraphicUsed by:215
Symbol 215 MovieClip [BomberExplosion]Uses:207 208 209 210 211 212 213 214Used by:299
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:241
Symbol 218 GraphicUsed by:240
Symbol 219 EditableTextUses:20Used by:240
Symbol 220 BitmapUsed by:221
Symbol 221 GraphicUses:220Used by:240
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:240
Symbol 224 BitmapUsed by:225
Symbol 225 GraphicUses:224Used by:240
Symbol 226 BitmapUsed by:227
Symbol 227 GraphicUses:226Used by:240
Symbol 228 BitmapUsed by:229
Symbol 229 GraphicUses:228Used by:240
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:240
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:240
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:240
Symbol 236 BitmapUsed by:237
Symbol 237 GraphicUses:236Used by:240
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:240
Symbol 240 MovieClipUses:218 219 221 223 225 227 229 231 233 235 237 239Used by:241  Timeline
Symbol 241 MovieClip [deadalert]Uses:24 217 240Used by:299
Symbol 242 MovieClip [puffexplosion]Uses:82 83 84 85 86 87 88 89 90 91 92 93 94 95Used by:299
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:245
Symbol 245 MovieClip [ChainArt]Uses:244Used by:299
Symbol 246 GraphicUsed by:247
Symbol 247 MovieClip [ChainMask]Uses:246Used by:299
Symbol 248 BitmapUsed by:249
Symbol 249 GraphicUses:248Used by:268
Symbol 250 BitmapUsed by:251
Symbol 251 GraphicUses:250Used by:268
Symbol 252 BitmapUsed by:253
Symbol 253 GraphicUses:252Used by:268
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:268
Symbol 256 BitmapUsed by:257
Symbol 257 GraphicUses:256Used by:268
Symbol 258 BitmapUsed by:259
Symbol 259 GraphicUses:258Used by:268
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:268
Symbol 262 BitmapUsed by:263
Symbol 263 GraphicUses:262Used by:268
Symbol 264 BitmapUsed by:265
Symbol 265 GraphicUses:264Used by:268
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:266Used by:268
Symbol 268 MovieClip [Sparkle]Uses:249 251 253 255 257 259 261 263 265 267Used by:299
Symbol 269 Sound [dogBark]Used by:299
Symbol 270 Sound [dogGrowl]Used by:299
Symbol 271 Sound [Claws_RatScurry_Loop.wav]Used by:299
Symbol 272 Sound [Explo_Small_Bomb3.wav]Used by:299
Symbol 273 Sound [explosion.wav]Used by:299
Symbol 274 Sound [GiantBeetle_Death2.wav]Used by:299
Symbol 275 Sound [GiantMantis_Death.wav]Used by:299
Symbol 276 Sound [GiantMantis_Roar3.wav]Used by:299
Symbol 277 Sound [GiantMantis_Spit.wav]Used by:299
Symbol 278 Sound [BreakfastCinematic.wav]Used by:299
Symbol 279 Sound [BreakfastEnding.wav]Used by:299
Symbol 280 Sound [BreakfastIntroCinematic.wav]Used by:299
Symbol 281 Sound [BreakfastInGame1.wav]Used by:299
Symbol 282 Sound [BreakfastInGame2.wav]Used by:299
Symbol 283 Sound [BreakfastinGame3.wav]Used by:299
Symbol 284 Sound [BreakfastInGame4.wav]Used by:299
Symbol 285 Sound [BreakfastBoss.wav]Used by:299
Symbol 286 Sound [Hit_SlimeSplat8.wav]Used by:299
Symbol 287 Sound [jump2.wav]Used by:299
Symbol 288 Sound [Beep_Error06.wavsound]Used by:299
Symbol 289 Sound [Cartoon_OpenMagicBag2.wav]Used by:299
Symbol 290 Sound [get cigs.wav]Used by:299
Symbol 291 Sound [B12sFire_Shot.wav]Used by:299
Symbol 292 Sound [Pickup_Key10.wav]Used by:299
Symbol 293 Sound [Pickup_bombs.wav]Used by:299
Symbol 294 Sound [bender_2xjump.aiff]Used by:299
Symbol 295 Sound [throw 1]Used by:299
Symbol 296 Sound [jump 1]Used by:299
Symbol 297 Sound [bender_pickup.aiff]Used by:299
Symbol 298 Sound [Cartoon_BombFall_Whistle1.wav]Used by:299
Symbol 299 MovieClipUses:7 39 43 45 79 96 103 134 147 177 180 183 191 195 206 215 241 242 245 247 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298Used by:Timeline
Symbol 300 BitmapUsed by:301 508 521 1059
Symbol 301 GraphicUses:300Used by:Timeline
Symbol 302 FontUsed by:303
Symbol 303 TextUses:302Used by:Timeline
Symbol 304 BitmapUsed by:305
Symbol 305 GraphicUses:304Used by:Timeline
Symbol 306 GraphicUsed by:371 599 819 987 1123
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:371
Symbol 309 GraphicUsed by:371
Symbol 310 FontUsed by:311 330 331 341 346 352 576 577 583 587 590 595 692 699 705 799 806 809 814 937 944 956 1080 1087 1091 1095 1098 1100 1103 1114 1119 1120
Symbol 311 TextUses:310Used by:371
Symbol 312 ShapeTweeningUsed by:371
Symbol 313 GraphicUsed by:371 599 712 819 987 1123
Symbol 314 GraphicUsed by:326 371 580 599 712 819
Symbol 315 GraphicUsed by:326 371 580 599 712 819
Symbol 316 GraphicUsed by:326 371 469 471 477 479 483 487 493 580 599 712 819 943 952 987 1082 1097 1109 1112 1123
Symbol 317 GraphicUsed by:326 371 469 471 477 479 483 487 493 580 599 712 819 943 952 987 1082 1097 1109 1112 1123
Symbol 318 GraphicUsed by:326 371 469 471 483 487 493 580 599 712 819 943 952 987 1082 1097 1109 1112 1123
Symbol 319 GraphicUsed by:326 371 580 599 712 819
Symbol 320 GraphicUsed by:326 371 580 599 712 819
Symbol 321 GraphicUsed by:326 371 469 471 477 479 483 487 493 580 599 712 819 943 952 987 1082 1097 1109 1112 1123
Symbol 322 GraphicUsed by:326 371 469 471 477 479 483 487 493 580 599 712 819 943 952 987 1082 1097 1109 1123
Symbol 323 GraphicUsed by:371 471 599 712 819 987 1123
Symbol 324 GraphicUsed by:371 471 599 712 819 987 1123
Symbol 325 ShapeTweeningUsed by:371
Symbol 326 MovieClipUses:314 315 316 317 318 319 320 321 322Used by:371
Symbol 327 ShapeTweeningUsed by:371
Symbol 328 ShapeTweeningUsed by:371
Symbol 329 ShapeTweeningUsed by:371
Symbol 330 TextUses:310Used by:333 1086
Symbol 331 TextUses:310Used by:333 1086
Symbol 332 GraphicUsed by:333 1086 1121
Symbol 333 ButtonUses:330 331 332Used by:371 599 712 819 987 1123
Symbol 334 ShapeTweeningUsed by:371
Symbol 335 GraphicUsed by:371 1123
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:371
Symbol 338 GraphicUsed by:339
Symbol 339 MovieClipUses:338Used by:371
Symbol 340 ShapeTweeningUsed by:371
Symbol 341 TextUses:310Used by:371
Symbol 342 ShapeTweeningUsed by:371
Symbol 343 ShapeTweeningUsed by:371
Symbol 344 ShapeTweeningUsed by:371
Symbol 345 GraphicUsed by:371
Symbol 346 TextUses:310Used by:371
Symbol 347 ShapeTweeningUsed by:371
Symbol 348 ShapeTweeningUsed by:371
Symbol 349 ShapeTweeningUsed by:371
Symbol 350 ShapeTweeningUsed by:371
Symbol 351 ShapeTweeningUsed by:371
Symbol 352 TextUses:310Used by:371
Symbol 353 ShapeTweeningUsed by:371
Symbol 354 ShapeTweeningUsed by:371
Symbol 355 GraphicUsed by:371
Symbol 356 BitmapUsed by:357
Symbol 357 GraphicUses:356Used by:371
Symbol 358 GraphicUsed by:371
Symbol 359 GraphicUsed by:371
Symbol 360 GraphicUsed by:371
Symbol 361 GraphicUsed by:371
Symbol 362 GraphicUsed by:371
Symbol 363 GraphicUsed by:371
Symbol 364 GraphicUsed by:371
Symbol 365 GraphicUsed by:371
Symbol 366 GraphicUsed by:371
Symbol 367 GraphicUsed by:371
Symbol 368 GraphicUsed by:371
Symbol 369 GraphicUsed by:371
Symbol 370 ShapeTweeningUsed by:371
Symbol 371 MovieClipUses:8 306 308 309 311 312 81 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 333 334 335 337 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 82 357 358 359 360 361 362 363 364 365 366 367 368 369 370Used by:Timeline
Symbol 372 BitmapUsed by:373
Symbol 373 GraphicUses:372Used by:Timeline
Symbol 374 GraphicUsed by:378 998
Symbol 375 GraphicUsed by:376
Symbol 376 MovieClipUses:375Used by:378
Symbol 377 GraphicUsed by:378
Symbol 378 MovieClipUses:374 376 377Used by:499
Symbol 379 GraphicUsed by:384
Symbol 380 GraphicUsed by:381
Symbol 381 MovieClipUses:380Used by:384
Symbol 382 GraphicUsed by:383
Symbol 383 MovieClipUses:382Used by:384
Symbol 384 MovieClipUses:379 381 383Used by:499
Symbol 385 BitmapUsed by:389
Symbol 386 BitmapUsed by:389
Symbol 387 BitmapUsed by:389
Symbol 388 BitmapUsed by:389
Symbol 389 GraphicUses:385 386 387 388Used by:499
Symbol 390 GraphicUsed by:393
Symbol 391 GraphicUsed by:393 396
Symbol 392 GraphicUsed by:393
Symbol 393 MovieClipUses:390 391 392Used by:499 623 659 772 851 902
Symbol 394 GraphicUsed by:396
Symbol 395 GraphicUsed by:396
Symbol 396 MovieClipUses:394 391 395Used by:499 542 623 659 772 851 902 1057
Symbol 397 GraphicUsed by:402 506
Symbol 398 GraphicUsed by:402
Symbol 399 GraphicUsed by:402
Symbol 400 GraphicUsed by:402
Symbol 401 EditableTextUses:40Used by:402
Symbol 402 MovieClipUses:397 398 399 400 401Used by:499 542 623 659 728 772 851 902
Symbol 403 GraphicUsed by:412
Symbol 404 GraphicUsed by:412
Symbol 405 GraphicUsed by:412
Symbol 406 GraphicUsed by:412
Symbol 407 GraphicUsed by:412
Symbol 408 GraphicUsed by:412
Symbol 409 GraphicUsed by:412
Symbol 410 GraphicUsed by:412
Symbol 411 GraphicUsed by:412
Symbol 412 MovieClipUses:403 404 405 406 407 408 409 410 411Used by:499 542 623 659 728 772 851 902 1057
Symbol 413 GraphicUsed by:418
Symbol 414 ShapeTweeningUsed by:418
Symbol 415 GraphicUsed by:418
Symbol 416 ShapeTweeningUsed by:418
Symbol 417 GraphicUsed by:418
Symbol 418 MovieClipUses:413 414 415 416 417Used by:419
Symbol 419 MovieClipUses:418Used by:499 542 623 659 728 772 851 902 1057
Symbol 420 BitmapUsed by:421
Symbol 421 GraphicUses:420Used by:456
Symbol 422 BitmapUsed by:423
Symbol 423 GraphicUses:422Used by:456
Symbol 424 BitmapUsed by:425
Symbol 425 GraphicUses:424Used by:456
Symbol 426 BitmapUsed by:427
Symbol 427 GraphicUses:426Used by:456
Symbol 428 BitmapUsed by:429
Symbol 429 GraphicUses:428Used by:456
Symbol 430 BitmapUsed by:431
Symbol 431 GraphicUses:430Used by:456
Symbol 432 BitmapUsed by:433
Symbol 433 GraphicUses:432Used by:456
Symbol 434 BitmapUsed by:435
Symbol 435 GraphicUses:434Used by:456
Symbol 436 BitmapUsed by:437
Symbol 437 GraphicUses:436Used by:456
Symbol 438 BitmapUsed by:439
Symbol 439 GraphicUses:438Used by:456
Symbol 440 BitmapUsed by:441
Symbol 441 GraphicUses:440Used by:456
Symbol 442 BitmapUsed by:443
Symbol 443 GraphicUses:442Used by:456
Symbol 444 BitmapUsed by:445
Symbol 445 GraphicUses:444Used by:456
Symbol 446 BitmapUsed by:447
Symbol 447 GraphicUses:446Used by:456
Symbol 448 BitmapUsed by:449
Symbol 449 GraphicUses:448Used by:456
Symbol 450 BitmapUsed by:451
Symbol 451 GraphicUses:450Used by:456
Symbol 452 BitmapUsed by:453
Symbol 453 GraphicUses:452Used by:456
Symbol 454 BitmapUsed by:455
Symbol 455 GraphicUses:454Used by:456
Symbol 456 MovieClipUses:421 423 425 427 429 431 433 435 437 439 441 443 445 447 449 451 453 455Used by:499 623 659 772 851 902 1057
Symbol 457 BitmapUsed by:458
Symbol 458 GraphicUses:457Used by:459
Symbol 459 MovieClipUses:458Used by:499 542 623 659 772 851 902 1057
Symbol 460 GraphicUsed by:469 479 483 487 493
Symbol 461 GraphicUsed by:469 479 483 493
Symbol 462 GraphicUsed by:469 471 477 479 483 487 493
Symbol 463 GraphicUsed by:469 471 477 479 483 487 493
Symbol 464 GraphicUsed by:469 471 477 479 483 487 493
Symbol 465 GraphicUsed by:469 477 479 483 493
Symbol 466 GraphicUsed by:469 483 493
Symbol 467 GraphicUsed by:469 493
Symbol 468 GraphicUsed by:469 477 479 483 487 493
Symbol 469 MovieClipUses:460 461 316 462 463 321 317 318 464 465 466 467 468 322Used by:494
Symbol 470 GraphicUsed by:471 493
Symbol 471 MovieClipUses:462 463 316 317 318 464 470 322 321 323 324Used by:494
Symbol 472 GraphicUsed by:477
Symbol 473 GraphicUsed by:477
Symbol 474 GraphicUsed by:477
Symbol 475 GraphicUsed by:477
Symbol 476 GraphicUsed by:477
Symbol 477 MovieClipUses:462 463 316 321 317 472 464 473 465 468 322 474 475 476Used by:494
Symbol 478 GraphicUsed by:479
Symbol 479 MovieClipUses:460 461 316 462 463 321 317 465 464 468 322 478Used by:494
Symbol 480 GraphicUsed by:483
Symbol 481 GraphicUsed by:483
Symbol 482 GraphicUsed by:483
Symbol 483 MovieClipUses:460 462 461 317 318 464 468 322 463 465 480 466 321 316 481 482Used by:494
Symbol 484 GraphicUsed by:487
Symbol 485 GraphicUsed by:487
Symbol 486 GraphicUsed by:487
Symbol 487 MovieClipUses:460 484 316 462 463 321 485 318 464 317 486 468 322Used by:494
Symbol 488 GraphicUsed by:494
Symbol 489 GraphicUsed by:494
Symbol 490 GraphicUsed by:494
Symbol 491 GraphicUsed by:493
Symbol 492 GraphicUsed by:493
Symbol 493 MovieClipUses:460 461 316 317 318 464 467 465 466 468 322 462 463 321 491 470 492Used by:494
Symbol 494 MovieClipUses:469 81 471 477 479 483 487 126 488 489 129 490 493Used by:499 542 623 659 728 772 851 902 1057
Symbol 495 MovieClipUses:182Used by:499 542 623 659 728 772 851 902
Symbol 496 GraphicUsed by:497 498
Symbol 497 MovieClipUses:496Used by:498
Symbol 498 MovieClipUses:496 497Used by:499 542 623 659 728 772 851 902 1057
Symbol 499 MovieClipUses:378 384 389 393 396 402 412 419 456 459 494 495 498 4Used by:Timeline
Symbol 500 GraphicUsed by:506
Symbol 501 FontUsed by:502
Symbol 502 EditableTextUses:501Used by:503
Symbol 503 MovieClipUses:502Used by:506
Symbol 504 EditableTextUses:20Used by:505
Symbol 505 MovieClipUses:504Used by:506
Symbol 506 MovieClipUses:500 503 182 397 39 505Used by:Timeline
Symbol 507 BitmapUsed by:508 1126
Symbol 508 GraphicUses:507 300Used by:Timeline
Symbol 509 EditableTextUses:20Used by:Timeline
Symbol 510 EditableTextUses:20Used by:Timeline
Symbol 511 EditableTextUses:20Used by:Timeline
Symbol 512 EditableTextUses:20Used by:Timeline
Symbol 513 EditableTextUses:20Used by:Timeline
Symbol 514 EditableTextUses:20Used by:Timeline
Symbol 515 EditableTextUses:40Used by:Timeline
Symbol 516 EditableTextUses:40Used by:Timeline
Symbol 517 EditableTextUses:40Used by:Timeline
Symbol 518 EditableTextUses:20Used by:Timeline
Symbol 519 EditableTextUses:40Used by:Timeline
Symbol 520 EditableTextUses:20Used by:Timeline
Symbol 521 GraphicUses:300Used by:Timeline
Symbol 522 TextUses:20Used by:Timeline
Symbol 523 TextUses:20Used by:Timeline
Symbol 524 BitmapUsed by:525
Symbol 525 GraphicUses:524Used by:Timeline
Symbol 526 GraphicUsed by:529
Symbol 527 GraphicUsed by:528
Symbol 528 MovieClipUses:527Used by:529
Symbol 529 MovieClipUses:526 528Used by:542
Symbol 530 GraphicUsed by:533
Symbol 531 GraphicUsed by:532
Symbol 532 MovieClipUses:531Used by:533
Symbol 533 MovieClipUses:530 532Used by:542
Symbol 534 GraphicUsed by:535
Symbol 535 MovieClipUses:534Used by:542
Symbol 536 MovieClipUses:110 81Used by:542 659 728 851 902
Symbol 537 BitmapUsed by:539
Symbol 538 BitmapUsed by:539
Symbol 539 GraphicUses:537 538Used by:542
Symbol 540 MovieClipUses:135 136 137 138 139 140 81Used by:542 623 902
Symbol 541 MovieClipUses:148 149 136 150 151 139 152 81Used by:542 623 851 902
Symbol 542 MovieClipUses:529 533 535 536 539 396 402 412 419 459 494 540 541 495 498 4Used by:Timeline
Symbol 543 EditableTextUses:20Used by:Timeline
Symbol 544 EditableTextUses:20Used by:Timeline
Symbol 545 EditableTextUses:20Used by:Timeline
Symbol 546 EditableTextUses:20Used by:Timeline
Symbol 547 EditableTextUses:40Used by:Timeline
Symbol 548 EditableTextUses:40Used by:Timeline
Symbol 549 EditableTextUses:20Used by:Timeline
Symbol 550 EditableTextUses:20Used by:Timeline
Symbol 551 EditableTextUses:40Used by:Timeline
Symbol 552 EditableTextUses:20Used by:Timeline
Symbol 553 EditableTextUses:40Used by:Timeline
Symbol 554 EditableTextUses:20Used by:Timeline
Symbol 555 TextUses:40Used by:Timeline
Symbol 556 TextUses:40Used by:Timeline
Symbol 557 BitmapUsed by:558
Symbol 558 GraphicUses:557Used by:599 1123
Symbol 559 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 560 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 561 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 562 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 563 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 564 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 565 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 566 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 567 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 568 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 569 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 570 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 571 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 572 GraphicUsed by:573 585 592 1066 1083 1099 1123
Symbol 573 MovieClipUses:559 560 561 562 563 564 565 566 567 568 569 570 571 572Used by:599
Symbol 574 GraphicUsed by:599 712 819 987
Symbol 575 GraphicUsed by:599 1123
Symbol 576 TextUses:310Used by:599
Symbol 577 TextUses:310Used by:599
Symbol 578 ShapeTweeningUsed by:599
Symbol 579 ShapeTweeningUsed by:599
Symbol 580 MovieClipUses:314 315 316 317 318 319 320 321 322Used by:599 712 819
Symbol 581 ShapeTweeningUsed by:599
Symbol 582 ShapeTweeningUsed by:599
Symbol 583 TextUses:310Used by:599
Symbol 584 ShapeTweeningUsed by:599
Symbol 585 MovieClipUses:559 560 561 562 563 564 565 566 567 568 569 570 571 572Used by:599
Symbol 586 ShapeTweeningUsed by:599
Symbol 587 TextUses:310Used by:599
Symbol 588 ShapeTweeningUsed by:599
Symbol 589 ShapeTweeningUsed by:599
Symbol 590 TextUses:310Used by:599
Symbol 591 ShapeTweeningUsed by:599
Symbol 592 MovieClipUses:559 560 561 562 563 564 565 570 566 569 567 568 571 572Used by:599
Symbol 593 GraphicUsed by:599
Symbol 594 ShapeTweeningUsed by:599
Symbol 595 TextUses:310Used by:599
Symbol 596 ShapeTweeningUsed by:599
Symbol 597 ShapeTweeningUsed by:599
Symbol 598 ShapeTweeningUsed by:599
Symbol 599 MovieClipUses:8 306 558 573 314 315 316 317 318 319 320 321 322 574 575 576 577 578 81 323 313 324 579 580 581 582 333 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598Used by:Timeline
Symbol 600 BitmapUsed by:601
Symbol 601 GraphicUses:600Used by:Timeline
Symbol 602 GraphicUsed by:605
Symbol 603 GraphicUsed by:604
Symbol 604 MovieClipUses:603Used by:605
Symbol 605 MovieClipUses:602 604Used by:623
Symbol 606 GraphicUsed by:613
Symbol 607 GraphicUsed by:608
Symbol 608 MovieClipUses:607Used by:613
Symbol 609 GraphicUsed by:610
Symbol 610 MovieClip [Crumbling 1]Uses:609Used by:613 752 831 875 995
Symbol 611 GraphicUsed by:612
Symbol 612 MovieClipUses:611Used by:613
Symbol 613 MovieClipUses:606 608 610 612Used by:623
Symbol 614 GraphicUsed by:615
Symbol 615 MovieClipUses:614Used by:623
Symbol 616 BitmapUsed by:622
Symbol 617 BitmapUsed by:622
Symbol 618 BitmapUsed by:622
Symbol 619 BitmapUsed by:622
Symbol 620 BitmapUsed by:622
Symbol 621 BitmapUsed by:622
Symbol 622 GraphicUses:616 617 618 619 620 621Used by:623
Symbol 623 MovieClipUses:605 613 615 495 622 419 456 459 393 396 402 412 498 494 541 540 4Used by:Timeline
Symbol 624 EditableTextUses:20Used by:Timeline
Symbol 625 EditableTextUses:20Used by:Timeline
Symbol 626 EditableTextUses:20Used by:Timeline
Symbol 627 EditableTextUses:20Used by:Timeline
Symbol 628 EditableTextUses:40Used by:Timeline
Symbol 629 EditableTextUses:40Used by:Timeline
Symbol 630 EditableTextUses:20Used by:Timeline
Symbol 631 EditableTextUses:20Used by:Timeline
Symbol 632 EditableTextUses:40Used by:Timeline
Symbol 633 EditableTextUses:20Used by:Timeline
Symbol 634 EditableTextUses:40Used by:Timeline
Symbol 635 EditableTextUses:20Used by:Timeline
Symbol 636 BitmapUsed by:637
Symbol 637 GraphicUses:636Used by:Timeline
Symbol 638 GraphicUsed by:641
Symbol 639 GraphicUsed by:640
Symbol 640 MovieClipUses:639Used by:641
Symbol 641 MovieClipUses:638 640Used by:659
Symbol 642 GraphicUsed by:647
Symbol 643 GraphicUsed by:644
Symbol 644 MovieClipUses:643Used by:647
Symbol 645 GraphicUsed by:646
Symbol 646 MovieClipUses:645Used by:647
Symbol 647 MovieClipUses:642 644 646Used by:659
Symbol 648 GraphicUsed by:649
Symbol 649 MovieClipUses:648Used by:659
Symbol 650 BitmapUsed by:658
Symbol 651 BitmapUsed by:658
Symbol 652 BitmapUsed by:658
Symbol 653 BitmapUsed by:658
Symbol 654 BitmapUsed by:658
Symbol 655 BitmapUsed by:658
Symbol 656 BitmapUsed by:658
Symbol 657 BitmapUsed by:658
Symbol 658 GraphicUses:650 651 652 653 654 655 656 657Used by:659
Symbol 659 MovieClipUses:641 647 649 658 419 456 459 412 536 495 396 393 494 402 498 4Used by:Timeline
Symbol 660 EditableTextUses:20Used by:Timeline
Symbol 661 EditableTextUses:20Used by:Timeline
Symbol 662 EditableTextUses:20Used by:Timeline
Symbol 663 EditableTextUses:20Used by:Timeline
Symbol 664 EditableTextUses:40Used by:Timeline
Symbol 665 EditableTextUses:40Used by:Timeline
Symbol 666 EditableTextUses:20Used by:Timeline
Symbol 667 EditableTextUses:20Used by:Timeline
Symbol 668 EditableTextUses:40Used by:Timeline
Symbol 669 EditableTextUses:20Used by:Timeline
Symbol 670 EditableTextUses:40Used by:Timeline
Symbol 671 EditableTextUses:20Used by:Timeline
Symbol 672 GraphicUsed by:712
Symbol 673 BitmapUsed by:674
Symbol 674 GraphicUses:673Used by:712
Symbol 675 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 676 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 677 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 678 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 679 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 680 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 681 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 682 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 683 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 684 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 685 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 686 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 687 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 688 GraphicUsed by:690 703 712 1072 1089 1123
Symbol 689 GraphicUsed by:690 712 1072 1089
Symbol 690 MovieClipUses:675 676 677 678 679 680 681 682 683 684 685 686 687 688 689Used by:712
Symbol 691 GraphicUsed by:712
Symbol 692 TextUses:310Used by:712
Symbol 693 GraphicUsed by:712
Symbol 694 ShapeTweeningUsed by:712
Symbol 695 ShapeTweeningUsed by:712
Symbol 696 ShapeTweeningUsed by:712
Symbol 697 GraphicUsed by:712
Symbol 698 ShapeTweeningUsed by:712
Symbol 699 TextUses:310Used by:712
Symbol 700 ShapeTweeningUsed by:712
Symbol 701 GraphicUsed by:712 987
Symbol 702 ShapeTweeningUsed by:712
Symbol 703 MovieClipUses:675 676 677 678 679 680 681 682 683 684 685 686 687 688Used by:712
Symbol 704 ShapeTweeningUsed by:712
Symbol 705 TextUses:310Used by:712
Symbol 706 ShapeTweeningUsed by:712
Symbol 707 ShapeTweeningUsed by:712
Symbol 708 ShapeTweeningUsed by:712
Symbol 709 ShapeTweeningUsed by:712
Symbol 710 GraphicUsed by:712
Symbol 711 ShapeTweeningUsed by:712
Symbol 712 MovieClipUses:8 672 674 690 314 315 316 317 318 319 320 321 322 574 691 692 693 694 81 323 313 695 324 696 580 697 698 333 675 676 677 678 679 680 681 682 683 684 685 686 687 688 699 700 701 689 702 703 704 705 706 707 708 709 710 711Used by:Timeline
Symbol 713 BitmapUsed by:714
Symbol 714 GraphicUses:713Used by:Timeline
Symbol 715 FontUsed by:716
Symbol 716 TextUses:715 20Used by:Timeline
Symbol 717 GraphicUsed by:718
Symbol 718 MovieClipUses:717Used by:728
Symbol 719 GraphicUsed by:722
Symbol 720 GraphicUsed by:721
Symbol 721 MovieClipUses:720Used by:722
Symbol 722 MovieClipUses:719 721Used by:728
Symbol 723 GraphicUsed by:724
Symbol 724 MovieClipUses:723Used by:728
Symbol 725 BitmapUsed by:727
Symbol 726 BitmapUsed by:727
Symbol 727 GraphicUses:725 726Used by:728
Symbol 728 MovieClipUses:718 722 724 727 402 412 419 494 536 495 498 4Used by:Timeline
Symbol 729 EditableTextUses:20Used by:Timeline
Symbol 730 EditableTextUses:20Used by:Timeline
Symbol 731 EditableTextUses:20Used by:Timeline
Symbol 732 EditableTextUses:20Used by:Timeline
Symbol 733 EditableTextUses:40Used by:Timeline
Symbol 734 EditableTextUses:40Used by:Timeline
Symbol 735 EditableTextUses:20Used by:Timeline
Symbol 736 EditableTextUses:20Used by:Timeline
Symbol 737 EditableTextUses:40Used by:Timeline
Symbol 738 EditableTextUses:20Used by:Timeline
Symbol 739 EditableTextUses:40Used by:Timeline
Symbol 740 EditableTextUses:20Used by:Timeline
Symbol 741 BitmapUsed by:742
Symbol 742 GraphicUses:741Used by:Timeline
Symbol 743 GraphicUsed by:746
Symbol 744 GraphicUsed by:745
Symbol 745 MovieClipUses:744Used by:746
Symbol 746 MovieClipUses:743 745Used by:772
Symbol 747 GraphicUsed by:752
Symbol 748 GraphicUsed by:749
Symbol 749 MovieClipUses:748Used by:752
Symbol 750 GraphicUsed by:751
Symbol 751 MovieClipUses:750Used by:752
Symbol 752 MovieClipUses:747 749 751 610Used by:772
Symbol 753 GraphicUsed by:754
Symbol 754 MovieClipUses:753Used by:772
Symbol 755 BitmapUsed by:771
Symbol 756 BitmapUsed by:771
Symbol 757 BitmapUsed by:771
Symbol 758 BitmapUsed by:771
Symbol 759 BitmapUsed by:771
Symbol 760 BitmapUsed by:771
Symbol 761 BitmapUsed by:771
Symbol 762 BitmapUsed by:771
Symbol 763 BitmapUsed by:771
Symbol 764 BitmapUsed by:771
Symbol 765 BitmapUsed by:771
Symbol 766 BitmapUsed by:771
Symbol 767 BitmapUsed by:771
Symbol 768 BitmapUsed by:771
Symbol 769 BitmapUsed by:771
Symbol 770 BitmapUsed by:771
Symbol 771 GraphicUses:755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770Used by:772
Symbol 772 MovieClipUses:746 752 754 771 412 419 456 459 494 402 495 396 393 498 4Used by:Timeline
Symbol 773 EditableTextUses:20Used by:Timeline
Symbol 774 EditableTextUses:20Used by:Timeline
Symbol 775 EditableTextUses:20Used by:Timeline
Symbol 776 EditableTextUses:20Used by:Timeline
Symbol 777 EditableTextUses:40Used by:Timeline
Symbol 778 EditableTextUses:40Used by:Timeline
Symbol 779 EditableTextUses:20Used by:Timeline
Symbol 780 EditableTextUses:20Used by:Timeline
Symbol 781 EditableTextUses:40Used by:Timeline
Symbol 782 EditableTextUses:20Used by:Timeline
Symbol 783 EditableTextUses:40Used by:Timeline
Symbol 784 EditableTextUses:20Used by:Timeline
Symbol 785 BitmapUsed by:786
Symbol 786 GraphicUses:785Used by:819
Symbol 787 GraphicUsed by:797 805 813 817 819 1071 1090 1123
Symbol 788 GraphicUsed by:797 805 813 817 819 1071 1090 1123
Symbol 789 GraphicUsed by:797 805 813 817 819 1071 1090 1123
Symbol 790 GraphicUsed by:797 805 813 817 819
Symbol 791 GraphicUsed by:797 805 813 817 819
Symbol 792 GraphicUsed by:797 805 813 817 819 1071 1090 1123
Symbol 793 GraphicUsed by:797 805 813 817 819
Symbol 794 GraphicUsed by:797 805 813 817 819
Symbol 795 GraphicUsed by:797 805 813 817 819 1071 1090 1123
Symbol 796 GraphicUsed by:797 805 813 817 819 1071 1090 1123
Symbol 797 MovieClipUses:787 788 789 790 791 792 793 794 795 796Used by:819
Symbol 798 GraphicUsed by:819
Symbol 799 TextUses:310Used by:819
Symbol 800 ShapeTweeningUsed by:819
Symbol 801 ShapeTweeningUsed by:819
Symbol 802 ShapeTweeningUsed by:819
Symbol 803 ShapeTweeningUsed by:819
Symbol 804 ShapeTweeningUsed by:819
Symbol 805 MovieClipUses:787 788 789 790 791 792 793 794 795 796Used by:819
Symbol 806 TextUses:310Used by:819
Symbol 807 ShapeTweeningUsed by:819
Symbol 808 ShapeTweeningUsed by:819
Symbol 809 TextUses:310Used by:819
Symbol 810 ShapeTweeningUsed by:819
Symbol 811 ShapeTweeningUsed by:819
Symbol 812 ShapeTweeningUsed by:819
Symbol 813 MovieClipUses:787 788 789 790 791 792 793 794 795 796Used by:819
Symbol 814 TextUses:310Used by:819
Symbol 815 ShapeTweeningUsed by:819
Symbol 816 ShapeTweeningUsed by:819
Symbol 817 MovieClipUses:787 788 789 790 791 792 793 794 795 796Used by:819
Symbol 818 ShapeTweeningUsed by:819
Symbol 819 MovieClipUses:8 306 786 797 314 315 316 317 318 319 320 321 322 574 798 799 800 81 323 313 324 580 801 802 803 804 333 805 806 807 808 787 788 789 790 791 792 793 794 795 796 809 810 811 812 813 814 815 816 817 818Used by:Timeline
Symbol 820 BitmapUsed by:821
Symbol 821 GraphicUses:820Used by:Timeline
Symbol 822 GraphicUsed by:825
Symbol 823 GraphicUsed by:824
Symbol 824 MovieClipUses:823Used by:825
Symbol 825 MovieClipUses:822 824Used by:851
Symbol 826 GraphicUsed by:831
Symbol 827 GraphicUsed by:828
Symbol 828 MovieClipUses:827Used by:831
Symbol 829 GraphicUsed by:830
Symbol 830 MovieClipUses:829Used by:831
Symbol 831 MovieClipUses:826 828 830 610Used by:851
Symbol 832 GraphicUsed by:833
Symbol 833 MovieClipUses:832Used by:851
Symbol 834 BitmapUsed by:850
Symbol 835 BitmapUsed by:850
Symbol 836 BitmapUsed by:850
Symbol 837 BitmapUsed by:850
Symbol 838 BitmapUsed by:850
Symbol 839 BitmapUsed by:850
Symbol 840 BitmapUsed by:850
Symbol 841 BitmapUsed by:850
Symbol 842 BitmapUsed by:850
Symbol 843 BitmapUsed by:850
Symbol 844 BitmapUsed by:850
Symbol 845 BitmapUsed by:850
Symbol 846 BitmapUsed by:850
Symbol 847 BitmapUsed by:850
Symbol 848 BitmapUsed by:850
Symbol 849 BitmapUsed by:850
Symbol 850 GraphicUses:834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849Used by:851
Symbol 851 MovieClipUses:825 831 833 850 412 419 456 459 402 494 396 393 536 495 541 498 4Used by:Timeline
Symbol 852 EditableTextUses:20Used by:Timeline
Symbol 853 EditableTextUses:20Used by:Timeline
Symbol 854 EditableTextUses:20Used by:Timeline
Symbol 855 EditableTextUses:20Used by:Timeline
Symbol 856 EditableTextUses:40Used by:Timeline
Symbol 857 EditableTextUses:40Used by:Timeline
Symbol 858 EditableTextUses:20Used by:Timeline
Symbol 859 EditableTextUses:20Used by:Timeline
Symbol 860 EditableTextUses:40Used by:Timeline
Symbol 861 EditableTextUses:20Used by:Timeline
Symbol 862 EditableTextUses:40Used by:Timeline
Symbol 863 EditableTextUses:20Used by:Timeline
Symbol 864 BitmapUsed by:865
Symbol 865 GraphicUses:864Used by:Timeline
Symbol 866 GraphicUsed by:869
Symbol 867 GraphicUsed by:868
Symbol 868 MovieClipUses:867Used by:869
Symbol 869 MovieClipUses:866 868Used by:902
Symbol 870 GraphicUsed by:875
Symbol 871 GraphicUsed by:872
Symbol 872 MovieClipUses:871Used by:875
Symbol 873 GraphicUsed by:874
Symbol 874 MovieClipUses:873Used by:875
Symbol 875 MovieClipUses:870 872 874 610Used by:902
Symbol 876 GraphicUsed by:877
Symbol 877 MovieClipUses:876Used by:902
Symbol 878 BitmapUsed by:896
Symbol 879 BitmapUsed by:896
Symbol 880 BitmapUsed by:896
Symbol 881 BitmapUsed by:896
Symbol 882 BitmapUsed by:896
Symbol 883 BitmapUsed by:896
Symbol 884 BitmapUsed by:896
Symbol 885 BitmapUsed by:896
Symbol 886 BitmapUsed by:896
Symbol 887 BitmapUsed by:896
Symbol 888 BitmapUsed by:896
Symbol 889 BitmapUsed by:896
Symbol 890 BitmapUsed by:896
Symbol 891 BitmapUsed by:896
Symbol 892 BitmapUsed by:896
Symbol 893 BitmapUsed by:896
Symbol 894 BitmapUsed by:896
Symbol 895 BitmapUsed by:896
Symbol 896 GraphicUses:878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895Used by:902
Symbol 897 BitmapUsed by:901
Symbol 898 BitmapUsed by:901
Symbol 899 BitmapUsed by:901
Symbol 900 BitmapUsed by:901
Symbol 901 GraphicUses:897 898 899 900Used by:902
Symbol 902 MovieClipUses:869 875 877 495 896 419 456 459 412 402 494 396 393 536 541 540 901 498 4Used by:Timeline
Symbol 903 EditableTextUses:20Used by:Timeline
Symbol 904 EditableTextUses:20Used by:Timeline
Symbol 905 EditableTextUses:20Used by:Timeline
Symbol 906 EditableTextUses:20Used by:Timeline
Symbol 907 EditableTextUses:40Used by:Timeline
Symbol 908 EditableTextUses:40Used by:Timeline
Symbol 909 EditableTextUses:20Used by:Timeline
Symbol 910 EditableTextUses:20Used by:Timeline
Symbol 911 EditableTextUses:40Used by:Timeline
Symbol 912 EditableTextUses:20Used by:Timeline
Symbol 913 EditableTextUses:40Used by:Timeline
Symbol 914 EditableTextUses:20Used by:Timeline
Symbol 915 BitmapUsed by:916
Symbol 916 GraphicUses:915Used by:987
Symbol 917 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 918 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 919 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 920 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 921 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 922 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 923 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 924 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 925 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 926 GraphicUsed by:930 987 1074 1094 1105 1123
Symbol 927 GraphicUsed by:930 951 987 1074 1094 1105 1123
Symbol 928 GraphicUsed by:930 987
Symbol 929 GraphicUsed by:930
Symbol 930 MovieClipUses:917 918 919 920 921 922 923 924 925 926 927 928 929Used by:987
Symbol 931 GraphicUsed by:943 952 987
Symbol 932 GraphicUsed by:943 952 987
Symbol 933 GraphicUsed by:943 952 987
Symbol 934 GraphicUsed by:943 952 987
Symbol 935 GraphicUsed by:987
Symbol 936 GraphicUsed by:987
Symbol 937 TextUses:310Used by:987
Symbol 938 GraphicUsed by:987
Symbol 939 GraphicUsed by:987
Symbol 940 ShapeTweeningUsed by:987
Symbol 941 ShapeTweeningUsed by:987
Symbol 942 ShapeTweeningUsed by:987
Symbol 943 MovieClipUses:931 932 316 317 318 933 934 321 322Used by:987
Symbol 944 TextUses:310Used by:987
Symbol 945 ShapeTweeningUsed by:987
Symbol 946 GraphicUsed by:987
Symbol 947 GraphicUsed by:951 987
Symbol 948 ShapeTweeningUsed by:987
Symbol 949 ShapeTweeningUsed by:987
Symbol 950 ShapeTweeningUsed by:987
Symbol 951 MovieClipUses:917 918 919 921 922 924 925 947 927 920 923Used by:987
Symbol 952 MovieClipUses:931 932 316 317 318 933 934 321 322Used by:987
Symbol 953 GraphicUsed by:987
Symbol 954 ShapeTweeningUsed by:987
Symbol 955 GraphicUsed by:987
Symbol 956 TextUses:310Used by:987
Symbol 957 ShapeTweeningUsed by:987
Symbol 958 ShapeTweeningUsed by:987
Symbol 959 GraphicUsed by:987
Symbol 960 GraphicUsed by:976 987 1028 1036
Symbol 961 GraphicUsed by:976 987 1028 1036
Symbol 962 GraphicUsed by:976 987 1028 1036 1055
Symbol 963 GraphicUsed by:976 987 1028 1036 1055
Symbol 964 GraphicUsed by:976 987 1028 1036 1055
Symbol 965 GraphicUsed by:976 987
Symbol 966 GraphicUsed by:976 987 1028 1036 1055
Symbol 967 GraphicUsed by:976 987 1028 1036
Symbol 968 GraphicUsed by:976 987 1028 1036
Symbol 969 GraphicUsed by:976 987 1028 1055
Symbol 970 GraphicUsed by:976 987 1028
Symbol 971 GraphicUsed by:976 987
Symbol 972 GraphicUsed by:976 987
Symbol 973 GraphicUsed by:976 987
Symbol 974 GraphicUsed by:976 987
Symbol 975 GraphicUsed by:976 987
Symbol 976 MovieClipUses:960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 SS1Used by:987
Symbol 977 GraphicUsed by:987
Symbol 978 GraphicUsed by:987 1074 1094 1105
Symbol 979 GraphicUsed by:987
Symbol 980 GraphicUsed by:987
Symbol 981 GraphicUsed by:987
Symbol 982 GraphicUsed by:987
Symbol 983 GraphicUsed by:987
Symbol 984 GraphicUsed by:987
Symbol 985 GraphicUsed by:987
Symbol 986 ShapeTweeningUsed by:987
Symbol 987 MovieClipUses:8 306 916 930 931 932 316 317 318 933 934 321 322 574 935 936 937 938 939 701 940 81 323 313 941 324 942 943 333 917 918 919 920 921 922 923 924 925 926 927 944 945 946 928 947 948 949 950 951 952 953 954 955 956 957 958 959 976 977 978 960 962 963 964 965 966 961 967 968 969 979 970 971 972 980 83 973 981 85 974 982 975 983 984 985 986Used by:Timeline
Symbol 988 BitmapUsed by:989
Symbol 989 GraphicUses:988Used by:Timeline
Symbol 990 GraphicUsed by:995
Symbol 991 GraphicUsed by:992
Symbol 992 MovieClipUses:991Used by:995
Symbol 993 GraphicUsed by:994
Symbol 994 MovieClipUses:993Used by:995
Symbol 995 MovieClipUses:990 992 994 610Used by:1057
Symbol 996 GraphicUsed by:1002
Symbol 997 GraphicUsed by:999
Symbol 998 MovieClipUses:374Used by:999
Symbol 999 MovieClipUses:997 8 998Used by:1002
Symbol 1000 GraphicUsed by:1001
Symbol 1001 MovieClipUses:1000Used by:1002
Symbol 1002 MovieClipUses:996 999 1001Used by:1057
Symbol 1003 GraphicUsed by:1004
Symbol 1004 MovieClipUses:1003Used by:1057
Symbol 1005 BitmapUsed by:1021
Symbol 1006 BitmapUsed by:1021
Symbol 1007 BitmapUsed by:1021
Symbol 1008 BitmapUsed by:1021
Symbol 1009 BitmapUsed by:1021
Symbol 1010 BitmapUsed by:1021
Symbol 1011 BitmapUsed by:1021
Symbol 1012 BitmapUsed by:1021
Symbol 1013 BitmapUsed by:1021
Symbol 1014 BitmapUsed by:1021
Symbol 1015 BitmapUsed by:1021
Symbol 1016 BitmapUsed by:1021
Symbol 1017 BitmapUsed by:1021
Symbol 1018 BitmapUsed by:1021
Symbol 1019 BitmapUsed by:1021
Symbol 1020 BitmapUsed by:1021
Symbol 1021 GraphicUses:1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020Used by:1057
Symbol 1022 GraphicUsed by:1028 1036 1055
Symbol 1023 GraphicUsed by:1028
Symbol 1024 GraphicUsed by:1028
Symbol 1025 GraphicUsed by:1028
Symbol 1026 GraphicUsed by:1028
Symbol 1027 GraphicUsed by:1028
Symbol 1028 MovieClipUses:960 961 962 963 964 1022 966 967 968 969 970 1023 1024 1025 1026 1027Used by:1056
Symbol 1029 GraphicUsed by:1036
Symbol 1030 GraphicUsed by:1036
Symbol 1031 GraphicUsed by:1036
Symbol 1032 GraphicUsed by:1036
Symbol 1033 GraphicUsed by:1036
Symbol 1034 GraphicUsed by:1036
Symbol 1035 GraphicUsed by:1036
Symbol 1036 MovieClipUses:960 961 962 963 964 1022 966 967 1029 968 1030 1031 1032 1033 1034 1035Used by:1056
Symbol 1037 GraphicUsed by:1055
Symbol 1038 GraphicUsed by:1055
Symbol 1039 GraphicUsed by:1055
Symbol 1040 GraphicUsed by:1055
Symbol 1041 GraphicUsed by:1055
Symbol 1042 GraphicUsed by:1055
Symbol 1043 GraphicUsed by:1055
Symbol 1044 GraphicUsed by:1055
Symbol 1045 GraphicUsed by:1055
Symbol 1046 GraphicUsed by:1055
Symbol 1047 GraphicUsed by:1055
Symbol 1048 GraphicUsed by:1055
Symbol 1049 GraphicUsed by:1055
Symbol 1050 GraphicUsed by:1055
Symbol 1051 GraphicUsed by:1055
Symbol 1052 GraphicUsed by:1055
Symbol 1053 GraphicUsed by:1055
Symbol 1054 GraphicUsed by:1055
Symbol 1055 MovieClipUses:969 1037 962 963 964 1022 966 1038 1039 83 1040 85 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054Used by:1056
Symbol 1056 MovieClipUses:1028 81 1036 1055Used by:1057
Symbol 1057 MovieClipUses:995 1002 1004 1021 1056 456 459 412 419 494 396 498 4Used by:Timeline
Symbol 1058 BitmapUsed by:1059
Symbol 1059 GraphicUses:1058 300Used by:Timeline
Symbol 1060 EditableTextUses:20Used by:Timeline
Symbol 1061 EditableTextUses:20Used by:Timeline
Symbol 1062 EditableTextUses:40Used by:Timeline
Symbol 1063 EditableTextUses:20Used by:Timeline
Symbol 1064 EditableTextUses:40Used by:Timeline
Symbol 1065 EditableTextUses:20Used by:Timeline
Symbol 1066 MovieClipUses:559 560 561 562 563 564 565 566 567 568 569 570 571 572Used by:1123
Symbol 1067 GraphicUsed by:1071 1090 1123
Symbol 1068 GraphicUsed by:1071 1090 1123
Symbol 1069 GraphicUsed by:1071 1090 1123
Symbol 1070 GraphicUsed by:1071 1090 1123
Symbol 1071 MovieClipUses:787 788 789 1067 1068 792 1069 1070 795 796Used by:1123
Symbol 1072 MovieClipUses:675 676 677 678 679 680 681 682 683 684 685 686 687 688 689Used by:1123
Symbol 1073 GraphicUsed by:1074 1094 1105
Symbol 1074 MovieClipUses:917 918 919 920 921 922 923 924 925 926 927 978 1073Used by:1123
Symbol 1075 GraphicUsed by:1082 1097 1109 1112 1123
Symbol 1076 GraphicUsed by:1082 1097 1109 1112 1123
Symbol 1077 GraphicUsed by:1082 1097 1109 1112 1123
Symbol 1078 GraphicUsed by:1082 1097 1109 1112 1123
Symbol 1079 ShapeTweeningUsed by:1123
Symbol 1080 TextUses:310Used by:1123
Symbol 1081 ShapeTweeningUsed by:1123
Symbol 1082 MovieClipUses:1075 1076 316 317 318 1077 1078 321 322Used by:1123
Symbol 1083 MovieClipUses:559 560 561 562 563 564 565 566 567 568 569 570 571 572Used by:1123
Symbol 1084 ShapeTweeningUsed by:1123
Symbol 1085 ShapeTweeningUsed by:1123
Symbol 1086 ButtonUses:330 331 332Used by:1123
Symbol 1087 TextUses:310Used by:1123
Symbol 1088 ShapeTweeningUsed by:1123
Symbol 1089 MovieClipUses:675 676 677 678 679 680 681 682 683 684 685 686 687 688 689Used by:1123
Symbol 1090 MovieClipUses:787 788 789 1067 1068 792 1069 1070 795 796Used by:1123
Symbol 1091 TextUses:310Used by:1123
Symbol 1092 ShapeTweeningUsed by:1123
Symbol 1093 ShapeTweeningUsed by:1123
Symbol 1094 MovieClipUses:917 918 919 920 921 922 923 924 925 926 927 978 1073Used by:1123
Symbol 1095 TextUses:310Used by:1123
Symbol 1096 ShapeTweeningUsed by:1123
Symbol 1097 MovieClipUses:1075 1076 316 317 318 1077 1078 321 322Used by:1123
Symbol 1098 TextUses:310Used by:1123
Symbol 1099 MovieClipUses:559 560 561 562 563 564 565 566 567 568 569 570 571 572Used by:1123
Symbol 1100 TextUses:310Used by:1123
Symbol 1101 ShapeTweeningUsed by:1123
Symbol 1102 ShapeTweeningUsed by:1123
Symbol 1103 TextUses:310Used by:1123
Symbol 1104 ShapeTweeningUsed by:1123
Symbol 1105 MovieClipUses:917 918 920 921 919 922 923 924 925 926 927 978 1073Used by:1123
Symbol 1106 ShapeTweeningUsed by:1123
Symbol 1107 ShapeTweeningUsed by:1123
Symbol 1108 GraphicUsed by:1109 1112
Symbol 1109 MovieClipUses:1075 1076 316 317 318 1077 1078 321 322 1108Used by:1123
Symbol 1110 GraphicUsed by:1123
Symbol 1111 ShapeTweeningUsed by:1123
Symbol 1112 MovieClipUses:1075 1076 316 317 318 1077 1078 321 1108Used by:1123
Symbol 1113 GraphicUsed by:1123
Symbol 1114 TextUses:310Used by:1123
Symbol 1115 ShapeTweeningUsed by:1123
Symbol 1116 GraphicUsed by:1123
Symbol 1117 ShapeTweeningUsed by:1123
Symbol 1118 ShapeTweeningUsed by:1123
Symbol 1119 TextUses:310Used by:1121
Symbol 1120 TextUses:310Used by:1121
Symbol 1121 ButtonUses:1119 1120 332Used by:1123
Symbol 1122 ShapeTweeningUsed by:1123
Symbol 1123 MovieClipUses:8 306 558 1066 1071 1072 1074 1075 1076 316 317 318 1077 1078 321 322 575 1079 81 323 313 324 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 333 1099 1100 1101 1102 1103 1104 1105 1106 1107 1109 1110 1111 559 560 561 562 563 564 565 566 567 568 569 570 571 572 787 788 789 1067 1068 792 1069 1070 795 796 675 676 677 678 679 680 681 682 683 684 685 686 687 688 917 918 919 920 921 922 923 924 925 926 927 1112 1113 1114 1115 335 1116 1117 1118 1121 1122Used by:Timeline
Symbol 1124 BitmapUsed by:1125
Symbol 1125 GraphicUses:1124Used by:Timeline
Symbol 1126 GraphicUses:507Used by:Timeline
Symbol 1127 EditableTextUses:20Used by:Timeline
Symbol 1128 EditableTextUses:20Used by:Timeline
Symbol 1129 EditableTextUses:20Used by:Timeline
Symbol 1130 EditableTextUses:20Used by:Timeline
Symbol 1131 EditableTextUses:40Used by:Timeline
Symbol 1132 EditableTextUses:40Used by:Timeline
Symbol 1133 EditableTextUses:40Used by:Timeline
Symbol 1134 EditableTextUses:20Used by:Timeline
Symbol 1135 EditableTextUses:20Used by:Timeline
Symbol 1136 EditableTextUses:40Used by:Timeline
Symbol 1137 EditableTextUses:20Used by:Timeline
Symbol 1138 EditableTextUses:40Used by:Timeline
Symbol 1139 EditableTextUses:20Used by:Timeline
Streaming Sound 1Used by:Symbol 976 MovieClip

Instance Names

"loader"Frame 1Symbol 14 MovieClip
"First"Frame 5Symbol 240 MovieClip
"toppoints"Frame 13Symbol 512 EditableText
"topratio"Frame 13Symbol 513 EditableText
"toptime"Frame 13Symbol 514 EditableText
"newcoinrecord"Frame 13Symbol 515 EditableText
"newratiorecord"Frame 13Symbol 516 EditableText
"newtimerecord"Frame 13Symbol 517 EditableText
"newdeathsrecord"Frame 13Symbol 519 EditableText
"topdeaths"Frame 13Symbol 520 EditableText
"toppoints"Frame 21Symbol 545 EditableText
"topratio"Frame 21Symbol 546 EditableText
"newcoinrecord"Frame 21Symbol 547 EditableText
"newratiorecord"Frame 21Symbol 548 EditableText
"toptime"Frame 21Symbol 550 EditableText
"newtimerecord"Frame 21Symbol 551 EditableText
"newdeathsrecord"Frame 21Symbol 553 EditableText
"topdeaths"Frame 21Symbol 554 EditableText
"World"Frame 29Symbol 623 MovieClip
"toppoints"Frame 31Symbol 626 EditableText
"topratio"Frame 31Symbol 627 EditableText
"newcoinrecord"Frame 31Symbol 628 EditableText
"newratiorecord"Frame 31Symbol 629 EditableText
"toptime"Frame 31Symbol 631 EditableText
"newtimerecord"Frame 31Symbol 632 EditableText
"newdeathsrecord"Frame 31Symbol 634 EditableText
"topdeaths"Frame 31Symbol 635 EditableText
"World"Frame 35Symbol 659 MovieClip
"toppoints"Frame 37Symbol 662 EditableText
"topratio"Frame 37Symbol 663 EditableText
"newcoinrecord"Frame 37Symbol 664 EditableText
"newratiorecord"Frame 37Symbol 665 EditableText
"toptime"Frame 37Symbol 667 EditableText
"newtimerecord"Frame 37Symbol 668 EditableText
"newdeathsrecord"Frame 37Symbol 670 EditableText
"topdeaths"Frame 37Symbol 671 EditableText
"World"Frame 44Symbol 728 MovieClip
"toppoints"Frame 46Symbol 731 EditableText
"topratio"Frame 46Symbol 732 EditableText
"newcoinrecord"Frame 46Symbol 733 EditableText
"newratiorecord"Frame 46Symbol 734 EditableText
"toptime"Frame 46Symbol 736 EditableText
"newtimerecord"Frame 46Symbol 737 EditableText
"newdeathsrecord"Frame 46Symbol 739 EditableText
"topdeaths"Frame 46Symbol 740 EditableText
"World"Frame 50Symbol 772 MovieClip
"toppoints"Frame 52Symbol 775 EditableText
"topratio"Frame 52Symbol 776 EditableText
"newcoinrecord"Frame 52Symbol 777 EditableText
"newratiorecord"Frame 52Symbol 778 EditableText
"toptime"Frame 52Symbol 780 EditableText
"newtimerecord"Frame 52Symbol 781 EditableText
"newdeathsrecord"Frame 52Symbol 783 EditableText
"topdeaths"Frame 52Symbol 784 EditableText
"World"Frame 58Symbol 851 MovieClip
"toppoints"Frame 60Symbol 854 EditableText
"topratio"Frame 60Symbol 855 EditableText
"newcoinrecord"Frame 60Symbol 856 EditableText
"newratiorecord"Frame 60Symbol 857 EditableText
"toptime"Frame 60Symbol 859 EditableText
"newtimerecord"Frame 60Symbol 860 EditableText
"newdeathsrecord"Frame 60Symbol 862 EditableText
"topdeaths"Frame 60Symbol 863 EditableText
"World"Frame 64Symbol 902 MovieClip
"toppoints"Frame 66Symbol 905 EditableText
"topratio"Frame 66Symbol 906 EditableText
"newcoinrecord"Frame 66Symbol 907 EditableText
"newratiorecord"Frame 66Symbol 908 EditableText
"toptime"Frame 66Symbol 910 EditableText
"newtimerecord"Frame 66Symbol 911 EditableText
"newdeathsrecord"Frame 66Symbol 913 EditableText
"topdeaths"Frame 66Symbol 914 EditableText
"World"Frame 72Symbol 1057 MovieClip
"toptime"Frame 74Symbol 1061 EditableText
"newtimerecord"Frame 74Symbol 1062 EditableText
"newdeathsrecord"Frame 74Symbol 1064 EditableText
"topdeaths"Frame 74Symbol 1065 EditableText
"toppoints"Frame 78Symbol 1129 EditableText
"topratio"Frame 78Symbol 1130 EditableText
"incomplete"Frame 78Symbol 1131 EditableText
"newcoinrecord"Frame 78Symbol 1132 EditableText
"newratiorecord"Frame 78Symbol 1133 EditableText
"toptime"Frame 78Symbol 1135 EditableText
"newtimerecord"Frame 78Symbol 1136 EditableText
"newdeathsrecord"Frame 78Symbol 1138 EditableText
"topdeaths"Frame 78Symbol 1139 EditableText
"bubble"Symbol 7 MovieClip [Bubble 1] Frame 1Symbol 6 MovieClip
"sensor"Symbol 134 MovieClip [Attack Dog 1] Frame 1Symbol 81 MovieClip
"sensor"Symbol 147 MovieClip [Goomba 1] Frame 1Symbol 81 MovieClip
"sensor"Symbol 177 MovieClip [Koopa Troopa 1] Frame 1Symbol 81 MovieClip
"textbox"Symbol 191 MovieClip [textbubble] Frame 1Symbol 190 EditableText
"levelname"Symbol 240 MovieClip Frame 1Symbol 219 EditableText
"DigitBoundary"Symbol 384 MovieClip Frame 1Symbol 383 MovieClip
"sensor"Symbol 494 MovieClip Frame 1Symbol 81 MovieClip
"HardBoundary"Symbol 499 MovieClip Frame 1Symbol 378 MovieClip
"SoftBoundary"Symbol 499 MovieClip Frame 1Symbol 384 MovieClip
"Player1"Symbol 499 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 499 MovieClip Frame 1Symbol 4 MovieClip [camera]
"textbox"Symbol 503 MovieClip Frame 1Symbol 502 EditableText
"cherryicon"Symbol 506 MovieClip Frame 1Symbol 39 MovieClip [Rock 1]
"DigitBoundary"Symbol 533 MovieClip Frame 1Symbol 532 MovieClip
"sensor"Symbol 536 MovieClip Frame 1Symbol 81 MovieClip
"sensor"Symbol 540 MovieClip Frame 1Symbol 81 MovieClip
"sensor"Symbol 541 MovieClip Frame 1Symbol 81 MovieClip
"HardBoundary"Symbol 542 MovieClip Frame 1Symbol 529 MovieClip
"SoftBoundary"Symbol 542 MovieClip Frame 1Symbol 533 MovieClip
"DeathBoundary"Symbol 542 MovieClip Frame 1Symbol 535 MovieClip
"Player1"Symbol 542 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 542 MovieClip Frame 1Symbol 4 MovieClip [camera]
"DigitBoundary"Symbol 613 MovieClip Frame 1Symbol 612 MovieClip
"HardBoundary"Symbol 623 MovieClip Frame 1Symbol 605 MovieClip
"SoftBoundary"Symbol 623 MovieClip Frame 1Symbol 613 MovieClip
"DeathBoundary"Symbol 623 MovieClip Frame 1Symbol 615 MovieClip
"Player1"Symbol 623 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 623 MovieClip Frame 1Symbol 4 MovieClip [camera]
"DigitBoundary"Symbol 647 MovieClip Frame 1Symbol 646 MovieClip
"HardBoundary"Symbol 659 MovieClip Frame 1Symbol 641 MovieClip
"SoftBoundary"Symbol 659 MovieClip Frame 1Symbol 647 MovieClip
"DeathBoundary"Symbol 659 MovieClip Frame 1Symbol 649 MovieClip
"keyred"Symbol 659 MovieClip Frame 1Symbol 396 MovieClip
"keyblue"Symbol 659 MovieClip Frame 1Symbol 393 MovieClip
"Player1"Symbol 659 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 659 MovieClip Frame 1Symbol 4 MovieClip [camera]
"DigitBoundary"Symbol 722 MovieClip Frame 1Symbol 721 MovieClip
"HardBoundary"Symbol 728 MovieClip Frame 1Symbol 718 MovieClip
"SoftBoundary"Symbol 728 MovieClip Frame 1Symbol 722 MovieClip
"DeathBoundary"Symbol 728 MovieClip Frame 1Symbol 724 MovieClip
"Player1"Symbol 728 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 728 MovieClip Frame 1Symbol 4 MovieClip [camera]
"DigitBoundary"Symbol 752 MovieClip Frame 1Symbol 751 MovieClip
"HardBoundary"Symbol 772 MovieClip Frame 1Symbol 746 MovieClip
"SoftBoundary"Symbol 772 MovieClip Frame 1Symbol 752 MovieClip
"DeathBoundary"Symbol 772 MovieClip Frame 1Symbol 754 MovieClip
"Player1"Symbol 772 MovieClip Frame 1Symbol 494 MovieClip
"keyred "Symbol 772 MovieClip Frame 1Symbol 396 MovieClip
"keyblue"Symbol 772 MovieClip Frame 1Symbol 393 MovieClip
"camera"Symbol 772 MovieClip Frame 1Symbol 4 MovieClip [camera]
"DigitBoundary"Symbol 831 MovieClip Frame 1Symbol 830 MovieClip
"HardBoundary"Symbol 851 MovieClip Frame 1Symbol 825 MovieClip
"SoftBoundary"Symbol 851 MovieClip Frame 1Symbol 831 MovieClip
"DeathBoundary"Symbol 851 MovieClip Frame 1Symbol 833 MovieClip
"Player1"Symbol 851 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 851 MovieClip Frame 1Symbol 4 MovieClip [camera]
"DigitBoundary"Symbol 875 MovieClip Frame 1Symbol 874 MovieClip
"HardBoundary"Symbol 902 MovieClip Frame 1Symbol 869 MovieClip
"SoftBoundary"Symbol 902 MovieClip Frame 1Symbol 875 MovieClip
"DeathBoundary"Symbol 902 MovieClip Frame 1Symbol 877 MovieClip
"Player1"Symbol 902 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 902 MovieClip Frame 1Symbol 4 MovieClip [camera]
"DigitBoundary"Symbol 995 MovieClip Frame 1Symbol 994 MovieClip
"wall"Symbol 999 MovieClip Frame 1Symbol 998 MovieClip
"sensor"Symbol 1056 MovieClip Frame 1Symbol 81 MovieClip
"SoftBoundary"Symbol 1057 MovieClip Frame 1Symbol 995 MovieClip
"HardBoundary"Symbol 1057 MovieClip Frame 1Symbol 1002 MovieClip
"DeathBoundary"Symbol 1057 MovieClip Frame 1Symbol 1004 MovieClip
"Boss"Symbol 1057 MovieClip Frame 1Symbol 1056 MovieClip
"Player1"Symbol 1057 MovieClip Frame 1Symbol 494 MovieClip
"camera"Symbol 1057 MovieClip Frame 1Symbol 4 MovieClip [camera]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "camShaker"
ExportAssets (56)Timeline Frame 1Symbol 2 as "ManagerSymbol"
ExportAssets (56)Timeline Frame 1Symbol 4 as "camera"
ExportAssets (56)Timeline Frame 1Symbol 7 as "Bubble 1"
ExportAssets (56)Timeline Frame 1Symbol 1140 as "__Packages.com.managers.SoundManager"
ExportAssets (56)Timeline Frame 1Symbol 1141 as "__Packages.com.managers.SoundDataObject"
ExportAssets (56)Timeline Frame 1Symbol 1142 as "__Packages.com.utilities.StatTracker"
ExportAssets (56)Timeline Frame 3Symbol 39 as "Rock 1"
ExportAssets (56)Timeline Frame 3Symbol 43 as "Rock Number"
ExportAssets (56)Timeline Frame 3Symbol 45 as "PlayerStart"
ExportAssets (56)Timeline Frame 3Symbol 79 as "Bomb 1"
ExportAssets (56)Timeline Frame 3Symbol 96 as "Explosion 1"
ExportAssets (56)Timeline Frame 3Symbol 102 as "puffexplode"
ExportAssets (56)Timeline Frame 3Symbol 103 as "Bomber 1"
ExportAssets (56)Timeline Frame 3Symbol 134 as "Attack Dog 1"
ExportAssets (56)Timeline Frame 3Symbol 147 as "Goomba 1"
ExportAssets (56)Timeline Frame 3Symbol 177 as "Koopa Troopa 1"
ExportAssets (56)Timeline Frame 3Symbol 180 as "Point Number"
ExportAssets (56)Timeline Frame 3Symbol 183 as "Point 1"
ExportAssets (56)Timeline Frame 3Symbol 191 as "textbubble"
ExportAssets (56)Timeline Frame 3Symbol 195 as "Fireball"
ExportAssets (56)Timeline Frame 3Symbol 206 as "CrumblingBox"
ExportAssets (56)Timeline Frame 3Symbol 215 as "BomberExplosion"
ExportAssets (56)Timeline Frame 3Symbol 241 as "deadalert"
ExportAssets (56)Timeline Frame 3Symbol 242 as "puffexplosion"
ExportAssets (56)Timeline Frame 3Symbol 245 as "ChainArt"
ExportAssets (56)Timeline Frame 3Symbol 247 as "ChainMask"
ExportAssets (56)Timeline Frame 3Symbol 268 as "Sparkle"
ExportAssets (56)Timeline Frame 3Symbol 269 as "dogBark"
ExportAssets (56)Timeline Frame 3Symbol 270 as "dogGrowl"
ExportAssets (56)Timeline Frame 3Symbol 271 as "Claws_RatScurry_Loop.wav"
ExportAssets (56)Timeline Frame 3Symbol 272 as "Explo_Small_Bomb3.wav"
ExportAssets (56)Timeline Frame 3Symbol 273 as "explosion.wav"
ExportAssets (56)Timeline Frame 3Symbol 274 as "GiantBeetle_Death2.wav"
ExportAssets (56)Timeline Frame 3Symbol 275 as "GiantMantis_Death.wav"
ExportAssets (56)Timeline Frame 3Symbol 276 as "GiantMantis_Roar3.wav"
ExportAssets (56)Timeline Frame 3Symbol 277 as "GiantMantis_Spit.wav"
ExportAssets (56)Timeline Frame 3Symbol 278 as "BreakfastCinematic.wav"
ExportAssets (56)Timeline Frame 3Symbol 279 as "BreakfastEnding.wav"
ExportAssets (56)Timeline Frame 3Symbol 280 as "BreakfastIntroCinematic.wav"
ExportAssets (56)Timeline Frame 3Symbol 281 as "BreakfastInGame1.wav"
ExportAssets (56)Timeline Frame 3Symbol 282 as "BreakfastInGame2.wav"
ExportAssets (56)Timeline Frame 3Symbol 283 as "BreakfastinGame3.wav"
ExportAssets (56)Timeline Frame 3Symbol 284 as "BreakfastInGame4.wav"
ExportAssets (56)Timeline Frame 3Symbol 285 as "BreakfastBoss.wav"
ExportAssets (56)Timeline Frame 3Symbol 286 as "Hit_SlimeSplat8.wav"
ExportAssets (56)Timeline Frame 3Symbol 287 as "jump2.wav"
ExportAssets (56)Timeline Frame 3Symbol 288 as "Beep_Error06.wavsound"
ExportAssets (56)Timeline Frame 3Symbol 289 as "Cartoon_OpenMagicBag2.wav"
ExportAssets (56)Timeline Frame 3Symbol 290 as "get cigs.wav"
ExportAssets (56)Timeline Frame 3Symbol 291 as "B12sFire_Shot.wav"
ExportAssets (56)Timeline Frame 3Symbol 292 as "Pickup_Key10.wav"
ExportAssets (56)Timeline Frame 3Symbol 293 as "Pickup_bombs.wav"
ExportAssets (56)Timeline Frame 3Symbol 294 as "bender_2xjump.aiff"
ExportAssets (56)Timeline Frame 3Symbol 295 as "throw 1"
ExportAssets (56)Timeline Frame 3Symbol 296 as "jump 1"
ExportAssets (56)Timeline Frame 3Symbol 297 as "bender_pickup.aiff"
ExportAssets (56)Timeline Frame 3Symbol 298 as "Cartoon_BombFall_Whistle1.wav"
ExportAssets (56)Timeline Frame 29Symbol 610 as "Crumbling 1"

Labels

"Game Start"Frame 3
"Level Select"Frame 5
"cutscene1"Frame 7
"Level 0A Start"Frame 9
"Level 0A Complete"Frame 13
"Level 0B Start"Frame 17
"Level 0B Complete"Frame 21
"cutscene2"Frame 25
"Level 1 Start"Frame 27
"Level 1 Complete"Frame 31
"Level 2 Start"Frame 33
"Level 2 Complete"Frame 37
"cutscene3"Frame 39
"Level 2-2 Start"Frame 41
"Level 2-2 Complete"Frame 46
"Level 3 Start"Frame 48
"Level 3 Complete"Frame 52
"cutscene4"Frame 54
"Level 4 Start"Frame 56
"Level 4 Complete"Frame 60
"Level 5 Start"Frame 62
"Level 5 Complete"Frame 66
"cutscene5"Frame 68
"Level 6 Start"Frame 70
"Level 6 Complete"Frame 74
"cutscene6"Frame 76
"Standing"Symbol 134 MovieClip [Attack Dog 1] Frame 2
"Walking"Symbol 134 MovieClip [Attack Dog 1] Frame 3
"Flying"Symbol 134 MovieClip [Attack Dog 1] Frame 4
"DoubleJumping"Symbol 134 MovieClip [Attack Dog 1] Frame 5
"Falling"Symbol 134 MovieClip [Attack Dog 1] Frame 6
"Wallsliding"Symbol 134 MovieClip [Attack Dog 1] Frame 7
"Swimming"Symbol 134 MovieClip [Attack Dog 1] Frame 8
"Swimming-Flapping"Symbol 134 MovieClip [Attack Dog 1] Frame 9
"Sinking"Symbol 134 MovieClip [Attack Dog 1] Frame 10
"BellySliding"Symbol 134 MovieClip [Attack Dog 1] Frame 11
"SurfaceSwimming"Symbol 134 MovieClip [Attack Dog 1] Frame 12
"SurfaceSwimming-Flapping"Symbol 134 MovieClip [Attack Dog 1] Frame 13
"Nosedivebounce"Symbol 134 MovieClip [Attack Dog 1] Frame 14
"Dead"Symbol 134 MovieClip [Attack Dog 1] Frame 15
"Standing"Symbol 147 MovieClip [Goomba 1] Frame 2
"Walking"Symbol 147 MovieClip [Goomba 1] Frame 3
"Flying"Symbol 147 MovieClip [Goomba 1] Frame 4
"DoubleJumping"Symbol 147 MovieClip [Goomba 1] Frame 5
"Falling"Symbol 147 MovieClip [Goomba 1] Frame 6
"Wallsliding"Symbol 147 MovieClip [Goomba 1] Frame 7
"Swimming"Symbol 147 MovieClip [Goomba 1] Frame 8
"Swimming-Flapping"Symbol 147 MovieClip [Goomba 1] Frame 9
"Sinking"Symbol 147 MovieClip [Goomba 1] Frame 10
"BellySliding"Symbol 147 MovieClip [Goomba 1] Frame 11
"SurfaceSwimming"Symbol 147 MovieClip [Goomba 1] Frame 12
"SurfaceSwimming-Flapping"Symbol 147 MovieClip [Goomba 1] Frame 13
"Nosedivebounce"Symbol 147 MovieClip [Goomba 1] Frame 14
"Dead"Symbol 147 MovieClip [Goomba 1] Frame 15
"Standing"Symbol 177 MovieClip [Koopa Troopa 1] Frame 2
"Walking"Symbol 177 MovieClip [Koopa Troopa 1] Frame 3
"Flying"Symbol 177 MovieClip [Koopa Troopa 1] Frame 4
"DoubleJumping"Symbol 177 MovieClip [Koopa Troopa 1] Frame 5
"Falling"Symbol 177 MovieClip [Koopa Troopa 1] Frame 6
"Wallsliding"Symbol 177 MovieClip [Koopa Troopa 1] Frame 7
"Swimming"Symbol 177 MovieClip [Koopa Troopa 1] Frame 8
"Swimming-Flapping"Symbol 177 MovieClip [Koopa Troopa 1] Frame 9
"Sinking"Symbol 177 MovieClip [Koopa Troopa 1] Frame 10
"BellySliding"Symbol 177 MovieClip [Koopa Troopa 1] Frame 11
"SurfaceSwimming"Symbol 177 MovieClip [Koopa Troopa 1] Frame 12
"SurfaceSwimming-Flapping"Symbol 177 MovieClip [Koopa Troopa 1] Frame 13
"Nosedivebounce"Symbol 177 MovieClip [Koopa Troopa 1] Frame 14
"Dead"Symbol 177 MovieClip [Koopa Troopa 1] Frame 15
"1-1"Symbol 240 MovieClip Frame 2
"1-2"Symbol 240 MovieClip Frame 3
"2-1"Symbol 240 MovieClip Frame 4
"2-2"Symbol 240 MovieClip Frame 5
"3-1"Symbol 240 MovieClip Frame 6
"3-2"Symbol 240 MovieClip Frame 7
"4-1"Symbol 240 MovieClip Frame 8
"4-2"Symbol 240 MovieClip Frame 9
"5-1"Symbol 240 MovieClip Frame 10
"Menu"Symbol 240 MovieClip Frame 11
"segment1"Symbol 371 MovieClip Frame 1
"segment2"Symbol 371 MovieClip Frame 137
"segment3"Symbol 371 MovieClip Frame 264
"segment4"Symbol 371 MovieClip Frame 357
"segment5"Symbol 371 MovieClip Frame 397
"segment6"Symbol 371 MovieClip Frame 463
"Standing"Symbol 494 MovieClip Frame 1
"Walking"Symbol 494 MovieClip Frame 2
"Flying"Symbol 494 MovieClip Frame 3
"DoubleJumping"Symbol 494 MovieClip Frame 4
"Falling"Symbol 494 MovieClip Frame 5
"Wallsliding"Symbol 494 MovieClip Frame 6
"Swimming"Symbol 494 MovieClip Frame 7
"Swimming-Flapping"Symbol 494 MovieClip Frame 8
"Sinking"Symbol 494 MovieClip Frame 9
"BellySliding"Symbol 494 MovieClip Frame 10
"SurfaceSwimming"Symbol 494 MovieClip Frame 11
"SurfaceSwimming-Flapping"Symbol 494 MovieClip Frame 12
"Nosedivebounce"Symbol 494 MovieClip Frame 13
"Dead"Symbol 494 MovieClip Frame 14
"segment1"Symbol 599 MovieClip Frame 1
"segment2"Symbol 599 MovieClip Frame 78
"segment3"Symbol 599 MovieClip Frame 151
"segment4"Symbol 599 MovieClip Frame 215
"segment5"Symbol 599 MovieClip Frame 250
"segment1"Symbol 712 MovieClip Frame 1
"segment2"Symbol 712 MovieClip Frame 74
"segment3"Symbol 712 MovieClip Frame 137
"segment4"Symbol 712 MovieClip Frame 207
"segment5"Symbol 712 MovieClip Frame 243
"segment1"Symbol 819 MovieClip Frame 1
"segment2"Symbol 819 MovieClip Frame 137
"segment3"Symbol 819 MovieClip Frame 191
"segment4"Symbol 819 MovieClip Frame 274
"segment5"Symbol 819 MovieClip Frame 369
"segment6"Symbol 819 MovieClip Frame 382
"segment1"Symbol 987 MovieClip Frame 1
"segment2"Symbol 987 MovieClip Frame 53
"segment3"Symbol 987 MovieClip Frame 91
"segment4"Symbol 987 MovieClip Frame 130
"segment5"Symbol 987 MovieClip Frame 340
"default"Symbol 1056 MovieClip Frame 2
"Hurt"Symbol 1056 MovieClip Frame 3
"Dead"Symbol 1056 MovieClip Frame 4
"segment1"Symbol 1123 MovieClip Frame 1
"segment2"Symbol 1123 MovieClip Frame 88
"segment3"Symbol 1123 MovieClip Frame 191
"segment4"Symbol 1123 MovieClip Frame 224
"segment5"Symbol 1123 MovieClip Frame 418
"segment6"Symbol 1123 MovieClip Frame 437

Dynamic Text Variables

txtPercentageSymbol 16 EditableText"0% loaded"
rocksloadedSymbol 41 EditableText"1"
rocksloadedSymbol 42 EditableText"1"
pointvalueSymbol 178 EditableText"+1"
pointvalueSymbol 179 EditableText"+1"
pagenumberSymbol 186 EditableText"###"
lastpageSymbol 187 EditableText"###"
textBLOCKSymbol 190 EditableText"Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
BarrelLabelSymbol 401 EditableText"#/#"
variablecheckedSymbol 502 EditableText"variablechecker"
_root.player1pointsSymbol 509 EditableText"########"
_root.pointratioSymbol 510 EditableText"########"
_root.levelTIMESTRSymbol 511 EditableText"########"
_root.leveldeathsSymbol 518 EditableText"########"
_root.player1pointsSymbol 543 EditableText"########"
_root.pointratioSymbol 544 EditableText"########"
_root.levelTIMESTRSymbol 549 EditableText"########"
_root.leveldeathsSymbol 552 EditableText"########"
_root.player1pointsSymbol 624 EditableText"########"
_root.pointratioSymbol 625 EditableText"########"
_root.levelTIMESTRSymbol 630 EditableText"########"
_root.leveldeathsSymbol 633 EditableText"########"
_root.player1pointsSymbol 660 EditableText"########"
_root.pointratioSymbol 661 EditableText"########"
_root.levelTIMESTRSymbol 666 EditableText"########"
_root.leveldeathsSymbol 669 EditableText"########"
_root.player1pointsSymbol 729 EditableText"########"
_root.pointratioSymbol 730 EditableText"########"
_root.levelTIMESTRSymbol 735 EditableText"########"
_root.leveldeathsSymbol 738 EditableText"########"
_root.player1pointsSymbol 773 EditableText"########"
_root.pointratioSymbol 774 EditableText"########"
_root.levelTIMESTRSymbol 779 EditableText"########"
_root.leveldeathsSymbol 782 EditableText"########"
_root.player1pointsSymbol 852 EditableText"########"
_root.pointratioSymbol 853 EditableText"########"
_root.levelTIMESTRSymbol 858 EditableText"########"
_root.leveldeathsSymbol 861 EditableText"########"
_root.player1pointsSymbol 903 EditableText"########"
_root.pointratioSymbol 904 EditableText"########"
_root.levelTIMESTRSymbol 909 EditableText"########"
_root.leveldeathsSymbol 912 EditableText"########"
_root.levelTIMESTRSymbol 1060 EditableText"########"
_root.leveldeathsSymbol 1063 EditableText"########"
_root.GAMEplayer1pointsSymbol 1127 EditableText"########"
_root.GAMEpointratioSymbol 1128 EditableText"########"
_root.gameTIMESTRSymbol 1134 EditableText"########"
_root.gamedeathsSymbol 1137 EditableText"########"




http://swfchan.com/6/25139/info.shtml
Created: 24/5 -2019 01:38:35 Last modified: 24/5 -2019 01:38:35 Server time: 14/11 -2024 22:52:58