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

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

armorgames evade-6812.swf

This is the info page for
Flash #263388

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


Text
Brought to you by:

99%

PLAY

100%

PLAY

function

ZETTA

JAQ

MUSIC

SOUND

QUALITY

Q

Q

eVADE

BEGIN

LEVEL SELECTION

PLAY MORE GAMES

BEGIN

LEVEL SELECTION

PLAY MORE GAMES

ZETTA FUNCTION '10  [v.3]

MUSIC - JAQ

FOR MORE AWESOME

FOLLOW US
ON TWITTER

OUR
FACEBOOK

MENU

MENU

FINAL RESULTS

0

Failures

CLEAR DATA

CLEAR DATA

CLEAR DATA

Are you sure?

NO

YES

Choose A Level

BACK

BACK

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

FAILURES:

0

TOTAL FAILURES:

0

CONGRATULATIONS!

It only took you

0

failures to complete the project!

TESTING ::

[Information]

CHAM
28

FAILURE  #

99

RETRY

SKIP LEVEL

MAIN MENU

Success

Completed

[TEST]

Test
#

99

::

[TEST HERE]

CHAM
03

CHAM
36

CHAM
24

SPACE

JUMP  -

MOVE  -

JUMP

DOUBLE JUMP

SUPER JUMP

WALL JUMP

DASH

AIR DASH

CRAWL

DIVE

HOVER

DIAGONAL SUPER JUMP

WAIT        SUPER JUMP

CHAM
37

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

READY

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

3

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

2

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

1

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">041</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">083</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">125</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">166</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">208</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">249</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">290</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">332</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">374</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">415</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">457</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">498</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">540</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">582</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">623</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">665</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">706</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">748</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">790</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">831</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">873</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">914</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">956</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">999</font></font></p>

99

CHAM
31

CHAM
11

CHAM
25

CHAM
12

CHAM
33

CHAM
18

CHAM
38

CHAM
17

CHAM
20

CHAM
26

CHAM
40

CHAM
06

CHAM
35

CHAM
23

CHAM
39

CHAM
30

CHAM
32

CHAM
27

CHAM
34

CHAM
29

CHAM
21

CHAM
22

CHAM
15

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">000</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">041</font></font></p>

99

secs

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">083</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">125</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">166</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">208</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">249</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">290</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">332</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">374</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">415</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">457</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">498</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">540</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">582</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">623</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">665</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">706</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">748</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">790</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">831</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">873</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">914</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">956</font></font></p>

<p align="left"><font face="_sans" size="57" color="#e15959" letterSpacing="0.000000" kerning="0">.<font size="27">999</font></font></p>

99

CHAM
13

CHAM
14

CHAM
16

CHAM
19

CHAM
02

CHAM
04

CHAM
01

SPACE

JUMP

(IN AIR)   +

DOUBLE JUMP

(HOLD)

+

CRAWL

SUPER JUMP

(QUICK TAP)

DASH

(IN AIR)

AIR DASH

(AGAINST WALL)     +

WALL JUMP

DIVE

HOVER

SUCCESS

Welcome to our assessment chambers.

[Space]

We have been conducting experiments for
a secret project:

To create the most indestructible unit
in the universe.

And that project is you.

Please stand on the target to
demonstrate our results.

As you've probably noticed.
You are not indestructible.

Indestructibility is impossible.

So! We have come up with an alternative.

We will train you to become untouchable instead of
being indestructible.

You cannot be destroyed if nothing
can even touch you right?

We have equipped you with all you need to be able to
evade any danger that comes to you.

We will now give you this time to familiarize with
moving your body.

You've completed your introduction to the project.

You will now be put into our many assessment
chambers to evaluate your success.

Your failures will be recorded, and at the end you will
be notified with the total.

Don't worry, we can rebuild you infinitely. But it's better
to keep your failures at a minimum.

If the current challenge becomes too tough, feel no
shame in skipping that level.

Just make sure you come back to complete it
afterwards.

Now if you could exit, we can
proceed with the testing.

CHAM
05

CHAM
10

CHAM
09

CHAM
07

CHAM
08

CHAM
99

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
function playerHit() { if (_root.engAllowDeath) { _root.mainPlayer._visible = false; _root.attachMovie("sprDeath", "sprDeath", 99998); if (_root.mainPlayer._xscale < 0) { _root.sprDeath._xscale = -100; } else { _root.sprDeath._xscale = 100; } _root.sprDeath._yscale = 100; _root.sprDeath._x = _root.mainPlayer._x; _root.sprDeath._y = _root.mainPlayer._y; _root.mainPlayer._x = -100; _root.mainPlayer._y = -100; _root.totalDeaths++; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("death"); var _local2 = SharedObject.getLocal("Evade"); _local2.data.totalDeaths = _root.totalDeaths; _local2.flush(); _root.levelSpeedTimer.gotoAndStop(1); _root.engAllowDeath = false; _root.mainThought._visible = false; } } function clearBullets() { var _local3 = 0; var _local2 = 0; while (_local3 < 35) { _local2 = 0; while (_local2 <= 100) { _root[("bul" + _local3) + _local2].removeMovieClip(); _local2++; } _local3++; } } function respawnPlayer() { _root.mainPlayer._visible = true; _root.engReset = true; _root.engAllowDeath = true; _root.mainPlayer._x = xSpawn; _root.mainPlayer._y = ySpawn; if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.levelReaction.gotoAndStop(1); _root.engBounds.levelMovingPlats2.gotoAndPlay(50); } function playerHitIntro() { if (_root.engAllowDeath) { _root.mainPlayer._visible = false; _root.attachMovie("sprDeath", "sprDeath", 99998); if (_root.mainPlayer._xscale < 0) { _root.sprDeath._xscale = -100; } else { _root.sprDeath._xscale = 100; } _root.sprDeath._yscale = 100; _root.sprDeath._x = _root.mainPlayer._x; _root.sprDeath._y = _root.mainPlayer._y; _root.mainPlayer._x = -100; _root.mainPlayer._y = -100; _root.engAllowDeath = false; _root.levelSpeach.play(); _root.levelStopper = false; } } stop(); fxSelection = new Sound(); fxSelection.attachSound("fxSelection"); fxSelection2 = new Sound(); fxSelection2.attachSound("fxSelection2"); mscTitle = new Sound(); mscTitle.attachSound("mscTitle"); mscNormal = new Sound(); mscNormal.attachSound("mscNormal"); mscDance = new Sound(); mscDance.attachSound("mscDance"); mscHardcore = new Sound(); mscHardcore.attachSound("mscHardcore"); fxFart1 = new Sound(); fxFart1.attachSound("fxFart1"); fxFart2 = new Sound(); fxFart2.attachSound("fxFart2"); fxFart3 = new Sound(); fxFart3.attachSound("fxFart3"); _root.soundCurrent = "title"; _root.soundOn = true; _root.disLevelName = new Array(40); _root.disLevelName[0] = "Introduction"; _root.disLevelName[1] = "The Basics"; _root.disLevelName[2] = "Performance in a Tunnel"; _root.disLevelName[3] = "Vertical Boost Capabilities"; _root.disLevelName[4] = "Hop Timing"; _root.disLevelName[5] = "Competency with Simple Stairs"; _root.disLevelName[6] = "Precision Landing"; _root.disLevelName[7] = "General Speed"; _root.disLevelName[8] = "Ascension and Descension"; _root.disLevelName[9] = "Fear of Tight Spaces"; _root.disLevelName[10] = "Competency of Falling, Floating and Climbing"; _root.disLevelName[11] = "Infiltration Skills of a Laser-Guarded Fortress"; _root.disLevelName[12] = "Aerial Maneuvering Skills"; _root.disLevelName[13] = "Mobility in Deep Space"; _root.disLevelName[14] = "Patience"; _root.disLevelName[15] = "Dexterity within Circles of Danger"; _root.disLevelName[16] = "Potential Ability to Use an Underground Subway"; _root.disLevelName[17] = "Focused Speed"; _root.disLevelName[18] = "Ability to Read Patterns"; _root.disLevelName[19] = "Hurdle Jumping Skills"; _root.disLevelName[20] = "Paranoia"; _root.disLevelName[21] = "Operation within Malfunction"; _root.disLevelName[22] = "Performance in Low Visibility"; _root.disLevelName[23] = "Basic Reaction Speed"; _root.disLevelName[24] = "Simplistic Timing of Deporting from a Vehicle"; _root.disLevelName[25] = "Air Movement Control and Timing"; _root.disLevelName[26] = "Performance with Forced Hyperactivity"; _root.disLevelName[27] = "Accuracy of Diagonal Movement"; _root.disLevelName[28] = "High Speed"; _root.disLevelName[29] = "Visualization and Imagination"; _root.disLevelName[30] = "Ninja-Like Movements"; _root.disLevelName[31] = "Humor"; _root.disLevelName[32] = "Perseverance when Working Around the Clock"; _root.disLevelName[33] = "Ability to Deal with a Sticky Situation"; _root.disLevelName[34] = "Tolerance of Gradually Decreasing Temperature"; _root.disLevelName[35] = "Jumping Aim into a Precise Target"; _root.disLevelName[36] = "Concentration and Speed"; _root.disLevelName[37] = "Punctuality in Catching Moving Transportation"; _root.disLevelName[38] = "Capability to Cope with Depressing Weather"; _root.disLevelName[39] = "Determination to Conquer the Waterfall of Fire"; root_cm = new ContextMenu(); root_cm.hideBuiltInItems(); _root.menu = root_cm; var savefile = SharedObject.getLocal("Evade"); if (savefile.data.levelStatus == undefined) { savefile.data.levelStatus = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2); savefile.data.levelLocked = new Array(1, 1, 1, 1, 1); savefile.data.totalCompletedLevels = 0; savefile.data.totalDeaths = 0; savefile.data.totalDeathsFinal = 0; savefile.data.gameDone = false; savefile.flush(); _root.levelStatus = savefile.data.levelStatus; _root.levelLocked = savefile.data.levelLocked; _root.totalCompletedLevels = savefile.data.totalCompletedLevels; _root.totalDeaths = savefile.data.totalDeaths; _root.totalDeathsFinal = savefile.data.totalDeathsFinal; _root.gameDone = savefile.data.gameDone; } else { _root.levelStatus = savefile.data.levelStatus; _root.levelLocked = savefile.data.levelLocked; _root.totalCompletedLevels = savefile.data.totalCompletedLevels; _root.totalDeaths = savefile.data.totalDeaths; _root.totalDeathsFinal = savefile.data.totalDeathsFinal; _root.gameDone = savefile.data.gameDone; }
Frame 3
var chosenMusic = "title"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 161 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.totalCompletedLevels == 40) { gotoAndStop (2); } }
Frame 4
var chosenMusic = "title"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 190 MovieClip "00" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "10" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "20" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "30" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "40" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "50" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "60" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "70" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "81" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "91" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "101" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "111" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "121" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "131" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "141" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "151" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "162" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "172" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "182" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "192" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "202" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "212" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "222" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "232" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "243" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "253" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "263" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "273" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "283" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "293" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "303" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "313" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "324" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "334" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "344" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "354" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "364" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "374" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "384" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "394" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 237 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.totalCompletedLevels == 40) { if (_root.totalDeathsFinal == 0) { _root.totalDeathsFinal = _root.totalDeaths; var savefile = SharedObject.getLocal("Evade"); savefile.data.totalDeathsFinal = _root.totalDeathsFinal; savefile.flush(); } gotoAndStop (2); } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.totalCompletedLevels == 40) { if (!_root.gameDone) { _root.gameDone = true; var savefile = SharedObject.getLocal("Evade"); savefile.data.totalDeathsFinal = _root.totalDeathsFinal; savefile.data.gameDone = _root.gameDone; savefile.flush(); gotoAndStop (2); } } }
Instance of Symbol 255 MovieClip "disLevelDisplayer" in Frame 4
onClipEvent (enterFrame) { startDrag ("", true); }
Frame 5
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 28; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 5
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 5
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 5
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 5
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 385 MovieClip "mainOverlay" in Frame 5
onClipEvent (load) { this.swapDepths(999999); }
Instance of Symbol 392 MovieClip "miscEntrance" in Frame 5
onClipEvent (enterFrame) { this.swapDepths(999999); }
Instance of Symbol 367 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { _root.playerHit(); } }
Instance of Symbol 367 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (!_root.engSuccess) { _root.engSuccess = true; _root.engAllowDeath = false; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("success"); } } }
Frame 6
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 3; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "1" in Frame 6
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 50; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 6
onClipEvent (load) { var bulletTime = 25; var bulletSpawnTime = 50; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 6
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 7
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 36; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 7
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 7
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 7
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = -5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 8
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 24; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 411 MovieClip "2" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "1" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "0" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "5" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "4" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "3" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "8" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -15; var ySpeed = 0; var levelSwitch = 2; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 2; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "7" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -15; var ySpeed = 0; var levelSwitch = 2; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 2; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "6" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -15; var ySpeed = 0; var levelSwitch = 2; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 2; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 367 MovieClip in Frame 8
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("reaction"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 439 MovieClip "mainThought" in Frame 8
onClipEvent (load) { var visualTime = 0; var visualMax = 140; _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_visible) { if (visualTime <= -1) { visualTime--; } else { visualTime++; } if (visualTime >= visualMax) { visualTime = -1; } if (visualTime == 1) { _alpha = 10; } else if (visualTime == 3) { _alpha = 50; } else if (visualTime == 5) { _alpha = 70; } else if (visualTime == 8) { _alpha = 85; } else if (visualTime == 11) { _alpha = 95; } else if (visualTime == 14) { _alpha = 100; } _x = _root.mainPlayer._x; _y = _root.mainPlayer._y; if (visualTime == -1) { _alpha = 95; } else if (visualTime == -3) { _alpha = 85; } else if (visualTime == -5) { _alpha = 70; } else if (visualTime == -8) { _alpha = 50; } else if (visualTime == -11) { _alpha = 20; } else if (visualTime == -14) { _visible = false; } } if (!_visible) { _alpha = 0; var visualTime = 0; } }
Instance of Symbol 446 MovieClip "levelReaction" in Frame 8
onClipEvent (load) { _root.levelSwitches = new Array(0, 0, 0); _root.levelReactionTime = 0; } onClipEvent (enterFrame) { if (_root.engReset) { _root.levelSwitches = new Array(0, 0, 0); _root.levelReactionTime = 0; } }
Frame 9
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 37; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 9
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 9
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 9
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 9
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 9
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 455 MovieClip in Frame 9
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 9
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 503 MovieClip "levelSpeedTimer" in Frame 9
onClipEvent (load) { _root.levelSeconds = 6; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 6; gotoAndPlay (1); } } }
Frame 10
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 31; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 10
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 10
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 10
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 10
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 10
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 11
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 11; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 11
onClipEvent (load) { var bulletTime = 16; var bulletSpawnTime = 32; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 11
onClipEvent (load) { var bulletTime = 8; var bulletSpawnTime = 32; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 11
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 32; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 525 MovieClip in Frame 11
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 11
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 367 MovieClip in Frame 11
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("hover"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 439 MovieClip "mainThought" in Frame 11
onClipEvent (load) { var visualTime = 0; var visualMax = 140; _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_visible) { if (visualTime <= -1) { visualTime--; } else { visualTime++; } if (visualTime >= visualMax) { visualTime = -1; } if (visualTime == 1) { _alpha = 10; } else if (visualTime == 3) { _alpha = 50; } else if (visualTime == 5) { _alpha = 70; } else if (visualTime == 8) { _alpha = 85; } else if (visualTime == 11) { _alpha = 95; } else if (visualTime == 14) { _alpha = 100; } _x = _root.mainPlayer._x; _y = _root.mainPlayer._y; if (visualTime == -1) { _alpha = 95; } else if (visualTime == -3) { _alpha = 85; } else if (visualTime == -5) { _alpha = 70; } else if (visualTime == -8) { _alpha = 50; } else if (visualTime == -11) { _alpha = 20; } else if (visualTime == -14) { _visible = false; } } if (!_visible) { _alpha = 0; var visualTime = 0; } }
Frame 12
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 25; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 12
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 12
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 12
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 12
onClipEvent (load) { var bulletTime = 10; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 12
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 13
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 12; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 455 MovieClip in Frame 13
onClipEvent (load) { var spinSpeed = -1; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 411 MovieClip "0" in Frame 13
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "1" in Frame 13
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 50; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "2" in Frame 13
onClipEvent (load) { var bulletTime = 25; var bulletSpawnTime = 50; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "3" in Frame 13
onClipEvent (load) { var bulletTime = 25; var bulletSpawnTime = 50; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Frame 14
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 33; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "2" in Frame 14
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 135; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = -8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 14
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 45; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = -8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 14
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 14
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 14
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 455 MovieClip in Frame 14
onClipEvent (load) { var spinSpeed = 0.5; var levelStart = 0; } onClipEvent (enterFrame) { if (_root.engReset) { _rotation = 0; levelStart = 0; } if (levelStart <= 52) { levelStart++; } else { _rotation = (_rotation + spinSpeed); } var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 15
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 18; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 15
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 42; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 15
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 503 MovieClip "levelSpeedTimer" in Frame 15
onClipEvent (load) { _root.levelSeconds = 12; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 12; gotoAndPlay (1); } } }
Frame 16
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 38; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 16
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 16
onClipEvent (load) { var bulletTime = 10; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 6; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 16
onClipEvent (load) { var bulletTime = 14; var bulletSpawnTime = 50; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 3; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 16
onClipEvent (load) { var bulletTime = 22; var bulletSpawnTime = 45; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 16
onClipEvent (load) { var bulletTime = 44; var bulletSpawnTime = 45; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "8" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "9" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "10" in Frame 16
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "11" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 525 MovieClip in Frame 16
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 16
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 17
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 17; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 17
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 17
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 17
onClipEvent (load) { var bulletTime = 24; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 17
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 402 MovieClip in Frame 17
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 17
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 72; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 17
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 72; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = -5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 18
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 20; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 18
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 18
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 19
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 26; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 19
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 19
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 411 MovieClip "0" in Frame 19
onClipEvent (load) { var bulletTime = 49; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "1" in Frame 19
onClipEvent (load) { var bulletTime = 42; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "2" in Frame 19
onClipEvent (load) { var bulletTime = 35; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "3" in Frame 19
onClipEvent (load) { var bulletTime = 28; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "4" in Frame 19
onClipEvent (load) { var bulletTime = 21; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "5" in Frame 19
onClipEvent (load) { var bulletTime = 14; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "6" in Frame 19
onClipEvent (load) { var bulletTime = 7; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "7" in Frame 19
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Frame 20
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 40; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 525 MovieClip in Frame 20
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 1; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "0" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 20
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 20
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 20
onClipEvent (load) { var bulletTime = 30; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 20
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "8" in Frame 20
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 21
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 6; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "1" in Frame 21
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 42; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = true; var delayCount = 0; var delaySwitch = 3; var delayDuration = -24; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 21
onClipEvent (load) { var bulletTime = 21; var bulletSpawnTime = 42; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = true; var delayCount = 0; var delaySwitch = 3; var delayDuration = -24; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 21
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 21
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 21
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 21
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 22
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 35; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 455 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 22
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; var defaultSpeedHori = 10; var freezetime = 0; var freezemax = 42; } onClipEvent (enterFrame) { freezetime++; if (freezetime == freezemax) { if (defaultSpeedHori != 0) { defaultSpeedHori--; freezetime = 0; } } var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; var defaultSpeedHori = 10; var freezetime = 0; var freezemax = 42; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 611 MovieClip in Frame 22
onClipEvent (load) { var total = 440; var time = 0; var per = 0; } onClipEvent (enterFrame) { if (time != total) { time++; per = int((time / total) * 100); this._alpha = per; } else if (time == total) { _root.playerHit(); total = 440; time = 0; per = 0; } if (_root.engReset) { total = 440; time = 0; per = 0; } }
Frame 23
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 23; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 23
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 23
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 23
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 23
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 120; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 23
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 620 MovieClip "levelLowVisibilty" in Frame 23
onClipEvent (enterFrame) { this.swapDepths(99999); }
Frame 24
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 39; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 411 MovieClip "0" in Frame 24
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "1" in Frame 24
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "2" in Frame 24
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "3" in Frame 24
onClipEvent (load) { var bulletTime = 13; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "4" in Frame 24
onClipEvent (load) { var bulletTime = 13; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "5" in Frame 24
onClipEvent (load) { var bulletTime = 22; var bulletSpawnTime = 30; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 1; var delaySwitch = 2; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "7" in Frame 24
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "8" in Frame 24
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "9" in Frame 24
onClipEvent (load) { var bulletTime = 11; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "10" in Frame 24
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "11" in Frame 24
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "13" in Frame 24
onClipEvent (load) { var bulletTime = 23; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "14" in Frame 24
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "15" in Frame 24
onClipEvent (load) { var bulletTime = 15; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "17" in Frame 24
onClipEvent (load) { var bulletTime = 21; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "18" in Frame 24
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "19" in Frame 24
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "20" in Frame 24
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "21" in Frame 24
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Frame 25
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 30; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "4" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -60; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 25
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 455 MovieClip in Frame 25
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 25
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 525 MovieClip in Frame 25
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Frame 26
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 32; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 26
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; var fartTime = 0; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { var fartTime = 0; modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 27
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 27; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 411 MovieClip "0" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "1" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "2" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 2; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "3" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 2; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "4" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "5" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "6" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 50; var bulletType = "PurpleLaser2"; var bulletRotation = 180; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -50; var xSpeed = 12; var ySpeed = 0; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 27
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 25; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 25; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 28
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 34; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 28
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 29
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 29; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 455 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = 4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = 4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = -4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 29
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 503 MovieClip "levelSpeedTimer" in Frame 29
onClipEvent (load) { _root.levelSeconds = 5; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 5; gotoAndPlay (1); } } }
Frame 30
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 21; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 6; var delaySwitch = 7; var delayDuration = -80; var xSpeed = 0; var ySpeed = 10; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "13" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -300; var xSpeed = 0; var ySpeed = 10; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "11" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 90; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -25; var xSpeed = 0; var ySpeed = -8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 9; var delaySwitch = 10; var delayDuration = -70; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -150; var xSpeed = -8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "8" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 6; var delaySwitch = 10; var delayDuration = -150; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "14" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -400; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -190; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "10" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 1; var delaySwitch = 7; var delayDuration = -300; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "12" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 90; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -210; var xSpeed = 0; var ySpeed = -8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 90; var delayFunction = true; var delayCount = 0; var delaySwitch = 2; var delayDuration = -80; var xSpeed = 0; var ySpeed = -10; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 9; var delaySwitch = 10; var delayDuration = -220; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "9" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -220; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 525 MovieClip in Frame 30
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 1; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -110; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 30
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 31
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 22; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 525 MovieClip in Frame 31
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 1; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 402 MovieClip in Frame 31
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 31
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 31
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 31
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 31
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 31
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dUp = Key.isDown(40); var dRight = Key.isDown(37); var dLeft = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dDown = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 32
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 15; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 411 MovieClip "0" in Frame 32
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "1" in Frame 32
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "4" in Frame 32
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "5" in Frame 32
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "2" in Frame 32
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 411 MovieClip "3" in Frame 32
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 32
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 775 MovieClip "levelSpeedTimer" in Frame 32
onClipEvent (load) { _root.levelSeconds = 35; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 35; gotoAndPlay (1); } } }
Frame 33
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 13; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 411 MovieClip "2" in Frame 33
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 15; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 33
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 33
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 34
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 14; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 455 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 34
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 0.75; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 0.75; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 35
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 16; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 35
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 36
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 19; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 36
onClipEvent (load) { var bulletTime = 19; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 36
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 36
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 36
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 180; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 36
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 10; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 37
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 2; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 525 MovieClip in Frame 37
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "2" in Frame 37
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 37
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -56; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 37
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -56; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 439 MovieClip "mainThought" in Frame 37
onClipEvent (load) { var visualTime = 0; var visualMax = 140; _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_visible) { if (visualTime <= -1) { visualTime--; } else { visualTime++; } if (visualTime >= visualMax) { visualTime = -1; } if (visualTime == 1) { _alpha = 10; } else if (visualTime == 3) { _alpha = 50; } else if (visualTime == 5) { _alpha = 70; } else if (visualTime == 8) { _alpha = 85; } else if (visualTime == 11) { _alpha = 95; } else if (visualTime == 14) { _alpha = 100; } _x = _root.mainPlayer._x; _y = _root.mainPlayer._y; if (visualTime == -1) { _alpha = 95; } else if (visualTime == -3) { _alpha = 85; } else if (visualTime == -5) { _alpha = 70; } else if (visualTime == -8) { _alpha = 50; } else if (visualTime == -11) { _alpha = 20; } else if (visualTime == -14) { _visible = false; } } if (!_visible) { _alpha = 0; var visualTime = 0; } }
Instance of Symbol 367 MovieClip in Frame 37
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("crawl"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 367 MovieClip in Frame 37
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 2) { _root.mainThought.gotoAndStop("walljump"); _root.mainThought._visible = false; _root.levelThought = 3; } else if (_root.levelThought == 3) { _root.mainThought.gotoAndStop("walljump"); _root.mainThought._visible = true; _root.levelThought = 4; } } }
Frame 38
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 4; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 38
onClipEvent (load) { var bulletTime = 2; var bulletSpawnTime = 8; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 38
onClipEvent (load) { var bulletTime = 4; var bulletSpawnTime = 8; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 4; var delayDuration = -40; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 4; var delayDuration = -40; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 4; var delayDuration = -40; var xSpeed = -8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 4; var delayDuration = -40; var xSpeed = -8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 367 MovieClip in Frame 38
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("sprjump"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 367 MovieClip in Frame 38
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 2) { _root.mainThought.gotoAndStop("dive"); _root.mainThought._visible = false; _root.levelThought = 3; } else if (_root.levelThought == 3) { _root.mainThought.gotoAndStop("dive"); _root.mainThought._visible = true; _root.levelThought = 4; } } }
Frame 39
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 1; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.engAllowMovement = false; _root.mainPlayer._visible = false; _root.levelStopper = true; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 855 MovieClip "levelBlockVis" in Frame 39
onClipEvent (load) { _visible = false; }
Instance of Symbol 271 MovieClip "0" in Frame 39
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 1; var delayDuration = -999; var xSpeed = -12; var ySpeed = 0; var levelSwitch = 0; _root.levelSwitches = new Array(0, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[0] == 0) { _visible = false; } else if (_root.levelSwitches[0] == 3) { _visible = false; } else { _visible = true; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHitIntro(); _root.levelSwitches[0] = 2; } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 39
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; _root.engAllowMovement = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { _root.tutorialAllow = true; _root.tutorialDid = "stand"; modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; if (_root.tutorialAllow) { _root.tutorialDid = "sprjump"; if (dLeft || (dRight)) { _root.tutorialDid = "diasprjump"; } } } else { speedJump = speedInitial; if (_root.tutorialAllow) { _root.tutorialDid = "jump"; } } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; if (_root.tutorialAllow) { _root.tutorialDid = "walljump"; } } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; if (_root.tutorialAllow) { _root.tutorialDid = "walljump"; } } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; if (_root.tutorialAllow) { _root.tutorialDid = "dash"; if (modeJump || (modeFall)) { _root.tutorialDid = "airdash"; } } } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; if (_root.tutorialAllow) { _root.tutorialDid = "dash"; if (modeJump || (modeFall)) { _root.tutorialDid = "airdash"; } } } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; if (_root.tutorialAllow) { _root.tutorialDid = "dbljump"; } } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); if (_root.tutorialAllow) { _root.tutorialDid = "dive"; } } else if (modeVisual == "hover") { gotoAndStop ("hover"); if (_root.tutorialAllow) { _root.tutorialDid = "hover"; } } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 367 MovieClip in Frame 39
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (_root.levelStopper) { if (_root.levelSwitches[0] == 0) { _root.engAllowMovement = false; _root.levelTutTur.play(); _root.mainThought._visible = false; if (_root.levelSpeach._currentframe == 7) { _root.levelSpeach.nextFrame(); } } } } }
Frame 40
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 5; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 455 MovieClip in Frame 40
onClipEvent (load) { var spinSpeed = -2; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 40
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 40
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 367 MovieClip in Frame 40
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (!_root.engSuccess) { _root.engSuccess = true; _root.engAllowDeath = false; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("success"); } } }
Frame 41
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 10; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 58; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 6; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 58; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 6; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 3; var delayDuration = -13; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 3; var delayDuration = -13; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 41
onClipEvent (load) { var bulletTime = 36; var bulletSpawnTime = 72; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 525 MovieClip in Frame 41
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Frame 42
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 9; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "1" in Frame 42
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 8; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = true; var delayCount = 0; var delaySwitch = 1; var delayDuration = -48; var xSpeed = -9; var ySpeed = 9; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 42
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 9; var ySpeed = 9; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 525 MovieClip in Frame 42
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "3" in Frame 42
onClipEvent (load) { var bulletTime = 8; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 42
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 42
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 9; var ySpeed = 9; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 42
onClipEvent (load) { var bulletTime = 10; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 9; var ySpeed = 9; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 455 MovieClip in Frame 42
onClipEvent (load) { var spinSpeed = 2; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 43
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 7; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 43
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 28; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = -9; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 43
onClipEvent (load) { var bulletTime = 10; var bulletSpawnTime = 28; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 44
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 8; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "1" in Frame 44
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 44
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 44
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 180; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 44
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 180; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 44
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 2); } else if (ktimeRight == 3) { _x = (_x + 1); } else if (ktimeRight == 4) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 2); } else if (ktimeLeft == 3) { _x = (_x - 1); } else if (ktimeLeft == 4) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 503 MovieClip "levelSpeedTimer" in Frame 44
onClipEvent (load) { _root.levelSeconds = 9; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 9; gotoAndPlay (1); } } }
Frame 45
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 99; _root.engAllowDeath = true; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "title"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 45
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 46
_root.clearBullets(); gotoAndStop(_root.nextLevel);
Frame 47
_root.clearBullets(); gotoAndStop(_root.nextLevel);
Symbol 13 MovieClip [sprDeath] Frame 17
_root.sprDeath.removeMovieClip();
Symbol 15 MovieClip [fxRedFire] Frame 16
stop();
Symbol 25 MovieClip [splshRedFire] Frame 6
stop(); _root.removeMovieClip(_name);
Symbol 30 MovieClip [fxThrust] Frame 15
stop();
Symbol 52 Button
on (release) { _root.fxSelection.start(0, 1); _root.nextFrame(); }
Symbol 53 MovieClip Frame 1
_root.percentPreloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (_root.percentPreloaded != 100) { preloaderBar._xscale = _root.percentPreloaded; var loadedText = int(_root.percentPreloaded); _root.percentPreloadedDis = loadedText + "%"; } else { _root.percentPreloadedDis = "100%"; gotoAndStop (3); }
Symbol 53 MovieClip Frame 2
gotoAndPlay (1);
Symbol 55 Button
on (release) { getURL ("http://armorgames.com", "_blank"); }
Symbol 68 Button
on (press) { getURL ("http://www.armorgames.com", "_blank"); }
Symbol 71 MovieClip Frame 164
_root.nextFrame();
Symbol 82 MovieClip Frame 1
_root.mscTitle.start(0, 100);
Symbol 82 MovieClip Frame 245
_parent.nextFrame();
Symbol 83 Button
on (release) { nextFrame(); }
Symbol 87 Button
on (release) { _root.soundOn = false; stopAllSounds(); nextFrame(); }
Symbol 89 Button
on (release) { _root.soundOn = true; if (_root.soundCurrent == "title") { _root.mscTitle.start(0, 1); } else if (_root.soundCurrent == "normal") { _root.mscNormal.start(0, 1); } else if (_root.soundCurrent == "dance") { _root.mscDance.start(0, 1); } else if (_root.soundCurrent == "hardcore") { _root.mscHardcore.start(0, 1); } prevFrame(); }
Symbol 90 MovieClip Frame 1
stop();
Symbol 96 Button
on (release) { if (_root._quality == "HIGH") { _root._quality = "MEDIUM"; } else if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } else if (_root._quality == "LOW") { _root._quality = "HIGH"; } }
Symbol 108 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.gotoAndStop(39); }
Symbol 117 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); }
Symbol 118 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); }
Symbol 119 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (4); } on (keyPress "<Space>") { _root.fxSelection.start(0, 1); _root.gotoAndStop(39); }
Symbol 122 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); } on (keyPress "<Space>") { _root.fxSelection.start(0, 1); _root.gotoAndStop("frmLevel"); }
Symbol 123 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); }
Symbol 124 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.gotoAndStop("frmLevel"); }
Symbol 126 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); } on (keyPress "<Space>") { getURL ("http://armorgames.com", "_blank"); }
Symbol 127 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); }
Symbol 128 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); }
Symbol 129 MovieClip Frame 1
stop();
Symbol 137 Button
on (release) { getURL ("http://jaqoshinou.newgrounds.com", "_blank"); }
Symbol 141 Button
on (release) { getURL ("http://twitter.com/armorgames", "_blank"); }
Symbol 143 Button
on (release) { getURL ("http://www.facebook.com/pages/Armor-Games/19522089061", "_blank"); }
Symbol 147 Button
on (release) { _root.clearBullets(); gotoAndStop ("frmMenu"); }
Symbol 160 Button
on (release) { _root.mainClear.gotoAndStop(2); }
Symbol 161 MovieClip Frame 1
stop();
Symbol 171 Button
on (release) { gotoAndStop (1); }
Symbol 172 Button
on (release) { var savefile = SharedObject.getLocal("Evade"); savefile.data.levelStatus = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2); savefile.data.levelLocked = new Array(1, 1, 1, 1, 1); savefile.data.totalCompletedLevels = 0; savefile.data.totalDeaths = 0; savefile.data.totalDeathsFinal = 0; savefile.data.gameDone = false; savefile.flush(); _root.levelStatus = savefile.data.levelStatus; _root.levelLocked = savefile.data.levelLocked; _root.totalCompletedLevels = savefile.data.totalCompletedLevels; _root.totalDeaths = savefile.data.totalDeaths; _root.totalDeathsFinal = savefile.data.totalDeathsFinal; _root.gameDone = savefile.data.gameDone; stopAllSounds(); _root.gotoAndStop(1); }
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 30
stop();
Symbol 185 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } prevFrame(); }
Symbol 188 Button
on (rollOver) { if (_name.length == 2) { _root.levelNumChosen = _name.substr(0, 1); _root.disLevelDisplayer.gotoAndStop(2); } else if (_name.length == 3) { _root.levelNumChosen = _name.substr(0, 2); _root.disLevelDisplayer.gotoAndStop(2); } } on (rollOut) { _root.disLevelDisplayer.gotoAndStop(1); } on (release) { if (_name.length == 2) { if (_root.levelLocked[_name.substr(1, 1)] == 1) { num = int(_name.substr(0, 1)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } else if (_name.length == 3) { if (_root.levelLocked[_name.substr(2, 1)] == 1) { num = int(_name.substr(0, 2)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } }
Symbol 189 Button
on (rollOver) { if (_name.length == 2) { _root.levelNumChosen = _name.substr(0, 1); _root.disLevelDisplayer.gotoAndStop(2); } else if (_name.length == 3) { _root.levelNumChosen = _name.substr(0, 2); _root.disLevelDisplayer.gotoAndStop(2); } } on (rollOut) { _root.disLevelDisplayer.gotoAndStop(1); } on (release) { if (_name.length == 2) { if (_root.levelLocked[_name.substr(1, 1)] == 1) { num = int(_name.substr(0, 1)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } else if (_name.length == 3) { if (_root.levelLocked[_name.substr(2, 1)] == 1) { num = int(_name.substr(0, 2)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } }
Symbol 190 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 249 Button
on (release) { gotoAndStop (1); }
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
_root.disLevelDisplayer.gotoAndStop(1);
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop(); _root.nameDisplay = _root.disLevelName[_root.levelNumChosen];
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 8
gotoAndStop (1);
Symbol 314 MovieClip Frame 5
if ((Key.isDown(39) || (Key.isDown(37))) || (Key.isDown(40))) { gotoAndPlay (7); }
Symbol 314 MovieClip Frame 6
gotoAndPlay (4);
Symbol 314 MovieClip Frame 8
if (Key.isDown(40)) { gotoAndPlay (21); _root.engCrawl = true; }
Symbol 314 MovieClip Frame 14
if (Key.isDown(39) || (Key.isDown(37))) { play(); _root.engCrawl = true; } else { gotoAndPlay (21); } if (_root.tutorialAllow) { _root.tutorialDid = "crawl"; }
Symbol 314 MovieClip Frame 20
if (Key.isDown(39) || (Key.isDown(37))) { gotoAndPlay ("crawl"); } else { gotoAndPlay (21); }
Symbol 314 MovieClip Frame 21
if (Key.isDown(39) || (Key.isDown(37))) { gotoAndPlay ("crawl"); }
Symbol 314 MovieClip Frame 22
gotoAndPlay (21);
Symbol 320 MovieClip Frame 5
_root.visDashStopDone = true;
Symbol 328 MovieClip Frame 7
stop();
Symbol 338 MovieClip Frame 7
stop(); _root.visGetUpDone = true;
Symbol 351 MovieClip Frame 4
_root.visDashStopDone = true;
Symbol 369 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } nextFrame(); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); } on (keyPress "<Space>") { _root.clearBullets(); _root.respawnPlayer(); _parent.gotoAndStop(1); }
Symbol 370 Button
on (release) { _root.clearBullets(); _root.respawnPlayer(); _parent.gotoAndStop(1); }
Symbol 371 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); }
Symbol 372 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); }
Symbol 373 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } nextFrame(); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } prevFrame(); } on (keyPress "<Space>") { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.clearBullets(); if (_root.levelStatus[_root.engChamNum] == 1) { _root.nextLevel = "cham" + (_root.engChamNum + 1); _root.gotoAndStop("frmSwitch"); } else { _root.gotoAndStop("frmLevel"); } _root.levelLowVisibilty.swapDepths(-1); _parent.gotoAndStop(1); }
Symbol 374 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); }
Symbol 375 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.clearBullets(); if (_root.levelStatus[_root.engChamNum] == 1) { _root.nextLevel = "cham" + (_root.engChamNum + 1); _root.gotoAndStop("frmSwitch"); } else { _root.gotoAndStop("frmLevel"); } _root.levelLowVisibilty.swapDepths(-1); _parent.gotoAndStop(1); }
Symbol 376 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } prevFrame(); } on (keyPress "<Space>") { _root.clearBullets(); _root.levelLowVisibilty.swapDepths(-1); _root.gotoAndStop("frmMenu"); if (_root.soundOn) { _root.fxSelection.start(0, 1); } _parent.gotoAndStop(1); }
Symbol 377 Button
on (release) { _root.clearBullets(); _root.levelLowVisibilty.swapDepths(-1); _root.gotoAndStop("frmMenu"); if (_root.soundOn) { _root.fxSelection.start(0, 1); } _parent.gotoAndStop(1); }
Symbol 378 MovieClip Frame 1
if (soundOn) { _root.fxSelection2.start(0, 1); } stop();
Symbol 378 MovieClip Frame 2
if (soundOn) { _root.fxSelection2.start(0, 1); }
Symbol 378 MovieClip Frame 3
if (soundOn) { _root.fxSelection2.start(0, 1); }
Symbol 383 MovieClip Frame 1
var chamNum = (int(_root.engChamNum) - 1); _root.displaySuccess = _root.disLevelName[chamNum];
Symbol 384 MovieClip Frame 15
_root.clearBullets(); var savefile = SharedObject.getLocal("Evade"); var completeChamNum = (int(_root.engChamNum) - 1); if (_root.levelStatus[completeChamNum] == 1) { _root.levelStatus[completeChamNum] = 2; _root.totalCompletedLevels++; var savefile = SharedObject.getLocal("Evade"); savefile.data.totalCompletedLevels = _root.totalCompletedLevels; savefile.data.levelStatus = _root.levelStatus; savefile.flush(); } _root.levelLowVisibilty.gotoAndStop("clear"); _root.levelLowVisibilty.swapDepths(-1); if (_root.levelStatus[_root.engChamNum] == 1) { _root.nextLevel = "cham" + (_root.engChamNum + 1); _root.gotoAndStop("frmComSwitch"); } else { _root.gotoAndStop("frmLevel"); } _parent.gotoAndStop(1);
Symbol 385 MovieClip Frame 1
stop();
Instance of Symbol 367 MovieClip in Symbol 385 MovieClip Frame 2
onClipEvent (enterFrame) { _root.clearBullets(); }
Symbol 385 MovieClip Frame 15
stop();
Symbol 385 MovieClip Frame 65
stop();
Symbol 391 MovieClip Frame 1
_root.disTestName = _root.disLevelName[_root.engChamNum - 1];
Symbol 392 MovieClip Frame 56
stop();
Symbol 411 MovieClip Frame 10
gotoAndStop (1);
Symbol 439 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();
Instance of Symbol 266 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 367 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _parent.play(); } }
Instance of Symbol 266 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Symbol 446 MovieClip Frame 2
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Symbol 446 MovieClip Frame 79
_root.levelSwitches[0] = 1;
Symbol 446 MovieClip Frame 80
stop(); _root.levelSwitches[0] = 0;
Instance of Symbol 367 MovieClip in Symbol 446 MovieClip Frame 80
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _parent.play(); } }
Symbol 446 MovieClip Frame 169
_root.levelSwitches[1] = 1;
Symbol 446 MovieClip Frame 170
stop(); _root.levelSwitches[1] = 0;
Instance of Symbol 367 MovieClip in Symbol 446 MovieClip Frame 170
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _parent.play(); } }
Symbol 446 MovieClip Frame 254
_root.levelSwitches[2] = 1;
Symbol 446 MovieClip Frame 255
_root.levelSwitches[2] = 0;
Symbol 446 MovieClip Frame 310
stop();
Symbol 503 MovieClip Frame 2
_root.engAllowMovement = false;
Symbol 503 MovieClip Frame 96
_root.engReset = true; _root.engAllowMovement = true;
Symbol 503 MovieClip Frame 120
_root.levelSeconds--; if (_root.levelSeconds <= 0) { gotoAndStop (1); _root.playerHit(); } else { gotoAndPlay ("restart"); }
Symbol 525 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 188
gotoAndPlay (1);
Symbol 620 MovieClip Frame 189
stop();
Symbol 623 Button
on (release) { _root.levelLowVisibilty.swapDepths(-1); _root.levelLowVisibilty.gotoAndStop("clear"); _root.clearBullets(); gotoAndStop ("frmMenu"); }
Symbol 775 MovieClip Frame 2
_root.engAllowMovement = false;
Symbol 775 MovieClip Frame 96
_root.engReset = true; _root.engAllowMovement = true;
Symbol 775 MovieClip Frame 120
_root.levelSeconds--; if (_root.levelSeconds <= 0) { gotoAndStop (1); _root.levelSwitches[0] = 0; } else { gotoAndPlay ("restart"); }
Symbol 820 MovieClip Frame 97
gotoAndPlay (1);
Symbol 850 MovieClip Frame 217
_root.levelSpeach.gotoAndStop(2);
Symbol 850 MovieClip Frame 300
stop();
Symbol 850 MovieClip Frame 301
_root.introTutLevel = 1;
Symbol 850 MovieClip Frame 344
_root.tutorialDid = ""; _root.tutorialAllow = false;
Symbol 850 MovieClip Frame 345
stop(); _root.mainThought.gotoAndStop("jump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 345
onClipEvent (enterFrame) { if (_root.tutorialDid == "jump") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 346
stop(); _root.mainThought.gotoAndStop("dbljump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 346
onClipEvent (enterFrame) { if (_root.tutorialDid == "dbljump") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 347
stop(); _root.mainThought.gotoAndStop("crawl"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 347
onClipEvent (enterFrame) { if (_root.tutorialDid == "crawl") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 348
stop(); _root.mainThought.gotoAndStop("sprjump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 348
onClipEvent (enterFrame) { if (_root.tutorialDid == "sprjump") { _parent.gotoAndPlay("success"); } else if (_root.tutorialDid == "diasprjump") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 349
stop(); _root.mainThought.gotoAndStop("dash"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 349
onClipEvent (enterFrame) { if (_root.tutorialDid == "dash") { _parent.gotoAndPlay("success"); } else if (_root.tutorialDid == "airdash") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 350
stop(); _root.mainThought.gotoAndStop("airdash"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 350
onClipEvent (enterFrame) { if (_root.tutorialDid == "airdash") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 351
stop(); _root.mainThought.gotoAndStop("walljump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 351
onClipEvent (enterFrame) { if (_root.tutorialDid == "walljump") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 352
stop(); _root.mainThought.gotoAndStop("dive"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 352
onClipEvent (enterFrame) { if (_root.tutorialDid == "dive") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 353
stop(); _root.mainThought.gotoAndStop("hover"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 850 MovieClip Frame 353
onClipEvent (enterFrame) { if (_root.tutorialDid == "hover") { _parent.gotoAndPlay("success"); } }
Symbol 850 MovieClip Frame 354
if (_root.soundOn) { _root.fxSelection2.start(0, 1); } _root.introTutLevel++;
Symbol 850 MovieClip Frame 399
_root.tutorialDid = ""; _root.tutorialAllow = false; if (_root.introTutLevel == 1) { gotoAndStop ("jump"); } else if (_root.introTutLevel == 2) { gotoAndStop ("dbljump"); } else if (_root.introTutLevel == 3) { gotoAndStop ("crawl"); } else if (_root.introTutLevel == 4) { gotoAndStop ("sprjump"); } else if (_root.introTutLevel == 5) { gotoAndStop ("dive"); } else if (_root.introTutLevel == 6) { gotoAndStop ("dash"); } else if (_root.introTutLevel == 7) { gotoAndStop ("airdash"); } else if (_root.introTutLevel == 8) { gotoAndStop ("walljump"); } else if (_root.introTutLevel == 9) { gotoAndStop ("hover"); }
Symbol 850 MovieClip Frame 482
_root.levelSpeach.nextFrame();
Symbol 850 MovieClip Frame 535
stop();
Symbol 859 Button
on (release, keyPress "<Space>") { nextFrame(); }
Symbol 880 MovieClip Frame 1
stop();
Symbol 880 MovieClip Frame 3
_root.levelMonitor.gotoAndPlay("high");
Symbol 880 MovieClip Frame 4
_root.levelMonitor.gotoAndPlay("med");
Symbol 880 MovieClip Frame 5
_root.levelMonitor.gotoAndPlay("low");
Symbol 880 MovieClip Frame 6
_root.levelIntro.gotoAndPlay(2);
Symbol 880 MovieClip Frame 7
_root.levelMonitor.gotoAndPlay("med"); _root.mainThought._visible = true;
Symbol 880 MovieClip Frame 67
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 880 MovieClip Frame 68
stop(); _root.levelMonitor.gotoAndPlay("low");
Symbol 880 MovieClip Frame 69
stop(); _root.levelMonitor.gotoAndPlay("low");
Symbol 880 MovieClip Frame 70
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 880 MovieClip Frame 71
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 880 MovieClip Frame 72
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 880 MovieClip Frame 73
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 880 MovieClip Frame 74
_root.levelFlash.gotoAndPlay(2);
Symbol 880 MovieClip Frame 75
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 880 MovieClip Frame 76
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 880 MovieClip Frame 77
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 880 MovieClip Frame 78
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 880 MovieClip Frame 79
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 880 MovieClip Frame 80
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 880 MovieClip Frame 81
stop(); _root.levelFlash.gotoAndPlay("flash2"); _root.levelMonitor.gotoAndPlay("med");
Symbol 886 MovieClip Frame 1
stop(); stop();
Symbol 886 MovieClip Frame 95
_root.levelSwitches[0] = 1;
Symbol 886 MovieClip Frame 96
stop();
Symbol 888 MovieClip Frame 1
stop();
Instance of Symbol 367 MovieClip in Symbol 888 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (!_root.engSuccess) { _root.engSuccess = true; _root.engAllowDeath = false; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("success"); } } }
Symbol 892 MovieClip Frame 1
stop();
Symbol 892 MovieClip Frame 44
_root.mainPlayer._visible = true;
Symbol 892 MovieClip Frame 65
stop(); _root.engAllowMovement = true; _root.levelSpeach.nextFrame();
Symbol 895 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 2
_root.levelTarget._visible = false; _root.levelTutTur._visible = false; _root.levelTurCir._visible = false; _root.levelSwitches[0] = 3; _root.engReset = true; _root.engAllowMovement = true; _root.engBounds.block1.gotoAndStop(2); _root.respawnPlayer(); _root.levelMonitor.gotoAndPlay("tutorial");
Symbol 899 MovieClip Frame 30
stop(); _root.engAllowMovement = true;
Symbol 899 MovieClip Frame 32
_root.engBounds.block2.gotoAndStop(2); _root.levelExit.gotoAndStop(2); _root.levelBlockVis._visible = true;
Symbol 899 MovieClip Frame 65
stop();

Library Items

Symbol 1 GraphicUsed by:13
Symbol 2 GraphicUsed by:13
Symbol 3 GraphicUsed by:13
Symbol 4 GraphicUsed by:13
Symbol 5 GraphicUsed by:13
Symbol 6 GraphicUsed by:13
Symbol 7 GraphicUsed by:13
Symbol 8 GraphicUsed by:13
Symbol 9 GraphicUsed by:13
Symbol 10 GraphicUsed by:13
Symbol 11 GraphicUsed by:13
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip [sprDeath]Uses:1 2 3 4 5 6 7 8 9 10 11 12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [fxRedFire]Uses:14Used by:20
Symbol 16 GraphicUsed by:20
Symbol 17 GraphicUsed by:20
Symbol 18 GraphicUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip [bulRedFire]Uses:15 16 17 18 19
Symbol 21 GraphicUsed by:25
Symbol 22 GraphicUsed by:25
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip [splshRedFire]Uses:21 22 23 24
Symbol 26 GraphicUsed by:27 28
Symbol 27 MovieClip [bulPurpleLaser]Uses:26
Symbol 28 MovieClip [bulPurpleLaser2]Uses:26
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClip [fxThrust]Uses:29
Symbol 31 GraphicUsed by:Timeline
Symbol 32 FontUsed by:33
Symbol 33 TextUses:32Used by:Timeline
Symbol 34 GraphicUsed by:Timeline
Symbol 35 GraphicUsed by:71  Timeline
Symbol 36 GraphicUsed by:71  Timeline
Symbol 37 GraphicUsed by:Timeline
Symbol 38 GraphicUsed by:53
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:53
Symbol 41 GraphicUsed by:53
Symbol 42 FontUsed by:43 48 112 113 114 120 121 125 132 134 136 140 142 152 167 241 243 254 415 416 419 421 423 425 427 429 431 433 434 436 437 824 827 831 833 836 839 841 844 847 857 858 860 861 862 864 866 867 868 869 870 871 872 873 874 875 876 877 878 879
Symbol 43 EditableTextUses:42Used by:53
Symbol 44 GraphicUsed by:53
Symbol 45 FontUsed by:46 50 182 184
Symbol 46 TextUses:45Used by:52 53
Symbol 47 GraphicUsed by:53
Symbol 48 EditableTextUses:42Used by:53
Symbol 49 GraphicUsed by:52
Symbol 50 TextUses:45Used by:52
Symbol 51 GraphicUsed by:52
Symbol 52 ButtonUses:49 50 51 46Used by:53
Symbol 53 MovieClipUses:38 40 41 43 44 46 47 48 52Used by:Timeline
Symbol 54 GraphicUsed by:55 83 87 89 116 117 118 119 122 123 124 126 127 128 137 163 369 370 371 372 373 374 375 376 377
Symbol 55 ButtonUses:54Used by:129  Timeline
Symbol 56 GraphicUsed by:Timeline
Symbol 57 GraphicUsed by:Timeline
Symbol 58 GraphicUsed by:82
Symbol 59 SoundUsed by:71
Symbol 60 GraphicUsed by:71
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:71
Symbol 63 SoundUsed by:71
Symbol 64 SoundUsed by:71
Symbol 65 SoundUsed by:71
Symbol 66 GraphicUsed by:71
Symbol 67 GraphicUsed by:68
Symbol 68 ButtonUses:67Used by:71
Symbol 69 SoundUsed by:71
Symbol 70 SoundUsed by:71
Symbol 71 MovieClipUses:35 59 60 62 63 64 65 66 68 36 69 70Used by:82
Symbol 72 GraphicUsed by:82 97 147 176 384 392 611 620 623 899  Timeline
Symbol 73 GraphicUsed by:78
Symbol 74 FontUsed by:75
Symbol 75 TextUses:74Used by:78
Symbol 76 FontUsed by:77 110
Symbol 77 TextUses:76Used by:78
Symbol 78 MovieClipUses:73 75 77Used by:82
Symbol 79 FontUsed by:80 81
Symbol 80 TextUses:79Used by:82
Symbol 81 TextUses:79Used by:82
Symbol 82 MovieClipUses:58 71 72 78 80 81Used by:Timeline
Symbol 83 ButtonUses:54Used by:Timeline
Symbol 84 GraphicUsed by:90
Symbol 85 FontUsed by:86 91 93 95 144 146 149 151 165 173 174 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 233 234 235 236 239 242 253 359 360 362 363 364 380 381 382 387 388 389 390 460 464 468 472
Symbol 86 TextUses:85Used by:90
Symbol 87 ButtonUses:54Used by:90
Symbol 88 GraphicUsed by:90
Symbol 89 ButtonUses:54Used by:90
Symbol 90 MovieClipUses:84 86 87 88 89Used by:Timeline
Symbol 91 TextUses:85Used by:97
Symbol 92 GraphicUsed by:96
Symbol 93 TextUses:85Used by:96
Symbol 94 GraphicUsed by:96
Symbol 95 TextUses:85Used by:96
Symbol 96 ButtonUses:92 93 94 95Used by:97
Symbol 97 MovieClipUses:72 91 96Used by:Timeline
Symbol 98 GraphicUsed by:108 141 143
Symbol 99 Sound [mscNormal]Used by:108
Symbol 100 Sound [mscDance]Used by:108
Symbol 101 Sound [mscHardcore]Used by:108
Symbol 102 Sound [mscTitle]Used by:108
Symbol 103 Sound [fxFart1]Used by:108
Symbol 104 Sound [fxFart2]Used by:108
Symbol 105 Sound [fxFart3]Used by:108
Symbol 106 Sound [fxSelection]Used by:108
Symbol 107 Sound [fxSelection2]Used by:108
Symbol 108 MovieClipUses:98 99 100 101 102 103 104 105 106 107Used by:Timeline
Symbol 109 GraphicUsed by:Timeline
Symbol 110 TextUses:76Used by:Timeline
Symbol 111 GraphicUsed by:Timeline
Symbol 112 TextUses:42Used by:129
Symbol 113 TextUses:42Used by:129
Symbol 114 TextUses:42Used by:129
Symbol 115 GraphicUsed by:129
Symbol 116 ButtonUses:54Used by:129
Symbol 117 ButtonUses:54Used by:129
Symbol 118 ButtonUses:54Used by:129
Symbol 119 ButtonUses:54Used by:129
Symbol 120 TextUses:42Used by:129
Symbol 121 TextUses:42Used by:129
Symbol 122 ButtonUses:54Used by:129
Symbol 123 ButtonUses:54Used by:129
Symbol 124 ButtonUses:54Used by:129
Symbol 125 TextUses:42Used by:129
Symbol 126 ButtonUses:54Used by:129
Symbol 127 ButtonUses:54Used by:129
Symbol 128 ButtonUses:54Used by:129
Symbol 129 MovieClipUses:112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 55Used by:Timeline
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:Timeline
Symbol 132 TextUses:42Used by:Timeline
Symbol 133 GraphicUsed by:Timeline
Symbol 134 TextUses:42Used by:Timeline
Symbol 135 GraphicUsed by:Timeline
Symbol 136 TextUses:42Used by:137
Symbol 137 ButtonUses:54 136Used by:Timeline
Symbol 138 GraphicUsed by:Timeline
Symbol 139 GraphicUsed by:Timeline
Symbol 140 TextUses:42Used by:141
Symbol 141 ButtonUses:98 140Used by:Timeline
Symbol 142 TextUses:42Used by:143
Symbol 143 ButtonUses:98 142Used by:Timeline
Symbol 144 TextUses:85Used by:147 623
Symbol 145 GraphicUsed by:147 623
Symbol 146 TextUses:85Used by:147 623
Symbol 147 ButtonUses:72 144 145 146Used by:Timeline
Symbol 148 GraphicUsed by:161
Symbol 149 TextUses:85Used by:161
Symbol 150 GraphicUsed by:161
Symbol 151 EditableTextUses:85Used by:161
Symbol 152 TextUses:42Used by:161
Symbol 153 GraphicUsed by:160
Symbol 154 FontUsed by:155 158
Symbol 155 TextUses:154Used by:160
Symbol 156 GraphicUsed by:160
Symbol 157 GraphicUsed by:160
Symbol 158 TextUses:154Used by:160
Symbol 159 GraphicUsed by:160
Symbol 160 ButtonUses:153 155 156 157 158 159Used by:161  Timeline
Symbol 161 MovieClipUses:148 149 150 151 152 160Used by:Timeline
Symbol 162 GraphicUsed by:175 251
Symbol 163 ButtonUses:54Used by:175 251
Symbol 164 GraphicUsed by:175
Symbol 165 TextUses:85Used by:175
Symbol 166 GraphicUsed by:175
Symbol 167 TextUses:42Used by:175
Symbol 168 GraphicUsed by:171 172 189
Symbol 169 GraphicUsed by:171 172 189
Symbol 170 GraphicUsed by:171 172 189
Symbol 171 ButtonUses:168 169 170Used by:175
Symbol 172 ButtonUses:168 169 170Used by:175
Symbol 173 TextUses:85Used by:175
Symbol 174 TextUses:85Used by:175
Symbol 175 MovieClipUses:162 163 164 165 166 167 171 172 173 174Used by:Timeline
Symbol 176 MovieClipUses:72Used by:Timeline
Symbol 177 GraphicUsed by:Timeline
Symbol 178 FontUsed by:179
Symbol 179 TextUses:178Used by:Timeline
Symbol 180 GraphicUsed by:Timeline
Symbol 181 GraphicUsed by:185
Symbol 182 TextUses:45Used by:185
Symbol 183 GraphicUsed by:185
Symbol 184 TextUses:45Used by:185
Symbol 185 ButtonUses:181 182 183 184Used by:Timeline
Symbol 186 GraphicUsed by:188
Symbol 187 GraphicUsed by:188
Symbol 188 ButtonUses:186 187Used by:190
Symbol 189 ButtonUses:168 169 170Used by:190
Symbol 190 MovieClipUses:188 189Used by:Timeline
Symbol 191 TextUses:85Used by:Timeline
Symbol 192 TextUses:85Used by:Timeline
Symbol 193 TextUses:85Used by:Timeline
Symbol 194 TextUses:85Used by:Timeline
Symbol 195 TextUses:85Used by:Timeline
Symbol 196 TextUses:85Used by:Timeline
Symbol 197 TextUses:85Used by:Timeline
Symbol 198 TextUses:85Used by:Timeline
Symbol 199 TextUses:85Used by:Timeline
Symbol 200 TextUses:85Used by:Timeline
Symbol 201 TextUses:85Used by:Timeline
Symbol 202 TextUses:85Used by:Timeline
Symbol 203 TextUses:85Used by:Timeline
Symbol 204 TextUses:85Used by:Timeline
Symbol 205 TextUses:85Used by:Timeline
Symbol 206 TextUses:85Used by:Timeline
Symbol 207 TextUses:85Used by:Timeline
Symbol 208 TextUses:85Used by:Timeline
Symbol 209 TextUses:85Used by:Timeline
Symbol 210 TextUses:85Used by:Timeline
Symbol 211 TextUses:85Used by:Timeline
Symbol 212 TextUses:85Used by:Timeline
Symbol 213 TextUses:85Used by:Timeline
Symbol 214 TextUses:85Used by:Timeline
Symbol 215 TextUses:85Used by:Timeline
Symbol 216 TextUses:85Used by:Timeline
Symbol 217 TextUses:85Used by:Timeline
Symbol 218 TextUses:85Used by:Timeline
Symbol 219 TextUses:85Used by:Timeline
Symbol 220 TextUses:85Used by:Timeline
Symbol 221 TextUses:85Used by:Timeline
Symbol 222 TextUses:85Used by:Timeline
Symbol 223 TextUses:85Used by:Timeline
Symbol 224 TextUses:85Used by:Timeline
Symbol 225 TextUses:85Used by:Timeline
Symbol 226 TextUses:85Used by:Timeline
Symbol 227 TextUses:85Used by:Timeline
Symbol 228 TextUses:85Used by:Timeline
Symbol 229 TextUses:85Used by:Timeline
Symbol 230 TextUses:85Used by:Timeline
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:231Used by:Timeline
Symbol 233 TextUses:85Used by:237
Symbol 234 EditableTextUses:85Used by:237
Symbol 235 TextUses:85Used by:237
Symbol 236 EditableTextUses:85Used by:237
Symbol 237 MovieClipUses:233 234 235 236Used by:Timeline
Symbol 238 GraphicUsed by:251
Symbol 239 TextUses:85Used by:251
Symbol 240 GraphicUsed by:251
Symbol 241 TextUses:42Used by:251
Symbol 242 EditableTextUses:85Used by:251
Symbol 243 TextUses:42Used by:251
Symbol 244 GraphicUsed by:249 859
Symbol 245 GraphicUsed by:249 859
Symbol 246 GraphicUsed by:249 859
Symbol 247 GraphicUsed by:249 859
Symbol 248 GraphicUsed by:249 859
Symbol 249 ButtonUses:244 245 246 247 248Used by:251
Symbol 250 GraphicUsed by:251
Symbol 251 MovieClipUses:162 163 238 239 240 241 242 243 249 250Used by:Timeline
Symbol 252 GraphicUsed by:255
Symbol 253 TextUses:85Used by:255
Symbol 254 EditableTextUses:42Used by:255
Symbol 255 MovieClipUses:252 253 254Used by:Timeline
Symbol 256 GraphicUsed by:Timeline
Symbol 257 GraphicUsed by:Timeline
Symbol 258 FontUsed by:259 393 397 407 449 506 516 528 538 542 551 555 571 580 584 588 601 609 614 624 628 638 642 646 650 654 726 731 778 783 787 791 795 802 812 900 904 908 917 923 927
Symbol 259 TextUses:258Used by:Timeline
Symbol 260 GraphicUsed by:Timeline
Symbol 261 GraphicUsed by:264
Symbol 262 GraphicUsed by:264
Symbol 263 GraphicUsed by:264
Symbol 264 MovieClipUses:261 262 263Used by:266 455
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClipUses:264 265Used by:446  Timeline
Symbol 267 GraphicUsed by:Timeline
Symbol 268 GraphicUsed by:271
Symbol 269 GraphicUsed by:271
Symbol 270 GraphicUsed by:271
Symbol 271 MovieClipUses:268 269 270Used by:886  Timeline
Symbol 272 GraphicUsed by:Timeline
Symbol 273 GraphicUsed by:Timeline
Symbol 274 GraphicUsed by:302
Symbol 275 GraphicUsed by:302
Symbol 276 GraphicUsed by:302
Symbol 277 GraphicUsed by:302
Symbol 278 GraphicUsed by:302
Symbol 279 GraphicUsed by:302
Symbol 280 GraphicUsed by:302
Symbol 281 GraphicUsed by:302
Symbol 282 GraphicUsed by:302
Symbol 283 GraphicUsed by:302
Symbol 284 GraphicUsed by:302
Symbol 285 GraphicUsed by:302
Symbol 286 GraphicUsed by:302
Symbol 287 GraphicUsed by:302
Symbol 288 GraphicUsed by:302
Symbol 289 GraphicUsed by:302
Symbol 290 GraphicUsed by:302
Symbol 291 GraphicUsed by:302
Symbol 292 GraphicUsed by:302
Symbol 293 GraphicUsed by:302
Symbol 294 GraphicUsed by:302
Symbol 295 GraphicUsed by:302
Symbol 296 GraphicUsed by:302
Symbol 297 GraphicUsed by:302
Symbol 298 GraphicUsed by:302
Symbol 299 GraphicUsed by:302
Symbol 300 GraphicUsed by:302
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301Used by:355
Symbol 303 GraphicUsed by:355
Symbol 304 GraphicUsed by:314
Symbol 305 GraphicUsed by:314
Symbol 306 GraphicUsed by:314
Symbol 307 GraphicUsed by:314
Symbol 308 GraphicUsed by:314
Symbol 309 GraphicUsed by:314
Symbol 310 GraphicUsed by:314
Symbol 311 GraphicUsed by:314
Symbol 312 GraphicUsed by:314
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClipUses:304 305 306 307 308 309 310 311 312 313Used by:355
Symbol 315 GraphicUsed by:320
Symbol 316 GraphicUsed by:320
Symbol 317 GraphicUsed by:320
Symbol 318 GraphicUsed by:320
Symbol 319 GraphicUsed by:320
Symbol 320 MovieClipUses:315 316 317 318 319Used by:355
Symbol 321 GraphicUsed by:323
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:321 322Used by:355
Symbol 324 GraphicUsed by:328
Symbol 325 GraphicUsed by:328
Symbol 326 GraphicUsed by:328
Symbol 327 GraphicUsed by:328
Symbol 328 MovieClipUses:324 325 326 327Used by:355
Symbol 329 GraphicUsed by:330
Symbol 330 MovieClipUses:329Used by:355
Symbol 331 GraphicUsed by:333
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:331 332Used by:355
Symbol 334 GraphicUsed by:338
Symbol 335 GraphicUsed by:338
Symbol 336 GraphicUsed by:338
Symbol 337 GraphicUsed by:338
Symbol 338 MovieClipUses:334 335 336 337Used by:355
Symbol 339 GraphicUsed by:347
Symbol 340 GraphicUsed by:347
Symbol 341 GraphicUsed by:347
Symbol 342 GraphicUsed by:347
Symbol 343 GraphicUsed by:347
Symbol 344 GraphicUsed by:347
Symbol 345 GraphicUsed by:347
Symbol 346 GraphicUsed by:347
Symbol 347 MovieClipUses:339 340 341 342 343 344 345 346Used by:355
Symbol 348 GraphicUsed by:351
Symbol 349 GraphicUsed by:351
Symbol 350 GraphicUsed by:351
Symbol 351 MovieClipUses:348 349 350Used by:355
Symbol 352 GraphicUsed by:354
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClipUses:352 353Used by:355
Symbol 355 MovieClipUses:302 303 314 320 323 328 330 333 338 347 351 354Used by:Timeline
Symbol 356 GraphicUsed by:357
Symbol 357 MovieClipUses:356Used by:Timeline
Symbol 358 GraphicUsed by:365
Symbol 359 TextUses:85Used by:365
Symbol 360 EditableTextUses:85Used by:365
Symbol 361 GraphicUsed by:365
Symbol 362 TextUses:85Used by:365
Symbol 363 TextUses:85Used by:365
Symbol 364 TextUses:85Used by:365
Symbol 365 MovieClipUses:358 359 360 361 362 363 364Used by:385
Symbol 366 GraphicUsed by:367 525
Symbol 367 MovieClipUses:366Used by:385 446 850 888  Timeline
Symbol 368 GraphicUsed by:378
Symbol 369 ButtonUses:54Used by:378
Symbol 370 ButtonUses:54Used by:378
Symbol 371 ButtonUses:54Used by:378
Symbol 372 ButtonUses:54Used by:378
Symbol 373 ButtonUses:54Used by:378
Symbol 374 ButtonUses:54Used by:378
Symbol 375 ButtonUses:54Used by:378
Symbol 376 ButtonUses:54Used by:378
Symbol 377 ButtonUses:54Used by:378
Symbol 378 MovieClipUses:368 369 370 371 372 373 374 375 376 377Used by:385
Symbol 379 GraphicUsed by:383
Symbol 380 TextUses:85Used by:383
Symbol 381 TextUses:85Used by:383
Symbol 382 EditableTextUses:85Used by:383
Symbol 383 MovieClipUses:379 380 381 382Used by:385
Symbol 384 MovieClipUses:72Used by:385
Symbol 385 MovieClipUses:365 367 378 383 384Used by:Timeline
Symbol 386 GraphicUsed by:391
Symbol 387 TextUses:85Used by:391
Symbol 388 EditableTextUses:85Used by:391
Symbol 389 TextUses:85Used by:391
Symbol 390 EditableTextUses:85Used by:391
Symbol 391 MovieClipUses:386 387 388 389 390Used by:392
Symbol 392 MovieClipUses:72 391Used by:Timeline
Symbol 393 TextUses:258Used by:Timeline
Symbol 394 GraphicUsed by:Timeline
Symbol 395 GraphicUsed by:396
Symbol 396 MovieClipUses:395Used by:Timeline
Symbol 397 TextUses:258Used by:Timeline
Symbol 398 GraphicUsed by:Timeline
Symbol 399 GraphicUsed by:402
Symbol 400 GraphicUsed by:401
Symbol 401 MovieClipUses:400Used by:402
Symbol 402 MovieClipUses:399 401Used by:Timeline
Symbol 403 GraphicUsed by:Timeline
Symbol 404 GraphicUsed by:Timeline
Symbol 405 GraphicUsed by:406
Symbol 406 MovieClipUses:405Used by:Timeline
Symbol 407 TextUses:258Used by:Timeline
Symbol 408 GraphicUsed by:Timeline
Symbol 409 GraphicUsed by:411
Symbol 410 GraphicUsed by:411
Symbol 411 MovieClipUses:409 410Used by:Timeline
Symbol 412 GraphicUsed by:439
Symbol 413 FontUsed by:414 823 826 829 830 835 838 840 848
Symbol 414 TextUses:413Used by:439
Symbol 415 TextUses:42Used by:439
Symbol 416 TextUses:42Used by:439
Symbol 417 GraphicUsed by:439
Symbol 418 GraphicUsed by:439
Symbol 419 TextUses:42Used by:439
Symbol 420 GraphicUsed by:439
Symbol 421 TextUses:42Used by:439
Symbol 422 GraphicUsed by:439
Symbol 423 TextUses:42Used by:439
Symbol 424 GraphicUsed by:439
Symbol 425 TextUses:42Used by:439
Symbol 426 GraphicUsed by:439
Symbol 427 TextUses:42Used by:439
Symbol 428 GraphicUsed by:439
Symbol 429 TextUses:42Used by:439
Symbol 430 GraphicUsed by:439
Symbol 431 TextUses:42Used by:439
Symbol 432 GraphicUsed by:439
Symbol 433 TextUses:42Used by:439
Symbol 434 TextUses:42Used by:439
Symbol 435 GraphicUsed by:439
Symbol 436 TextUses:42Used by:439
Symbol 437 TextUses:42Used by:439
Symbol 438 GraphicUsed by:439
Symbol 439 MovieClipUses:412 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438Used by:Timeline
Symbol 440 GraphicUsed by:446
Symbol 441 GraphicUsed by:446
Symbol 442 GraphicUsed by:446
Symbol 443 GraphicUsed by:446
Symbol 444 GraphicUsed by:446
Symbol 445 GraphicUsed by:446
Symbol 446 MovieClipUses:440 266 367 441 442 443 444 445Used by:Timeline
Symbol 447 GraphicUsed by:448
Symbol 448 MovieClipUses:447Used by:Timeline
Symbol 449 TextUses:258Used by:Timeline
Symbol 450 GraphicUsed by:Timeline
Symbol 451 GraphicUsed by:Timeline
Symbol 452 GraphicUsed by:Timeline
Symbol 453 GraphicUsed by:Timeline
Symbol 454 GraphicUsed by:455
Symbol 455 MovieClipUses:264 454Used by:Timeline
Symbol 456 FontUsed by:457 458 459 461 462 463 465 466 467 469 470 471 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774
Symbol 457 EditableTextUses:456Used by:503
Symbol 458 EditableTextUses:456Used by:503
Symbol 459 EditableTextUses:456Used by:503
Symbol 460 TextUses:85Used by:503 775
Symbol 461 EditableTextUses:456Used by:503
Symbol 462 EditableTextUses:456Used by:503
Symbol 463 EditableTextUses:456Used by:503
Symbol 464 TextUses:85Used by:503 775
Symbol 465 EditableTextUses:456Used by:503
Symbol 466 EditableTextUses:456Used by:503
Symbol 467 EditableTextUses:456Used by:503
Symbol 468 TextUses:85Used by:503 775
Symbol 469 EditableTextUses:456Used by:503
Symbol 470 EditableTextUses:456Used by:503
Symbol 471 EditableTextUses:456Used by:503
Symbol 472 TextUses:85Used by:503 775
Symbol 473 EditableTextUses:456Used by:503
Symbol 474 EditableTextUses:456Used by:503
Symbol 475 EditableTextUses:456Used by:503
Symbol 476 EditableTextUses:456Used by:503
Symbol 477 EditableTextUses:456Used by:503
Symbol 478 EditableTextUses:456Used by:503
Symbol 479 EditableTextUses:456Used by:503
Symbol 480 EditableTextUses:456Used by:503
Symbol 481 EditableTextUses:456Used by:503
Symbol 482 EditableTextUses:456Used by:503
Symbol 483 EditableTextUses:456Used by:503
Symbol 484 EditableTextUses:456Used by:503
Symbol 485 EditableTextUses:456Used by:503
Symbol 486 EditableTextUses:456Used by:503
Symbol 487 EditableTextUses:456Used by:503
Symbol 488 EditableTextUses:456Used by:503
Symbol 489 EditableTextUses:456Used by:503
Symbol 490 EditableTextUses:456Used by:503
Symbol 491 EditableTextUses:456Used by:503
Symbol 492 EditableTextUses:456Used by:503
Symbol 493 EditableTextUses:456Used by:503
Symbol 494 EditableTextUses:456Used by:503
Symbol 495 EditableTextUses:456Used by:503
Symbol 496 EditableTextUses:456Used by:503
Symbol 497 EditableTextUses:456Used by:503
Symbol 498 EditableTextUses:456Used by:503
Symbol 499 EditableTextUses:456Used by:503
Symbol 500 EditableTextUses:456Used by:503
Symbol 501 EditableTextUses:456Used by:503
Symbol 502 EditableTextUses:456Used by:503
Symbol 503 MovieClipUses:457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502Used by:Timeline
Symbol 504 GraphicUsed by:505
Symbol 505 MovieClipUses:504Used by:Timeline
Symbol 506 TextUses:258Used by:Timeline
Symbol 507 GraphicUsed by:Timeline
Symbol 508 GraphicUsed by:Timeline
Symbol 509 GraphicUsed by:Timeline
Symbol 510 GraphicUsed by:Timeline
Symbol 511 GraphicUsed by:Timeline
Symbol 512 GraphicUsed by:513
Symbol 513 MovieClipUses:512Used by:515
Symbol 514 GraphicUsed by:515
Symbol 515 MovieClipUses:513 514Used by:Timeline
Symbol 516 TextUses:258Used by:Timeline
Symbol 517 GraphicUsed by:Timeline
Symbol 518 GraphicUsed by:Timeline
Symbol 519 GraphicUsed by:Timeline
Symbol 520 GraphicUsed by:Timeline
Symbol 521 GraphicUsed by:525
Symbol 522 GraphicUsed by:525
Symbol 523 GraphicUsed by:524
Symbol 524 MovieClipUses:523Used by:525
Symbol 525 MovieClipUses:366 521 522 524Used by:Timeline
Symbol 526 GraphicUsed by:527
Symbol 527 MovieClipUses:526Used by:Timeline
Symbol 528 TextUses:258Used by:Timeline
Symbol 529 GraphicUsed by:Timeline
Symbol 530 GraphicUsed by:Timeline
Symbol 531 GraphicUsed by:Timeline
Symbol 532 GraphicUsed by:Timeline
Symbol 533 GraphicUsed by:534
Symbol 534 MovieClipUses:533Used by:535 568 577
Symbol 535 MovieClipUses:534Used by:537
Symbol 536 GraphicUsed by:537
Symbol 537 MovieClipUses:535 536Used by:Timeline
Symbol 538 TextUses:258Used by:Timeline
Symbol 539 GraphicUsed by:Timeline
Symbol 540 GraphicUsed by:541
Symbol 541 MovieClipUses:540Used by:Timeline
Symbol 542 TextUses:258Used by:Timeline
Symbol 543 GraphicUsed by:Timeline
Symbol 544 GraphicUsed by:Timeline
Symbol 545 GraphicUsed by:Timeline
Symbol 546 GraphicUsed by:Timeline
Symbol 547 GraphicUsed by:Timeline
Symbol 548 GraphicUsed by:Timeline
Symbol 549 GraphicUsed by:550
Symbol 550 MovieClipUses:549Used by:Timeline
Symbol 551 TextUses:258Used by:Timeline
Symbol 552 GraphicUsed by:Timeline
Symbol 553 GraphicUsed by:554
Symbol 554 MovieClipUses:553Used by:Timeline
Symbol 555 TextUses:258Used by:Timeline
Symbol 556 GraphicUsed by:Timeline
Symbol 557 GraphicUsed by:Timeline
Symbol 558 GraphicUsed by:Timeline
Symbol 559 GraphicUsed by:Timeline
Symbol 560 GraphicUsed by:Timeline
Symbol 561 GraphicUsed by:Timeline
Symbol 562 GraphicUsed by:Timeline
Symbol 563 GraphicUsed by:Timeline
Symbol 564 GraphicUsed by:Timeline
Symbol 565 GraphicUsed by:Timeline
Symbol 566 GraphicUsed by:Timeline
Symbol 567 GraphicUsed by:Timeline
Symbol 568 MovieClipUses:534Used by:570
Symbol 569 GraphicUsed by:570
Symbol 570 MovieClipUses:568 569Used by:Timeline
Symbol 571 TextUses:258Used by:Timeline
Symbol 572 GraphicUsed by:Timeline
Symbol 573 GraphicUsed by:Timeline
Symbol 574 GraphicUsed by:Timeline
Symbol 575 GraphicUsed by:Timeline
Symbol 576 GraphicUsed by:Timeline
Symbol 577 MovieClipUses:534Used by:579
Symbol 578 GraphicUsed by:579
Symbol 579 MovieClipUses:577 578Used by:Timeline
Symbol 580 TextUses:258Used by:Timeline
Symbol 581 GraphicUsed by:Timeline
Symbol 582 GraphicUsed by:583
Symbol 583 MovieClipUses:582Used by:Timeline
Symbol 584 TextUses:258Used by:Timeline
Symbol 585 GraphicUsed by:Timeline
Symbol 586 GraphicUsed by:587
Symbol 587 MovieClipUses:586Used by:Timeline
Symbol 588 TextUses:258Used by:Timeline
Symbol 589 GraphicUsed by:Timeline
Symbol 590 GraphicUsed by:Timeline
Symbol 591 GraphicUsed by:Timeline
Symbol 592 GraphicUsed by:Timeline
Symbol 593 GraphicUsed by:Timeline
Symbol 594 GraphicUsed by:Timeline
Symbol 595 GraphicUsed by:Timeline
Symbol 596 GraphicUsed by:Timeline
Symbol 597 GraphicUsed by:Timeline
Symbol 598 GraphicUsed by:Timeline
Symbol 599 GraphicUsed by:600
Symbol 600 MovieClipUses:599Used by:Timeline
Symbol 601 TextUses:258Used by:Timeline
Symbol 602 GraphicUsed by:Timeline
Symbol 603 GraphicUsed by:Timeline
Symbol 604 GraphicUsed by:Timeline
Symbol 605 GraphicUsed by:Timeline
Symbol 606 GraphicUsed by:Timeline
Symbol 607 GraphicUsed by:608
Symbol 608 MovieClipUses:607Used by:Timeline
Symbol 609 TextUses:258Used by:Timeline
Symbol 610 GraphicUsed by:Timeline
Symbol 611 MovieClipUses:72Used by:Timeline
Symbol 612 GraphicUsed by:613
Symbol 613 MovieClipUses:612Used by:Timeline
Symbol 614 TextUses:258Used by:Timeline
Symbol 615 GraphicUsed by:Timeline
Symbol 616 GraphicUsed by:Timeline
Symbol 617 GraphicUsed by:Timeline
Symbol 618 GraphicUsed by:Timeline
Symbol 619 GraphicUsed by:Timeline
Symbol 620 MovieClipUses:72Used by:Timeline
Symbol 621 GraphicUsed by:622
Symbol 622 MovieClipUses:621Used by:Timeline
Symbol 623 ButtonUses:72 144 145 146Used by:Timeline
Symbol 624 TextUses:258Used by:Timeline
Symbol 625 GraphicUsed by:Timeline
Symbol 626 GraphicUsed by:627
Symbol 627 MovieClipUses:626Used by:Timeline
Symbol 628 TextUses:258Used by:Timeline
Symbol 629 GraphicUsed by:Timeline
Symbol 630 GraphicUsed by:Timeline
Symbol 631 GraphicUsed by:Timeline
Symbol 632 GraphicUsed by:Timeline
Symbol 633 GraphicUsed by:Timeline
Symbol 634 GraphicUsed by:Timeline
Symbol 635 GraphicUsed by:Timeline
Symbol 636 GraphicUsed by:637
Symbol 637 MovieClipUses:636Used by:Timeline
Symbol 638 TextUses:258Used by:Timeline
Symbol 639 GraphicUsed by:Timeline
Symbol 640 GraphicUsed by:641
Symbol 641 MovieClipUses:640Used by:Timeline
Symbol 642 TextUses:258Used by:Timeline
Symbol 643 GraphicUsed by:Timeline
Symbol 644 GraphicUsed by:645
Symbol 645 MovieClipUses:644Used by:Timeline
Symbol 646 TextUses:258Used by:Timeline
Symbol 647 GraphicUsed by:Timeline
Symbol 648 GraphicUsed by:649
Symbol 649 MovieClipUses:648Used by:Timeline
Symbol 650 TextUses:258Used by:Timeline
Symbol 651 GraphicUsed by:Timeline
Symbol 652 GraphicUsed by:653
Symbol 653 MovieClipUses:652Used by:Timeline
Symbol 654 TextUses:258Used by:Timeline
Symbol 655 GraphicUsed by:Timeline
Symbol 656 GraphicUsed by:Timeline
Symbol 657 GraphicUsed by:Timeline
Symbol 658 GraphicUsed by:Timeline
Symbol 659 GraphicUsed by:Timeline
Symbol 660 GraphicUsed by:Timeline
Symbol 661 GraphicUsed by:Timeline
Symbol 662 GraphicUsed by:Timeline
Symbol 663 GraphicUsed by:Timeline
Symbol 664 GraphicUsed by:Timeline
Symbol 665 GraphicUsed by:Timeline
Symbol 666 GraphicUsed by:Timeline
Symbol 667 GraphicUsed by:Timeline
Symbol 668 GraphicUsed by:Timeline
Symbol 669 GraphicUsed by:Timeline
Symbol 670 GraphicUsed by:Timeline
Symbol 671 GraphicUsed by:Timeline
Symbol 672 GraphicUsed by:Timeline
Symbol 673 GraphicUsed by:Timeline
Symbol 674 GraphicUsed by:Timeline
Symbol 675 GraphicUsed by:Timeline
Symbol 676 GraphicUsed by:Timeline
Symbol 677 GraphicUsed by:Timeline
Symbol 678 GraphicUsed by:Timeline
Symbol 679 GraphicUsed by:Timeline
Symbol 680 GraphicUsed by:Timeline
Symbol 681 GraphicUsed by:Timeline
Symbol 682 GraphicUsed by:Timeline
Symbol 683 GraphicUsed by:Timeline
Symbol 684 GraphicUsed by:Timeline
Symbol 685 GraphicUsed by:Timeline
Symbol 686 GraphicUsed by:Timeline
Symbol 687 GraphicUsed by:Timeline
Symbol 688 GraphicUsed by:Timeline
Symbol 689 GraphicUsed by:Timeline
Symbol 690 GraphicUsed by:Timeline
Symbol 691 GraphicUsed by:Timeline
Symbol 692 GraphicUsed by:Timeline
Symbol 693 GraphicUsed by:Timeline
Symbol 694 GraphicUsed by:Timeline
Symbol 695 GraphicUsed by:Timeline
Symbol 696 GraphicUsed by:Timeline
Symbol 697 GraphicUsed by:Timeline
Symbol 698 GraphicUsed by:Timeline
Symbol 699 GraphicUsed by:Timeline
Symbol 700 GraphicUsed by:Timeline
Symbol 701 GraphicUsed by:Timeline
Symbol 702 GraphicUsed by:Timeline
Symbol 703 GraphicUsed by:Timeline
Symbol 704 GraphicUsed by:Timeline
Symbol 705 GraphicUsed by:Timeline
Symbol 706 GraphicUsed by:Timeline
Symbol 707 GraphicUsed by:Timeline
Symbol 708 GraphicUsed by:Timeline
Symbol 709 GraphicUsed by:Timeline
Symbol 710 GraphicUsed by:Timeline
Symbol 711 GraphicUsed by:Timeline
Symbol 712 GraphicUsed by:Timeline
Symbol 713 GraphicUsed by:Timeline
Symbol 714 GraphicUsed by:Timeline
Symbol 715 GraphicUsed by:Timeline
Symbol 716 GraphicUsed by:Timeline
Symbol 717 GraphicUsed by:Timeline
Symbol 718 GraphicUsed by:Timeline
Symbol 719 GraphicUsed by:Timeline
Symbol 720 GraphicUsed by:Timeline
Symbol 721 GraphicUsed by:Timeline
Symbol 722 GraphicUsed by:Timeline
Symbol 723 GraphicUsed by:Timeline
Symbol 724 GraphicUsed by:725
Symbol 725 MovieClipUses:724Used by:Timeline
Symbol 726 TextUses:258Used by:Timeline
Symbol 727 GraphicUsed by:Timeline
Symbol 728 GraphicUsed by:Timeline
Symbol 729 GraphicUsed by:730
Symbol 730 MovieClipUses:729Used by:Timeline
Symbol 731 TextUses:258Used by:Timeline
Symbol 732 GraphicUsed by:Timeline
Symbol 733 EditableTextUses:456Used by:775
Symbol 734 EditableTextUses:456Used by:775
Symbol 735 EditableTextUses:456Used by:775
Symbol 736 EditableTextUses:456Used by:775
Symbol 737 EditableTextUses:456Used by:775
Symbol 738 EditableTextUses:456Used by:775
Symbol 739 EditableTextUses:456Used by:775
Symbol 740 EditableTextUses:456Used by:775
Symbol 741 EditableTextUses:456Used by:775
Symbol 742 EditableTextUses:456Used by:775
Symbol 743 EditableTextUses:456Used by:775
Symbol 744 EditableTextUses:456Used by:775
Symbol 745 EditableTextUses:456Used by:775
Symbol 746 EditableTextUses:456Used by:775
Symbol 747 EditableTextUses:456Used by:775
Symbol 748 EditableTextUses:456Used by:775
Symbol 749 EditableTextUses:456Used by:775
Symbol 750 EditableTextUses:456Used by:775
Symbol 751 EditableTextUses:456Used by:775
Symbol 752 EditableTextUses:456Used by:775
Symbol 753 EditableTextUses:456Used by:775
Symbol 754 EditableTextUses:456Used by:775
Symbol 755 EditableTextUses:456Used by:775
Symbol 756 EditableTextUses:456Used by:775
Symbol 757 EditableTextUses:456Used by:775
Symbol 758 EditableTextUses:456Used by:775
Symbol 759 EditableTextUses:456Used by:775
Symbol 760 EditableTextUses:456Used by:775
Symbol 761 EditableTextUses:456Used by:775
Symbol 762 EditableTextUses:456Used by:775
Symbol 763 EditableTextUses:456Used by:775
Symbol 764 EditableTextUses:456Used by:775
Symbol 765 EditableTextUses:456Used by:775
Symbol 766 EditableTextUses:456Used by:775
Symbol 767 EditableTextUses:456Used by:775
Symbol 768 EditableTextUses:456Used by:775
Symbol 769 EditableTextUses:456Used by:775
Symbol 770 EditableTextUses:456Used by:775
Symbol 771 EditableTextUses:456Used by:775
Symbol 772 EditableTextUses:456Used by:775
Symbol 773 EditableTextUses:456Used by:775
Symbol 774 EditableTextUses:456Used by:775
Symbol 775 MovieClipUses:733 734 735 460 736 737 738 464 739 740 741 468 742 743 744 472 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774Used by:Timeline
Symbol 776 GraphicUsed by:777
Symbol 777 MovieClipUses:776Used by:Timeline
Symbol 778 TextUses:258Used by:Timeline
Symbol 779 GraphicUsed by:Timeline
Symbol 780 GraphicUsed by:Timeline
Symbol 781 GraphicUsed by:782
Symbol 782 MovieClipUses:781Used by:Timeline
Symbol 783 TextUses:258Used by:Timeline
Symbol 784 GraphicUsed by:Timeline
Symbol 785 GraphicUsed by:786
Symbol 786 MovieClipUses:785Used by:Timeline
Symbol 787 TextUses:258Used by:Timeline
Symbol 788 GraphicUsed by:Timeline
Symbol 789 GraphicUsed by:790
Symbol 790 MovieClipUses:789Used by:Timeline
Symbol 791 TextUses:258Used by:Timeline
Symbol 792 GraphicUsed by:Timeline
Symbol 793 GraphicUsed by:794
Symbol 794 MovieClipUses:793Used by:Timeline
Symbol 795 TextUses:258Used by:Timeline
Symbol 796 GraphicUsed by:Timeline
Symbol 797 GraphicUsed by:Timeline
Symbol 798 GraphicUsed by:Timeline
Symbol 799 GraphicUsed by:Timeline
Symbol 800 GraphicUsed by:801
Symbol 801 MovieClipUses:800Used by:Timeline
Symbol 802 TextUses:258Used by:Timeline
Symbol 803 GraphicUsed by:Timeline
Symbol 804 GraphicUsed by:Timeline
Symbol 805 GraphicUsed by:Timeline
Symbol 806 GraphicUsed by:Timeline
Symbol 807 GraphicUsed by:Timeline
Symbol 808 GraphicUsed by:Timeline
Symbol 809 GraphicUsed by:Timeline
Symbol 810 GraphicUsed by:811
Symbol 811 MovieClipUses:810Used by:Timeline
Symbol 812 TextUses:258Used by:Timeline
Symbol 813 GraphicUsed by:850
Symbol 814 GraphicUsed by:850
Symbol 815 GraphicUsed by:850
Symbol 816 GraphicUsed by:850
Symbol 817 GraphicUsed by:850
Symbol 818 GraphicUsed by:820 850
Symbol 819 GraphicUsed by:850
Symbol 820 MovieClipUses:818Used by:850
Symbol 821 GraphicUsed by:850
Symbol 822 GraphicUsed by:850
Symbol 823 TextUses:413Used by:850
Symbol 824 TextUses:42Used by:850
Symbol 825 GraphicUsed by:850
Symbol 826 TextUses:413Used by:850
Symbol 827 TextUses:42Used by:850
Symbol 828 GraphicUsed by:850
Symbol 829 TextUses:413Used by:850
Symbol 830 TextUses:413Used by:850
Symbol 831 TextUses:42Used by:850
Symbol 832 GraphicUsed by:850
Symbol 833 TextUses:42Used by:850
Symbol 834 GraphicUsed by:850
Symbol 835 TextUses:413Used by:850
Symbol 836 TextUses:42Used by:850
Symbol 837 GraphicUsed by:850
Symbol 838 TextUses:413Used by:850
Symbol 839 TextUses:42Used by:850
Symbol 840 TextUses:413Used by:850
Symbol 841 TextUses:42Used by:850
Symbol 842 GraphicUsed by:850
Symbol 843 GraphicUsed by:850
Symbol 844 TextUses:42Used by:850
Symbol 845 GraphicUsed by:850
Symbol 846 GraphicUsed by:850
Symbol 847 TextUses:42Used by:850
Symbol 848 TextUses:413Used by:850
Symbol 849 GraphicUsed by:850
Symbol 850 MovieClipUses:813 814 815 816 817 818 819 820 821 822 823 824 825 367 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849Used by:Timeline
Symbol 851 GraphicUsed by:Timeline
Symbol 852 GraphicUsed by:853
Symbol 853 MovieClipUses:852Used by:Timeline
Symbol 854 GraphicUsed by:855
Symbol 855 MovieClipUses:854Used by:Timeline
Symbol 856 GraphicUsed by:880
Symbol 857 TextUses:42Used by:880
Symbol 858 TextUses:42Used by:880
Symbol 859 ButtonUses:244 245 246 247 248Used by:880
Symbol 860 TextUses:42Used by:880
Symbol 861 TextUses:42Used by:880
Symbol 862 TextUses:42Used by:880
Symbol 863 GraphicUsed by:880
Symbol 864 TextUses:42Used by:880
Symbol 865 FontUsed by:866
Symbol 866 TextUses:42 865Used by:880
Symbol 867 TextUses:42Used by:880
Symbol 868 TextUses:42Used by:880
Symbol 869 TextUses:42Used by:880
Symbol 870 TextUses:42Used by:880
Symbol 871 TextUses:42Used by:880
Symbol 872 TextUses:42Used by:880
Symbol 873 TextUses:42Used by:880
Symbol 874 TextUses:42Used by:880
Symbol 875 TextUses:42Used by:880
Symbol 876 TextUses:42Used by:880
Symbol 877 TextUses:42Used by:880
Symbol 878 TextUses:42Used by:880
Symbol 879 TextUses:42Used by:880
Symbol 880 MovieClipUses:856 857 858 859 860 861 862 863 864 866 867 868 869 870 871 872 873 874 875 876 877 878 879Used by:Timeline
Symbol 881 GraphicUsed by:882
Symbol 882 MovieClipUses:881Used by:Timeline
Symbol 883 GraphicUsed by:886
Symbol 884 GraphicUsed by:886
Symbol 885 GraphicUsed by:886
Symbol 886 MovieClipUses:271 883 884 885Used by:Timeline
Symbol 887 GraphicUsed by:888
Symbol 888 MovieClipUses:887 367Used by:Timeline
Symbol 889 GraphicUsed by:892
Symbol 890 GraphicUsed by:892
Symbol 891 GraphicUsed by:892
Symbol 892 MovieClipUses:889 890 891Used by:Timeline
Symbol 893 GraphicUsed by:898
Symbol 894 GraphicUsed by:895
Symbol 895 MovieClipUses:894Used by:898
Symbol 896 GraphicUsed by:897
Symbol 897 MovieClipUses:896Used by:898
Symbol 898 MovieClipUses:893 895 897Used by:Timeline
Symbol 899 MovieClipUses:72Used by:Timeline
Symbol 900 TextUses:258Used by:Timeline
Symbol 901 GraphicUsed by:Timeline
Symbol 902 GraphicUsed by:903
Symbol 903 MovieClipUses:902Used by:Timeline
Symbol 904 TextUses:258Used by:Timeline
Symbol 905 GraphicUsed by:Timeline
Symbol 906 GraphicUsed by:907
Symbol 907 MovieClipUses:906Used by:Timeline
Symbol 908 TextUses:258Used by:Timeline
Symbol 909 GraphicUsed by:Timeline
Symbol 910 GraphicUsed by:Timeline
Symbol 911 GraphicUsed by:Timeline
Symbol 912 GraphicUsed by:Timeline
Symbol 913 GraphicUsed by:Timeline
Symbol 914 GraphicUsed by:Timeline
Symbol 915 GraphicUsed by:916
Symbol 916 MovieClipUses:915Used by:Timeline
Symbol 917 TextUses:258Used by:Timeline
Symbol 918 GraphicUsed by:Timeline
Symbol 919 GraphicUsed by:Timeline
Symbol 920 GraphicUsed by:Timeline
Symbol 921 GraphicUsed by:922
Symbol 922 MovieClipUses:921Used by:Timeline
Symbol 923 TextUses:258Used by:Timeline
Symbol 924 GraphicUsed by:Timeline
Symbol 925 GraphicUsed by:926
Symbol 926 MovieClipUses:925Used by:Timeline
Symbol 927 TextUses:258Used by:Timeline
Symbol 928 GraphicUsed by:Timeline
Symbol 929 GraphicUsed by:Timeline

Instance Names

"mainClear"Frame 3Symbol 175 MovieClip
"00"Frame 4Symbol 190 MovieClip
"10"Frame 4Symbol 190 MovieClip
"20"Frame 4Symbol 190 MovieClip
"30"Frame 4Symbol 190 MovieClip
"40"Frame 4Symbol 190 MovieClip
"50"Frame 4Symbol 190 MovieClip
"60"Frame 4Symbol 190 MovieClip
"70"Frame 4Symbol 190 MovieClip
"81"Frame 4Symbol 190 MovieClip
"91"Frame 4Symbol 190 MovieClip
"101"Frame 4Symbol 190 MovieClip
"111"Frame 4Symbol 190 MovieClip
"121"Frame 4Symbol 190 MovieClip
"131"Frame 4Symbol 190 MovieClip
"141"Frame 4Symbol 190 MovieClip
"151"Frame 4Symbol 190 MovieClip
"162"Frame 4Symbol 190 MovieClip
"172"Frame 4Symbol 190 MovieClip
"182"Frame 4Symbol 190 MovieClip
"192"Frame 4Symbol 190 MovieClip
"202"Frame 4Symbol 190 MovieClip
"212"Frame 4Symbol 190 MovieClip
"222"Frame 4Symbol 190 MovieClip
"232"Frame 4Symbol 190 MovieClip
"243"Frame 4Symbol 190 MovieClip
"253"Frame 4Symbol 190 MovieClip
"263"Frame 4Symbol 190 MovieClip
"273"Frame 4Symbol 190 MovieClip
"283"Frame 4Symbol 190 MovieClip
"293"Frame 4Symbol 190 MovieClip
"303"Frame 4Symbol 190 MovieClip
"313"Frame 4Symbol 190 MovieClip
"324"Frame 4Symbol 190 MovieClip
"334"Frame 4Symbol 190 MovieClip
"344"Frame 4Symbol 190 MovieClip
"354"Frame 4Symbol 190 MovieClip
"364"Frame 4Symbol 190 MovieClip
"374"Frame 4Symbol 190 MovieClip
"384"Frame 4Symbol 190 MovieClip
"394"Frame 4Symbol 190 MovieClip
"disLevelDisplayer"Frame 4Symbol 255 MovieClip
"2"Frame 5Symbol 271 MovieClip
"0"Frame 5Symbol 271 MovieClip
"1"Frame 5Symbol 271 MovieClip
"mainPlayer"Frame 5Symbol 355 MovieClip
"engBounds"Frame 5Symbol 357 MovieClip
"mainOverlay"Frame 5Symbol 385 MovieClip
"miscEntrance"Frame 5Symbol 392 MovieClip
"1"Frame 6Symbol 271 MovieClip
"2"Frame 6Symbol 271 MovieClip
"mainPlayer"Frame 6Symbol 355 MovieClip
"engBounds"Frame 6Symbol 396 MovieClip
"0"Frame 7Symbol 271 MovieClip
"3"Frame 7Symbol 271 MovieClip
"engBounds"Frame 7Symbol 406 MovieClip
"2"Frame 8Symbol 411 MovieClip
"1"Frame 8Symbol 411 MovieClip
"0"Frame 8Symbol 411 MovieClip
"5"Frame 8Symbol 411 MovieClip
"4"Frame 8Symbol 411 MovieClip
"3"Frame 8Symbol 411 MovieClip
"8"Frame 8Symbol 411 MovieClip
"7"Frame 8Symbol 411 MovieClip
"6"Frame 8Symbol 411 MovieClip
"mainThought"Frame 8Symbol 439 MovieClip
"levelReaction"Frame 8Symbol 446 MovieClip
"engBounds"Frame 8Symbol 448 MovieClip
"0"Frame 9Symbol 271 MovieClip
"1"Frame 9Symbol 271 MovieClip
"2"Frame 9Symbol 271 MovieClip
"mainPlayer"Frame 9Symbol 355 MovieClip
"levelSpeedTimer"Frame 9Symbol 503 MovieClip
"engBounds"Frame 9Symbol 505 MovieClip
"3"Frame 10Symbol 271 MovieClip
"2"Frame 10Symbol 271 MovieClip
"1"Frame 10Symbol 271 MovieClip
"0"Frame 10Symbol 271 MovieClip
"mainPlayer"Frame 10Symbol 355 MovieClip
"engBounds"Frame 10Symbol 515 MovieClip
"0"Frame 11Symbol 271 MovieClip
"1"Frame 11Symbol 271 MovieClip
"2"Frame 11Symbol 271 MovieClip
"mainPlayer"Frame 11Symbol 355 MovieClip
"mainThought"Frame 11Symbol 439 MovieClip
"engBounds"Frame 11Symbol 527 MovieClip
"0"Frame 12Symbol 271 MovieClip
"1"Frame 12Symbol 271 MovieClip
"2"Frame 12Symbol 271 MovieClip
"engBounds"Frame 12Symbol 537 MovieClip
"0"Frame 13Symbol 411 MovieClip
"1"Frame 13Symbol 411 MovieClip
"2"Frame 13Symbol 411 MovieClip
"3"Frame 13Symbol 411 MovieClip
"engBounds"Frame 13Symbol 541 MovieClip
"2"Frame 14Symbol 271 MovieClip
"3"Frame 14Symbol 271 MovieClip
"1"Frame 14Symbol 271 MovieClip
"4"Frame 14Symbol 271 MovieClip
"0"Frame 14Symbol 271 MovieClip
"engBounds"Frame 14Symbol 550 MovieClip
"0"Frame 15Symbol 271 MovieClip
"mainPlayer"Frame 15Symbol 355 MovieClip
"levelSpeedTimer"Frame 15Symbol 503 MovieClip
"engBounds"Frame 15Symbol 554 MovieClip
"1"Frame 16Symbol 271 MovieClip
"2"Frame 16Symbol 271 MovieClip
"3"Frame 16Symbol 271 MovieClip
"4"Frame 16Symbol 271 MovieClip
"5"Frame 16Symbol 271 MovieClip
"6"Frame 16Symbol 271 MovieClip
"7"Frame 16Symbol 271 MovieClip
"8"Frame 16Symbol 271 MovieClip
"9"Frame 16Symbol 271 MovieClip
"10"Frame 16Symbol 271 MovieClip
"11"Frame 16Symbol 271 MovieClip
"mainPlayer"Frame 16Symbol 355 MovieClip
"engBounds"Frame 16Symbol 570 MovieClip
"1"Frame 17Symbol 271 MovieClip
"0"Frame 17Symbol 271 MovieClip
"2"Frame 17Symbol 271 MovieClip
"3"Frame 17Symbol 271 MovieClip
"engBounds"Frame 17Symbol 579 MovieClip
"engBounds"Frame 18Symbol 583 MovieClip
"0"Frame 19Symbol 411 MovieClip
"1"Frame 19Symbol 411 MovieClip
"2"Frame 19Symbol 411 MovieClip
"3"Frame 19Symbol 411 MovieClip
"4"Frame 19Symbol 411 MovieClip
"5"Frame 19Symbol 411 MovieClip
"6"Frame 19Symbol 411 MovieClip
"7"Frame 19Symbol 411 MovieClip
"engBounds"Frame 19Symbol 587 MovieClip
"0"Frame 20Symbol 271 MovieClip
"1"Frame 20Symbol 271 MovieClip
"2"Frame 20Symbol 271 MovieClip
"3"Frame 20Symbol 271 MovieClip
"4"Frame 20Symbol 271 MovieClip
"5"Frame 20Symbol 271 MovieClip
"6"Frame 20Symbol 271 MovieClip
"7"Frame 20Symbol 271 MovieClip
"8"Frame 20Symbol 271 MovieClip
"engBounds"Frame 20Symbol 600 MovieClip
"1"Frame 21Symbol 271 MovieClip
"0"Frame 21Symbol 271 MovieClip
"3"Frame 21Symbol 271 MovieClip
"4"Frame 21Symbol 271 MovieClip
"engBounds"Frame 21Symbol 608 MovieClip
"mainPlayer"Frame 22Symbol 355 MovieClip
"engBounds"Frame 22Symbol 613 MovieClip
"0"Frame 23Symbol 271 MovieClip
"1"Frame 23Symbol 271 MovieClip
"2"Frame 23Symbol 271 MovieClip
"3"Frame 23Symbol 271 MovieClip
"mainPlayer"Frame 23Symbol 355 MovieClip
"levelLowVisibilty"Frame 23Symbol 620 MovieClip
"engBounds"Frame 23Symbol 622 MovieClip
"0"Frame 24Symbol 411 MovieClip
"1"Frame 24Symbol 411 MovieClip
"2"Frame 24Symbol 411 MovieClip
"3"Frame 24Symbol 411 MovieClip
"4"Frame 24Symbol 411 MovieClip
"5"Frame 24Symbol 411 MovieClip
"6"Frame 24Symbol 411 MovieClip
"7"Frame 24Symbol 411 MovieClip
"8"Frame 24Symbol 411 MovieClip
"9"Frame 24Symbol 411 MovieClip
"10"Frame 24Symbol 411 MovieClip
"11"Frame 24Symbol 411 MovieClip
"12"Frame 24Symbol 411 MovieClip
"13"Frame 24Symbol 411 MovieClip
"14"Frame 24Symbol 411 MovieClip
"15"Frame 24Symbol 411 MovieClip
"16"Frame 24Symbol 411 MovieClip
"17"Frame 24Symbol 411 MovieClip
"18"Frame 24Symbol 411 MovieClip
"19"Frame 24Symbol 411 MovieClip
"20"Frame 24Symbol 411 MovieClip
"21"Frame 24Symbol 411 MovieClip
"engBounds"Frame 24Symbol 627 MovieClip
"4"Frame 25Symbol 271 MovieClip
"0"Frame 25Symbol 271 MovieClip
"1"Frame 25Symbol 271 MovieClip
"5"Frame 25Symbol 271 MovieClip
"2"Frame 25Symbol 271 MovieClip
"3"Frame 25Symbol 271 MovieClip
"engBounds"Frame 25Symbol 637 MovieClip
"mainPlayer"Frame 26Symbol 355 MovieClip
"engBounds"Frame 26Symbol 641 MovieClip
"0"Frame 27Symbol 411 MovieClip
"1"Frame 27Symbol 411 MovieClip
"2"Frame 27Symbol 411 MovieClip
"3"Frame 27Symbol 411 MovieClip
"4"Frame 27Symbol 411 MovieClip
"5"Frame 27Symbol 411 MovieClip
"6"Frame 27Symbol 411 MovieClip
"mainPlayer"Frame 27Symbol 355 MovieClip
"engBounds"Frame 27Symbol 645 MovieClip
"mainPlayer"Frame 28Symbol 355 MovieClip
"engBounds"Frame 28Symbol 649 MovieClip
"mainPlayer"Frame 29Symbol 355 MovieClip
"levelSpeedTimer"Frame 29Symbol 503 MovieClip
"engBounds"Frame 29Symbol 653 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"0"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"13"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"11"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"1"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"3"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"8"Frame 30Symbol 271 MovieClip
"14"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"7"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"10"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"12"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"2"Frame 30Symbol 271 MovieClip
"5"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"9"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"6"Frame 30Symbol 271 MovieClip
"mainPlayer"Frame 30Symbol 355 MovieClip
"engBounds"Frame 30Symbol 725 MovieClip
"0"Frame 31Symbol 271 MovieClip
"mainPlayer"Frame 31Symbol 355 MovieClip
"engBounds"Frame 31Symbol 730 MovieClip
"0"Frame 32Symbol 411 MovieClip
"1"Frame 32Symbol 411 MovieClip
"4"Frame 32Symbol 411 MovieClip
"5"Frame 32Symbol 411 MovieClip
"2"Frame 32Symbol 411 MovieClip
"3"Frame 32Symbol 411 MovieClip
"mainPlayer"Frame 32Symbol 355 MovieClip
"levelSpeedTimer"Frame 32Symbol 775 MovieClip
"engBounds"Frame 32Symbol 777 MovieClip
"2"Frame 33Symbol 411 MovieClip
"1"Frame 33Symbol 271 MovieClip
"mainPlayer"Frame 33Symbol 355 MovieClip
"engBounds"Frame 33Symbol 782 MovieClip
"mainPlayer"Frame 34Symbol 355 MovieClip
"engBounds"Frame 34Symbol 786 MovieClip
"mainPlayer"Frame 35Symbol 355 MovieClip
"engBounds"Frame 35Symbol 790 MovieClip
"0"Frame 36Symbol 271 MovieClip
"1"Frame 36Symbol 271 MovieClip
"2"Frame 36Symbol 271 MovieClip
"3"Frame 36Symbol 271 MovieClip
"4"Frame 36Symbol 271 MovieClip
"engBounds"Frame 36Symbol 794 MovieClip
"2"Frame 37Symbol 271 MovieClip
"0"Frame 37Symbol 271 MovieClip
"1"Frame 37Symbol 271 MovieClip
"mainThought"Frame 37Symbol 439 MovieClip
"engBounds"Frame 37Symbol 801 MovieClip
"1"Frame 38Symbol 271 MovieClip
"2"Frame 38Symbol 271 MovieClip
"4"Frame 38Symbol 271 MovieClip
"5"Frame 38Symbol 271 MovieClip
"7"Frame 38Symbol 271 MovieClip
"6"Frame 38Symbol 271 MovieClip
"engBounds"Frame 38Symbol 811 MovieClip
"levelMonitor"Frame 39Symbol 850 MovieClip
"levelTarget"Frame 39Symbol 853 MovieClip
"levelBlockVis"Frame 39Symbol 855 MovieClip
"0"Frame 39Symbol 271 MovieClip
"levelSpeach"Frame 39Symbol 880 MovieClip
"levelTurCir"Frame 39Symbol 882 MovieClip
"levelTutTur"Frame 39Symbol 886 MovieClip
"levelExit"Frame 39Symbol 888 MovieClip
"mainPlayer"Frame 39Symbol 355 MovieClip
"levelIntro"Frame 39Symbol 892 MovieClip
"engBounds"Frame 39Symbol 898 MovieClip
"levelFlash"Frame 39Symbol 899 MovieClip
"1"Frame 40Symbol 271 MovieClip
"mainPlayer"Frame 40Symbol 355 MovieClip
"engBounds"Frame 40Symbol 903 MovieClip
"0"Frame 41Symbol 271 MovieClip
"1"Frame 41Symbol 271 MovieClip
"2"Frame 41Symbol 271 MovieClip
"3"Frame 41Symbol 271 MovieClip
"4"Frame 41Symbol 271 MovieClip
"engBounds"Frame 41Symbol 907 MovieClip
"1"Frame 42Symbol 271 MovieClip
"0"Frame 42Symbol 271 MovieClip
"3"Frame 42Symbol 271 MovieClip
"2"Frame 42Symbol 271 MovieClip
"4"Frame 42Symbol 271 MovieClip
"5"Frame 42Symbol 271 MovieClip
"engBounds"Frame 42Symbol 916 MovieClip
"2"Frame 43Symbol 271 MovieClip
"3"Frame 43Symbol 271 MovieClip
"engBounds"Frame 43Symbol 922 MovieClip
"1"Frame 44Symbol 271 MovieClip
"0"Frame 44Symbol 271 MovieClip
"3"Frame 44Symbol 271 MovieClip
"2"Frame 44Symbol 271 MovieClip
"mainPlayer"Frame 44Symbol 355 MovieClip
"levelSpeedTimer"Frame 44Symbol 503 MovieClip
"engBounds"Frame 44Symbol 926 MovieClip
"mainPlayer"Frame 45Symbol 355 MovieClip
"preloaderBar"Symbol 53 MovieClip Frame 1Symbol 40 MovieClip
"bar2"Symbol 266 MovieClip Frame 1Symbol 264 MovieClip
"bar1"Symbol 266 MovieClip Frame 1Symbol 264 MovieClip
"vade"Symbol 355 MovieClip Frame 1Symbol 302 MovieClip
"vade"Symbol 355 MovieClip Frame 2Symbol 314 MovieClip
"vade"Symbol 355 MovieClip Frame 3Symbol 320 MovieClip
"vade"Symbol 355 MovieClip Frame 4Symbol 323 MovieClip
"vade"Symbol 355 MovieClip Frame 5Symbol 328 MovieClip
"vade"Symbol 355 MovieClip Frame 6Symbol 330 MovieClip
"vade"Symbol 355 MovieClip Frame 7Symbol 333 MovieClip
"vade"Symbol 355 MovieClip Frame 12Symbol 330 MovieClip
"cir2"Symbol 402 MovieClip Frame 1Symbol 401 MovieClip
"cir1"Symbol 402 MovieClip Frame 1Symbol 401 MovieClip
"bar3"Symbol 455 MovieClip Frame 1Symbol 264 MovieClip
"bar1"Symbol 455 MovieClip Frame 1Symbol 264 MovieClip
"bar2"Symbol 455 MovieClip Frame 1Symbol 264 MovieClip
"bar4"Symbol 455 MovieClip Frame 1Symbol 264 MovieClip
"levelMovingPlats2"Symbol 570 MovieClip Frame 1Symbol 568 MovieClip
"1"Symbol 886 MovieClip Frame 1Symbol 271 MovieClip
"block1"Symbol 898 MovieClip Frame 1Symbol 895 MovieClip
"block2"Symbol 898 MovieClip Frame 1Symbol 897 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 13 as "sprDeath"
ExportAssets (56)Timeline Frame 1Symbol 15 as "fxRedFire"
ExportAssets (56)Timeline Frame 1Symbol 20 as "bulRedFire"
ExportAssets (56)Timeline Frame 1Symbol 25 as "splshRedFire"
ExportAssets (56)Timeline Frame 1Symbol 27 as "bulPurpleLaser"
ExportAssets (56)Timeline Frame 1Symbol 28 as "bulPurpleLaser2"
ExportAssets (56)Timeline Frame 1Symbol 30 as "fxThrust"
ExportAssets (56)Timeline Frame 2Symbol 99 as "mscNormal"
ExportAssets (56)Timeline Frame 2Symbol 100 as "mscDance"
ExportAssets (56)Timeline Frame 2Symbol 101 as "mscHardcore"
ExportAssets (56)Timeline Frame 2Symbol 102 as "mscTitle"
ExportAssets (56)Timeline Frame 2Symbol 103 as "fxFart1"
ExportAssets (56)Timeline Frame 2Symbol 104 as "fxFart2"
ExportAssets (56)Timeline Frame 2Symbol 105 as "fxFart3"
ExportAssets (56)Timeline Frame 2Symbol 106 as "fxSelection"
ExportAssets (56)Timeline Frame 2Symbol 107 as "fxSelection2"

Labels

"frmMenu"Frame 3
"frmLevel"Frame 4
"cham28"Frame 5
"cham3"Frame 6
"cham36"Frame 7
"cham24"Frame 8
"cham37"Frame 9
"cham31"Frame 10
"cham11"Frame 11
"cham25"Frame 12
"cham12"Frame 13
"cham33"Frame 14
"cham18"Frame 15
"cham38"Frame 16
"cham17"Frame 17
"cham20"Frame 18
"cham26"Frame 19
"cham40"Frame 20
"cham6"Frame 21
"cham35"Frame 22
"cham23"Frame 23
"cham39"Frame 24
"cham30"Frame 25
"cham32"Frame 26
"cham27"Frame 27
"cham34"Frame 28
"cham29"Frame 29
"cham21"Frame 30
"cham22"Frame 31
"cham15"Frame 32
"cham13"Frame 33
"cham14"Frame 34
"cham16"Frame 35
"cham19"Frame 36
"cham2"Frame 37
"cham4"Frame 38
"cham1"Frame 39
"cham5"Frame 40
"cham10"Frame 41
"cham9"Frame 42
"cham7"Frame 43
"cham8"Frame 44
"cham"Frame 45
"frmSwitch"Frame 46
"frmComSwitch"Frame 47
"crawl"Symbol 314 MovieClip Frame 9
"stand"Symbol 355 MovieClip Frame 1
"crouch"Symbol 355 MovieClip Frame 2
"run"Symbol 355 MovieClip Frame 3
"jump"Symbol 355 MovieClip Frame 4
"fall"Symbol 355 MovieClip Frame 5
"dbljump"Symbol 355 MovieClip Frame 6
"walldrag"Symbol 355 MovieClip Frame 7
"getup"Symbol 355 MovieClip Frame 8
"dash"Symbol 355 MovieClip Frame 9
"dashstop"Symbol 355 MovieClip Frame 10
"hover"Symbol 355 MovieClip Frame 11
"dive"Symbol 355 MovieClip Frame 12
"death"Symbol 385 MovieClip Frame 2
"success"Symbol 385 MovieClip Frame 16
"jump"Symbol 439 MovieClip Frame 2
"dbljump"Symbol 439 MovieClip Frame 3
"sprjump"Symbol 439 MovieClip Frame 4
"walljump"Symbol 439 MovieClip Frame 5
"dash"Symbol 439 MovieClip Frame 6
"airdash"Symbol 439 MovieClip Frame 7
"crawl"Symbol 439 MovieClip Frame 8
"dive"Symbol 439 MovieClip Frame 9
"hover"Symbol 439 MovieClip Frame 10
"diasprjump"Symbol 439 MovieClip Frame 11
"reaction"Symbol 439 MovieClip Frame 12
"restart"Symbol 503 MovieClip Frame 97
"clear"Symbol 620 MovieClip Frame 189
"restart"Symbol 775 MovieClip Frame 97
"start"Symbol 850 MovieClip Frame 218
"high"Symbol 850 MovieClip Frame 228
"med"Symbol 850 MovieClip Frame 248
"low"Symbol 850 MovieClip Frame 274
"tutorial"Symbol 850 MovieClip Frame 301
"jump"Symbol 850 MovieClip Frame 345
"dbljump"Symbol 850 MovieClip Frame 346
"crawl"Symbol 850 MovieClip Frame 347
"sprjump"Symbol 850 MovieClip Frame 348
"dash"Symbol 850 MovieClip Frame 349
"airdash"Symbol 850 MovieClip Frame 350
"walljump"Symbol 850 MovieClip Frame 351
"dive"Symbol 850 MovieClip Frame 352
"hover"Symbol 850 MovieClip Frame 353
"success"Symbol 850 MovieClip Frame 354
"flash2"Symbol 899 MovieClip Frame 32

Dynamic Text Variables

_root.percentPreloadedDisSymbol 43 EditableText"99%"
_root.percentPreloadedDisSymbol 48 EditableText"100%"
_root.totalDeathsFinalSymbol 151 EditableText"0"
_root.totalDeathsSymbol 234 EditableText"0"
_root.totalDeathsFinalSymbol 236 EditableText"0"
_root.totalDeathsFinalSymbol 242 EditableText"0"
_root.nameDisplaySymbol 254 EditableText"[Information]"
_root.totalDeathsSymbol 360 EditableText"99"
_root.displaySuccessSymbol 382 EditableText"[TEST]"
_root.engChamNumSymbol 388 EditableText"99"
_root.disTestNameSymbol 390 EditableText"[TEST HERE]"
_root.levelSecondsSymbol 458 EditableText"99"
_root.levelSecondsSymbol 462 EditableText"99"
_root.levelSecondsSymbol 466 EditableText"99"
_root.levelSecondsSymbol 470 EditableText"99"
_root.levelSecondsSymbol 474 EditableText"99"
_root.levelSecondsSymbol 477 EditableText"99"
_root.levelSecondsSymbol 502 EditableText"99"
_root.levelSecondsSymbol 734 EditableText"99"
_root.levelSecondsSymbol 737 EditableText"99"
_root.levelSecondsSymbol 740 EditableText"99"
_root.levelSecondsSymbol 743 EditableText"99"
_root.levelSecondsSymbol 746 EditableText"99"
_root.levelSecondsSymbol 749 EditableText"99"
_root.levelSecondsSymbol 774 EditableText"99"




https://swfchan.com/53/263388/info.shtml
Created: 23/3 -2026 22:46:40 Last modified: 23/3 -2026 22:46:40 Server time: 05/04 -2026 07:03:26