Frame 1
function PlayMainMusic() {
_root.MusicOn = true;
MusicLoop = new Sound();
MusicLoop.attachSound("MusicLoop");
MusicLoop.Start(0, 1000);
}
_root.Floor = 400;
_root.ScreenWidth = 600;
fscommand ("allowscale", false);
TotalBytes = _root.getBytesTotal();
Instance of Symbol 11 MovieClip "loader" in Frame 1
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
_xscale = _root.PercentageLoaded;
}
Frame 2
CurrentBytes = _root.getBytesLoaded();
PercentageLoaded = Math.floor((CurrentBytes / TotalBytes) * 100);
if (PercentageLoaded == 100) {
PlayMainMusic();
gotoAndStop (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
function AddOxygen() {
if (1 < _root.MainBorder.BloodTimer._currentframe) {
_root.controller.startTimer = getTimer();
_root.MainBorder.BloodTimer.prevFrame();
}
}
function ApplyForces(object, amount) {
with (object) {
_VelX = _VelX * amount;
if (((-1 < _VelX) && (_VelX < 1)) && (!Jumping)) {
_Velx = 0;
gotoAndStop(1);
} else if ((_VelY < 20) && (Jumping)) {
gotoAndStop(4);
_VelY = _VelY + _Gravity;
}
}
}
function CharIsDead() {
_root.Line.die();
_root.PowerUp.gotoAndStop(1);
_root.Invincible._x = -100;
_root.Controller.Invincible = false;
_root.Controller.DoubleLazor = false;
_root.GameActive = false;
i = 1;
while (i < _root.DepthCounter) {
_root["Ball" + i].gotoAndPlay(2);
i++;
}
_root.NinjaCat._xscale = 100;
_root.NinjaCat.gotoAndStop(3);
_root.BloodTimer.stop();
_root.NinjaCat.AllowControl = false;
Lives--;
_root.MainBorder.Lives.nextFrame();
var fallright = false;
var fallleft = false;
var diffx = (_root.NinjaCat._x - (_root.Floor / 2));
_deadgravity = 0.1;
_deadvely = -3;
if (0 >= diffx) {
_deadvelx = 1;
} else {
_deadvelx = -1;
fallleft = true;
}
CharDead = true;
}
function CheckBloodTimer() {
if ((_root.MainBorder.BloodTimer._currentFrame == _root.MaxTimeAmount) && (_root.GameActive)) {
_root.CharIsDead();
}
}
function CheckFloor(object, floorval) {
with (object) {
if (_y >= floorval) {
_y = floorval;
_VelY = 0;
Jumping = false;
} else if (!Platform) {
Jumping = true;
}
}
}
function CheckBallFloor(value) {
if ((_root.Floor - (value._width / 2)) < value._y) {
bounce.start(0, 1);
value._y = _root.Floor - (value._width / 2);
if (value._xscale == 100) {
value._vely = -11;
} else if (value._xscale == 50) {
value._vely = -10;
} else {
value._vely = -8;
}
} else if (value._y < (55 + (value._width / 2))) {
bounce.start(0, 1);
value._y = 60 + (value._width / 2);
value._vely = value._vely * -1;
}
}
function CheckKeyPress(object) {
with (object) {
if ((Key.isDown(Key.RIGHT) && (_x < (_root.RightPos - 60))) && (AllowControl)) {
_xscale = Math.abs(_xscale);
_VelX = _VelX + _XAcceleration;
gotoAndStop(2);
} else if ((Key.isDown(Key.LEFT) && ((_root.LeftPos + 65) < _x)) && (AllowControl)) {
_xscale = Math.abs(_xscale) * -1;
_VelX = _VelX + (-_XAcceleration);
gotoAndStop(2);
}
if (Key.isDown(Key.SPACE) && (AllowControl)) {
if (((!_root.shooting) && (_root.Line._currentframe == 1)) && (AllowShoot)) {
AllowShoot = false;
AllowControl = false;
_Velx = 0;
Shooting = true;
}
}
}
}
function CheckWalls(value) {
if (value._x < (_root.LeftPos + (value._width / 2))) {
bounce.start(0, 1);
value._velx = value._velx * -1;
value._x = _root.LeftPos + (value._width / 2);
} else if ((_root.RightPos - (value._width / 2)) < value._x) {
bounce.start(0, 1);
value._velx = value._velx * -1;
value._x = _root.RightPos - (value._width / 2);
}
}
function ResetLevel() {
CleanUp();
_root.Controller.LevelInit();
}
function CleanUp() {
var i = 0;
while (i < BallArray.length) {
PopSound.start();
BallArray[i].removeMovieClip();
i++;
}
delete BallArray;
delete AllowShoot;
delete CharDead;
delete DepthCounter;
delete TotalDepthCounter;
delete shooting;
delete SplitCounter;
delete _deadgravity;
delete _deadvely;
delete _deadvelx;
delete tempvar;
delete BonusTotal;
delete TotalScore;
delete BonusScore;
}
function CleanPlatForms() {
var i = 0;
while (i < _root.PlatFormArray[_root.CurrentLevel]) {
_root["Platform" + i].removeMovieClip();
i++;
}
}
function DoLazor() {
LazorSound.start();
_root.shooting = true;
_root.Line._x = _root.NinjaCat._x + (_root.NinjaCat._xscale / 6);
_root.Line._y = (_root.Floor + (_root.Line._height / 2)) - 50;
_root.BottomPoint1._x = _root.NinjaCat._x;
_root.BottomPoint1._y = _root.Floor;
_root.HarpoonPoint._x = _root.Line._x;
_root.HarpoonPoint._y = (_root.Line._y - (_root.Line._height / 2)) - 17;
}
function DoLazorFire() {
_root.NinjaCat.gotoAndStop(4);
}
function DropPowerUp(xpos, ypos) {
var randomNo = (Math.floor(Math.random() * 3) + 2);
_root.PowerUp.gotoAndStop(randomNo);
_root.PowerUp._y = ypos;
_root.PowerUp._x = xpos;
_root.PowerUp._active = true;
}
function getRandom(value) {
var RandomNo = Math.floor(Math.random() * value);
if (RandomNo == 0) {
return(true);
}
return(false);
}
function GotoGameOver() {
CleanPlatForms();
gotoAndPlay (326);
}
function GotoNextLevel() {
CleanPlatforms();
_root.CleanUp();
_root.NewScore = MaxTimeAmount - _root.MainBorder.BloodTimer._currentframe;
_root.GameActive = false;
_root.NinjaCat.gotoAndStop(1);
_root.NextLevel.play();
}
function GotPowerUp(type) {
_root.PickUp.Start(0, 1);
_root.PowerUp.gotoAndStop(1);
if (type == "Oxygen") {
AddOxygen();
} else if (type == "Invincibility") {
SetInvincible();
}
}
function Move(object, x, y) {
with (object) {
_x = _x + x;
_y = _y + y;
}
}
function MoveBalls() {
var i = 0;
while (i < _root.BallArray.length) {
if (_root.BallArray[i]._active) {
_root.BallArray[i]._x = _root.BallArray[i]._x + _root.BallArray[i]._velx;
_root.BallArray[i]._y = _root.BallArray[i]._y + _root.BallArray[i]._vely;
_root.BallArray[i]._vely = _root.BallArray[i]._vely + _root.BallArray[i]._gravity;
_root.CheckBallFloor(_root.BallArray[i]);
_root.CheckWalls(_root.BallArray[i]);
if (_root.shooting) {
_root.TestHit(_root.BallArray[i]);
}
if ((!_root.Controller.Invincible) && (TestCharHit(_root.BallArray[i]))) {
}
if (0 < _root.PlatformArray[_root.CurrentLevel]) {
_root.TestPlatformHits(_root.BallArray[i]);
}
}
i++;
}
}
function MoveLines() {
if (_root.Line.active) {
if (50 < _root.HarpoonPoint._y) {
_root.Line.MoveLines();
var i = 0;
while (i < _root.PlatFormArray[_root.currentlevel]) {
if (_root.HarpoonPoint.hitTest(_root["Platform" + i].Bottom)) {
_root.Line.Die();
}
i++;
}
} else {
_root.Line.Die();
}
}
}
function RemoveFromArray(name) {
var i = 0;
while (i < BallArray.length) {
if (BallArray[i] == _root[name]) {
BallArray[i].removeMovieClip();
var currentcounter = i;
break;
}
i++;
}
BallArray.splice(currentcounter, 1);
}
function SetInvincible() {
_root.Controller.InvincibleTimer = getTimer();
_root.Controller.Invincible = true;
_root.Invincible._visible = true;
}
function DoInvincible() {
_root.Invincible._x = _root.NinjaCat._x;
if ((3000 < (getTimer() - _root.Controller.InvincibleTimer)) && ((getTimer() - _root.Controller.InvincibleTimer) < 4000)) {
if (_root.Invincible._visible) {
_root.Invincible._visible = false;
} else {
_root.Invincible._visible = true;
}
} else if (4000 < (getTimer() - _root.Controller.InvincibleTimer)) {
_root.Controller.Invincible = false;
_root.Invincible._x = -100;
}
}
function SetLazorActive() {
_root.Line.active = true;
}
function Split(x, y, velx, vely, scale, name) {
_root.score = _root.score + ((100 / scale) * 100);
_root[name].active = false;
_root[name].play();
if (25 < scale) {
duplicateMovieClip ("_root.Ball", "Ball" + DepthCounter, DepthCounter);
_root.BallArray.push(_root["Ball" + DepthCounter]);
_root["Ball" + DepthCounter]._x = x;
_root["Ball" + DepthCounter]._y = y;
_root["Ball" + DepthCounter]._xscale = scale / 2;
_root["Ball" + DepthCounter]._yscale = scale / 2;
_root["Ball" + DepthCounter]._velx = velx;
_root["Ball" + DepthCounter]._vely = -5;
_root["Ball" + DepthCounter]._gravity = _root.GravVal;
_root["Ball" + DepthCounter]._active = true;
DepthCounter++;
duplicateMovieClip ("_root.Ball", "Ball" + DepthCounter, DepthCounter);
_root.BallArray.push(_root["Ball" + DepthCounter]);
_root["Ball" + DepthCounter]._x = x;
_root["Ball" + DepthCounter]._y = y;
_root["Ball" + DepthCounter]._xscale = scale / 2;
_root["Ball" + DepthCounter]._yscale = scale / 2;
_root["Ball" + DepthCounter]._velx = -velx;
_root["Ball" + DepthCounter]._vely = -5;
_root["Ball" + DepthCounter]._gravity = _root.GravVal;
_root["Ball" + DepthCounter]._active = true;
DepthCounter++;
}
if (GetRandom(5)) {
if (_root.PowerUp._currentframe == 1) {
DropPowerUp(_root[name]._x, _root[name]._y);
}
}
SplitCounter++;
_root.Line2.active = false;
_root.Line4.active = false;
if (SplitCounter == TotalDepthCounter) {
GotoNextLevel();
}
}
function TestCharHit(value) {
var nabx = (value._x - _root.NinjaCat._x);
var naby = ((value._y - _root.NinjaCat._y) + (_root.NinjaCat._height / 2));
var tlength = Math.sqrt((nabx * nabx) + (naby * naby));
if (value._xscale == 100) {
value.CheckDistance = 80;
} else if (value._xscale == 50) {
value.CheckDistance = 50;
} else if (value._xscale == 25) {
value.CheckDistance = 35;
}
if (tlength < value.CheckDistance) {
return(true);
}
return(false);
}
function TestHit(value) {
if (value.hitTest(_root.Line)) {
_root.shooting = false;
_root.Line.Die();
value._active = false;
PopSound.start();
_root.Split(value._x, value._y, value._velx, value._vely, value._xscale, value._name);
}
}
function TestPlatformHits(value) {
var i = 0;
while (i < _root.PlatFormArray[_root.Currentlevel]) {
if (value.hitTest(_root["Platform" + i].Top) && (value.AllowHits)) {
value._vely = value._vely * -1;
value._y = value._y - 5;
value.AllowHits = false;
} else if (value.hitTest(_root["Platform" + i].Bottom) && (value.AllowHits)) {
value._vely = value._vely * -1;
value._y = value._y + 5;
value.AllowHits = false;
} else if (value.hitTest(_root["Platform" + i].Left) && (value.AllowHits)) {
value._velx = value._velx * -1;
value._x = value._x - 5;
value.AllowHits = false;
} else if (value.hitTest(_root["Platform" + i].Right) && (value.AllowHits)) {
value._velx = value._velx * -1;
value._x = value._x + 5;
value.AllowHits = false;
} else {
value.AllowHits = true;
}
i++;
}
}
stop();
MainVolume = 100;
PopSound = new Sound();
PopSound.attachSound("PopSound");
LazorSound = new Sound();
LazorSound.attachSound("LazorSound");
PickUp = new Sound();
PickUp.attachSound("PickUp");
Bounce = new Sound();
Bounce.attachSound("Bounce");
fscommand ("allowscale", false);
CurrentLevel = 0;
NoScores = 50;
Location = "";
FileName = "Highscore.asp";
_root.Floor = 390;
_root.LeftPos = 95;
_root.RightPos = 595;
_root.GravVal = 0.3;
_root.BeamSpeed = 10;
_root.SecondsToSwitch = 4000;
BallPosArray = new Array();
BallPosArray[0] = [1, 250, 115];
BallPosArray[1] = [1, 250, 115];
BallPosArray[2] = [1, 250, 115];
BallPosArray[3] = [1, 250, 115];
BallPosArray[4] = [2, 300, 115, 400, 115];
PlatFormArray = new Array();
PlatFormArray[0] = 0;
PlatFormArray[1] = 1;
PlatFormArray[2] = 2;
PlatFormArray[3] = 2;
PlatFormArray[4] = 0;
BeamOffset = 3;
LineYOffset = -70;
Instance of Symbol 47 MovieClip "cross" in Frame 4
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 50
stop();
Instance of Symbol 47 MovieClip "cross" in Frame 50
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 51
function GotoNextScene() {
gotoAndPlay (52);
}
_root.MaxTimeAmount = _root.MainBorder.BloodTimer._totalframes;
_quality = "MEDIUM";
_root.Score = 0;
_root.Lives = 3;
_root.currentLevel = 0;
stop();
Instance of Symbol 87 MovieClip "Line" in Frame 51
onClipEvent (load) {
function Init() {
active = false;
}
function Die() {
_root.NinjaCat.AllowControl = true;
_root.NinjaCat.shooting = false;
_root.NinjaCat.gotoAndStop(1);
active = false;
this._x = -100;
this._y = (_root.Floor + (_height / 2)) - 50;
_root.Line2._x = -100;
_root.BottomPoint1._x = -100;
_root.HarpoonPoint._x = -100;
_root.HarpoonPoint._y = -100;
_root.shooting = false;
}
function MoveLines() {
this._y = this._y - _root.BeamSpeed;
_root.HarpoonPoint._y = (this._y - (this._height / 2)) - 17;
}
Init();
}
Instance of Symbol 102 MovieClip "PowerUp" in Frame 51
onClipEvent (load) {
_vely = 5;
_active = false;
}
onClipEvent (enterFrame) {
if (_active) {
if ((_y + (_height / 2)) < _root.Floor) {
_y = (_y + _vely);
} else {
_active = false;
}
}
}
Instance of Symbol 114 MovieClip "NinjaCat" in Frame 51
onClipEvent (load) {
function Init() {
AllowControl = true;
_Friction = 0.7;
_XAcceleration = 3;
_velx = 0;
Jumping = false;
Invincible = false;
_root.shooting = false;
Shooting = false;
}
}
Instance of Symbol 139 MovieClip "Controller" in Frame 51
onClipEvent (load) {
function LevelInit() {
_root.MainBorder.Lives.gotoAndStop(4 - _root.Lives);
_root.BallArray = new Array();
Invincible = false;
DoubleLazor = false;
InitMode = true;
_root.SplitCounter = 0;
_root.AllowShoot = true;
_root.NinjaCat.gotoAndStop(1);
_root.NinjaCat._x = (_root.ScreenWidth / 2) + 30;
_root.NinjaCat._y = _root.Floor;
_root.CharDead = false;
TimeDiff = 2;
NoBalls = _root.BallPosArray[_root.CurrentLevel][0];
_root.DepthCounter = NoBalls + 1;
_root.TotalDepthCounter = 7 * NoBalls;
i = 1;
while (NoBalls >= i) {
duplicateMovieClip ("_root.Ball", "Ball" + i, i);
_root["Ball" + i]._x = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 1];
_root["Ball" + i]._y = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 2];
if (i == 1) {
_root["Ball" + i]._velx = -5;
} else if (i == 2) {
_root["Ball" + i]._velx = 5;
}
_root["Ball" + i]._gravity = _root.GravVal;
_root["Ball" + i]._active = true;
_root["Ball" + i].AllowHits = true;
_root.BallArray.push(_root["Ball" + i]);
i++;
}
startTimer = getTimer();
}
function setTime() {
if (_root.SecondsToSwitch < (getTimer() - startTimer)) {
_root.MainBorder.BloodTimer.nextFrame();
startTimer = getTimer();
}
}
LevelInit();
_root.PickUp.start(0, 1);
}
onClipEvent (enterFrame) {
if (InitMode) {
if (1000 < (getTimer() - StartTimer)) {
StartTimer = getTimer();
InitMode = false;
_root.GameActive = true;
_root.NinjaCat.Init();
}
} else if (_root.GameActive) {
_root.CheckBloodTimer();
setTime();
_root.CheckKeyPress(_root.NinjaCat);
_root.Move(_root.NinjaCat, _root.NinjaCat._VelX, _root.NinjaCat._VelY);
if (Invincible) {
_root.DoInvincible();
}
if ((_root.NinjaCat._Velx != 0) || (_root.NinjaCat.Jumping)) {
_root.ApplyForces(_root.NinjaCat, _root.NinjaCat._Friction);
} else if (_root.NinjaCat.shooting) {
_root.DoLazorFire();
} else if (_root.NinjaCat._currentframe != 1) {
_root.NinjaCat.gotoAndStop(1);
}
_root.MoveBalls();
_root.MoveLines();
} else if (_root.CharDead) {
_root.NinjaCat.gotoAndStop(3);
} else {
_root.GameActive = false;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.AllowShoot = true;
}
}
Instance of Symbol 47 MovieClip "cross" in Frame 51
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 52
_quality = "HIGH";
BonusTotal = NewScore * 1000;
TotalScore = BonusTotal + Score;
BonusScore = 0;
Instance of Symbol 47 MovieClip "cross" in Frame 52
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 72
if (Score == TotalScore) {
gotoAndPlay (74);
} else {
Score = Score + 100;
BonusTotal = BonusTotal - 100;
}
Frame 73
prevFrame();
play();
Frame 99
Score = Score + BonusScore;
BonusScore = 0;
Frame 105
CurrentLevel++;
stop();
Frame 106
function GotoNextScene() {
gotoAndPlay (107);
}
_root.MaxTimeAmount = _root.MainBorder.BloodTimer._totalframes;
_quality = "MEDIUM";
stop();
Instance of Symbol 87 MovieClip "Line" in Frame 106
onClipEvent (load) {
function Init() {
active = false;
}
function Die() {
_root.NinjaCat.AllowControl = true;
_root.NinjaCat.shooting = false;
_root.NinjaCat.gotoAndStop(1);
active = false;
this._x = -100;
this._y = (_root.Floor + (_height / 2)) - 50;
_root.Line2._x = -100;
_root.BottomPoint1._x = -100;
_root.HarpoonPoint._x = -100;
_root.HarpoonPoint._y = -100;
_root.shooting = false;
}
function MoveLines() {
this._y = this._y - _root.BeamSpeed;
_root.HarpoonPoint._y = (this._y - (this._height / 2)) - 17;
}
Init();
}
Instance of Symbol 102 MovieClip "PowerUp" in Frame 106
onClipEvent (load) {
_vely = 5;
_active = false;
}
onClipEvent (enterFrame) {
if (_active) {
if ((_y + (_height / 2)) < _root.Floor) {
_y = (_y + _vely);
} else {
_active = false;
}
}
}
Instance of Symbol 114 MovieClip "NinjaCat" in Frame 106
onClipEvent (load) {
function Init() {
AllowControl = true;
_Friction = 0.7;
_XAcceleration = 3;
_velx = 0;
Jumping = false;
Invincible = false;
_root.shooting = false;
Shooting = false;
}
}
Instance of Symbol 171 MovieClip "Controller" in Frame 106
onClipEvent (load) {
function LevelInit() {
_root.MainBorder.Lives.gotoAndStop(4 - _root.Lives);
_root.BallArray = new Array();
Invincible = false;
DoubleLazor = false;
InitMode = true;
_root.SplitCounter = 0;
_root.AllowShoot = true;
_root.NinjaCat.gotoAndStop(1);
_root.NinjaCat._x = (_root.ScreenWidth / 2) + 30;
_root.NinjaCat._y = _root.Floor;
_root.CharDead = false;
TimeDiff = 2;
NoBalls = _root.BallPosArray[_root.CurrentLevel][0];
_root.DepthCounter = NoBalls + 1;
_root.TotalDepthCounter = 7 * NoBalls;
i = 1;
while (NoBalls >= i) {
duplicateMovieClip ("_root.Ball", "Ball" + i, i);
_root["Ball" + i]._x = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 1];
_root["Ball" + i]._y = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 2];
if (i == 1) {
_root["Ball" + i]._velx = -5;
} else if (i == 2) {
_root["Ball" + i]._velx = 5;
}
_root["Ball" + i]._gravity = _root.GravVal;
_root["Ball" + i]._active = true;
_root["Ball" + i].AllowHits = true;
_root.BallArray.push(_root["Ball" + i]);
i++;
}
startTimer = getTimer();
}
function setTime() {
if (_root.SecondsToSwitch < (getTimer() - startTimer)) {
_root.MainBorder.BloodTimer.nextFrame();
startTimer = getTimer();
}
}
LevelInit();
_root.PickUp.start(0, 1);
}
onClipEvent (enterFrame) {
if (InitMode) {
if (1000 < (getTimer() - StartTimer)) {
StartTimer = getTimer();
InitMode = false;
_root.GameActive = true;
_root.NinjaCat.Init();
}
} else if (_root.GameActive) {
_root.CheckBloodTimer();
setTime();
_root.CheckKeyPress(_root.NinjaCat);
_root.Move(_root.NinjaCat, _root.NinjaCat._VelX, _root.NinjaCat._VelY);
if (Invincible) {
_root.DoInvincible();
}
if ((_root.NinjaCat._Velx != 0) || (_root.NinjaCat.Jumping)) {
_root.ApplyForces(_root.NinjaCat, _root.NinjaCat._Friction);
} else if (_root.NinjaCat.shooting) {
_root.DoLazorFire();
} else if (_root.NinjaCat._currentframe != 1) {
_root.NinjaCat.gotoAndStop(1);
}
_root.MoveBalls();
_root.MoveLines();
} else if (_root.CharDead) {
_root.NinjaCat.gotoAndStop(3);
} else {
_root.GameActive = false;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.AllowShoot = true;
}
}
Instance of Symbol 47 MovieClip "cross" in Frame 106
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 107
_quality = "HIGH";
BonusTotal = NewScore * 1000;
TotalScore = BonusTotal + Score;
BonusScore = 0;
Instance of Symbol 47 MovieClip "cross" in Frame 107
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 127
if (Score == TotalScore) {
gotoAndPlay (129);
} else {
Score = Score + 100;
BonusTotal = BonusTotal - 100;
}
Frame 128
prevFrame();
play();
Frame 154
Score = Score + BonusScore;
BonusScore = 0;
Frame 160
CurrentLevel++;
stop();
Frame 161
function GotoNextScene() {
gotoAndPlay (162);
}
_root.MaxTimeAmount = _root.MainBorder.BloodTimer._totalframes;
_quality = "MEDIUM";
stop();
Instance of Symbol 87 MovieClip "Line" in Frame 161
onClipEvent (load) {
function Init() {
active = false;
}
function Die() {
_root.NinjaCat.AllowControl = true;
_root.NinjaCat.shooting = false;
_root.NinjaCat.gotoAndStop(1);
active = false;
this._x = -100;
this._y = (_root.Floor + (_height / 2)) - 50;
_root.Line2._x = -100;
_root.BottomPoint1._x = -100;
_root.HarpoonPoint._x = -100;
_root.HarpoonPoint._y = -100;
_root.shooting = false;
}
function MoveLines() {
this._y = this._y - _root.BeamSpeed;
_root.HarpoonPoint._y = (this._y - (this._height / 2)) - 17;
}
Init();
}
Instance of Symbol 102 MovieClip "PowerUp" in Frame 161
onClipEvent (load) {
_vely = 5;
_active = false;
}
onClipEvent (enterFrame) {
if (_active) {
if ((_y + (_height / 2)) < _root.Floor) {
_y = (_y + _vely);
} else {
_active = false;
}
}
}
Instance of Symbol 114 MovieClip "NinjaCat" in Frame 161
onClipEvent (load) {
function Init() {
AllowControl = true;
_Friction = 0.7;
_XAcceleration = 3;
_velx = 0;
Jumping = false;
Invincible = false;
_root.shooting = false;
Shooting = false;
}
}
Instance of Symbol 171 MovieClip "Controller" in Frame 161
onClipEvent (load) {
function LevelInit() {
_root.MainBorder.Lives.gotoAndStop(4 - _root.Lives);
_root.BallArray = new Array();
Invincible = false;
DoubleLazor = false;
InitMode = true;
_root.SplitCounter = 0;
_root.AllowShoot = true;
_root.NinjaCat.gotoAndStop(1);
_root.NinjaCat._x = (_root.ScreenWidth / 2) + 30;
_root.NinjaCat._y = _root.Floor;
_root.CharDead = false;
TimeDiff = 2;
NoBalls = _root.BallPosArray[_root.CurrentLevel][0];
_root.DepthCounter = NoBalls + 1;
_root.TotalDepthCounter = 7 * NoBalls;
i = 1;
while (NoBalls >= i) {
duplicateMovieClip ("_root.Ball", "Ball" + i, i);
_root["Ball" + i]._x = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 1];
_root["Ball" + i]._y = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 2];
if (i == 1) {
_root["Ball" + i]._velx = -5;
} else if (i == 2) {
_root["Ball" + i]._velx = 5;
}
_root["Ball" + i]._gravity = _root.GravVal;
_root["Ball" + i]._active = true;
_root["Ball" + i].AllowHits = true;
_root.BallArray.push(_root["Ball" + i]);
i++;
}
startTimer = getTimer();
}
function setTime() {
if (_root.SecondsToSwitch < (getTimer() - startTimer)) {
_root.MainBorder.BloodTimer.nextFrame();
startTimer = getTimer();
}
}
LevelInit();
_root.PickUp.start(0, 1);
}
onClipEvent (enterFrame) {
if (InitMode) {
if (1000 < (getTimer() - StartTimer)) {
StartTimer = getTimer();
InitMode = false;
_root.GameActive = true;
_root.NinjaCat.Init();
}
} else if (_root.GameActive) {
_root.CheckBloodTimer();
setTime();
_root.CheckKeyPress(_root.NinjaCat);
_root.Move(_root.NinjaCat, _root.NinjaCat._VelX, _root.NinjaCat._VelY);
if (Invincible) {
_root.DoInvincible();
}
if ((_root.NinjaCat._Velx != 0) || (_root.NinjaCat.Jumping)) {
_root.ApplyForces(_root.NinjaCat, _root.NinjaCat._Friction);
} else if (_root.NinjaCat.shooting) {
_root.DoLazorFire();
} else if (_root.NinjaCat._currentframe != 1) {
_root.NinjaCat.gotoAndStop(1);
}
_root.MoveBalls();
_root.MoveLines();
} else if (_root.CharDead) {
_root.NinjaCat.gotoAndStop(3);
} else {
_root.GameActive = false;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.AllowShoot = true;
}
}
Instance of Symbol 47 MovieClip "cross" in Frame 161
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 162
_quality = "HIGH";
BonusTotal = NewScore * 1000;
TotalScore = BonusTotal + Score;
BonusScore = 0;
Instance of Symbol 47 MovieClip "cross" in Frame 162
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 182
if (Score == TotalScore) {
gotoAndPlay (184);
} else {
Score = Score + 100;
BonusTotal = BonusTotal - 100;
}
Frame 183
prevFrame();
play();
Frame 209
Score = Score + BonusScore;
BonusScore = 0;
Frame 215
CurrentLevel++;
stop();
Frame 216
function GotoNextScene() {
gotoAndPlay (217);
}
_root.MaxTimeAmount = _root.MainBorder.BloodTimer._totalframes;
_quality = "MEDIUM";
stop();
Instance of Symbol 87 MovieClip "Line" in Frame 216
onClipEvent (load) {
function Init() {
active = false;
}
function Die() {
_root.NinjaCat.AllowControl = true;
_root.NinjaCat.shooting = false;
_root.NinjaCat.gotoAndStop(1);
active = false;
this._x = -100;
this._y = (_root.Floor + (_height / 2)) - 50;
_root.Line2._x = -100;
_root.BottomPoint1._x = -100;
_root.HarpoonPoint._x = -100;
_root.HarpoonPoint._y = -100;
_root.shooting = false;
}
function MoveLines() {
this._y = this._y - _root.BeamSpeed;
_root.HarpoonPoint._y = (this._y - (this._height / 2)) - 17;
}
Init();
}
Instance of Symbol 102 MovieClip "PowerUp" in Frame 216
onClipEvent (load) {
_vely = 5;
_active = false;
}
onClipEvent (enterFrame) {
if (_active) {
if ((_y + (_height / 2)) < _root.Floor) {
_y = (_y + _vely);
} else {
_active = false;
}
}
}
Instance of Symbol 114 MovieClip "NinjaCat" in Frame 216
onClipEvent (load) {
function Init() {
AllowControl = true;
_Friction = 0.7;
_XAcceleration = 3;
_velx = 0;
Jumping = false;
Invincible = false;
_root.shooting = false;
Shooting = false;
}
}
Instance of Symbol 171 MovieClip "Controller" in Frame 216
onClipEvent (load) {
function LevelInit() {
_root.MainBorder.Lives.gotoAndStop(4 - _root.Lives);
_root.BallArray = new Array();
Invincible = false;
DoubleLazor = false;
InitMode = true;
_root.SplitCounter = 0;
_root.AllowShoot = true;
_root.NinjaCat.gotoAndStop(1);
_root.NinjaCat._x = (_root.ScreenWidth / 2) + 30;
_root.NinjaCat._y = _root.Floor;
_root.CharDead = false;
TimeDiff = 2;
NoBalls = _root.BallPosArray[_root.CurrentLevel][0];
_root.DepthCounter = NoBalls + 1;
_root.TotalDepthCounter = 7 * NoBalls;
i = 1;
while (NoBalls >= i) {
duplicateMovieClip ("_root.Ball", "Ball" + i, i);
_root["Ball" + i]._x = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 1];
_root["Ball" + i]._y = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 2];
if (i == 1) {
_root["Ball" + i]._velx = -5;
} else if (i == 2) {
_root["Ball" + i]._velx = 5;
}
_root["Ball" + i]._gravity = _root.GravVal;
_root["Ball" + i]._active = true;
_root["Ball" + i].AllowHits = true;
_root.BallArray.push(_root["Ball" + i]);
i++;
}
startTimer = getTimer();
}
function setTime() {
if (_root.SecondsToSwitch < (getTimer() - startTimer)) {
_root.MainBorder.BloodTimer.nextFrame();
startTimer = getTimer();
}
}
LevelInit();
_root.PickUp.start(0, 1);
}
onClipEvent (enterFrame) {
if (InitMode) {
if (1000 < (getTimer() - StartTimer)) {
StartTimer = getTimer();
InitMode = false;
_root.GameActive = true;
_root.NinjaCat.Init();
}
} else if (_root.GameActive) {
_root.CheckBloodTimer();
setTime();
_root.CheckKeyPress(_root.NinjaCat);
_root.Move(_root.NinjaCat, _root.NinjaCat._VelX, _root.NinjaCat._VelY);
if (Invincible) {
_root.DoInvincible();
}
if ((_root.NinjaCat._Velx != 0) || (_root.NinjaCat.Jumping)) {
_root.ApplyForces(_root.NinjaCat, _root.NinjaCat._Friction);
} else if (_root.NinjaCat.shooting) {
_root.DoLazorFire();
} else if (_root.NinjaCat._currentframe != 1) {
_root.NinjaCat.gotoAndStop(1);
}
_root.MoveBalls();
_root.MoveLines();
} else if (_root.CharDead) {
_root.NinjaCat.gotoAndStop(3);
} else {
_root.GameActive = false;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.AllowShoot = true;
}
}
Instance of Symbol 47 MovieClip "cross" in Frame 216
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 217
_quality = "HIGH";
BonusTotal = NewScore * 1000;
TotalScore = BonusTotal + Score;
BonusScore = 0;
Instance of Symbol 47 MovieClip "cross" in Frame 217
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 237
if (Score == TotalScore) {
gotoAndPlay (239);
} else {
Score = Score + 100;
BonusTotal = BonusTotal - 100;
}
Frame 238
prevFrame();
play();
Frame 264
Score = Score + BonusScore;
BonusScore = 0;
Frame 270
CurrentLevel++;
stop();
Frame 271
function GotoNextScene() {
gotoAndPlay (272);
}
_root.MaxTimeAmount = _root.MainBorder.BloodTimer._totalframes;
_quality = "MEDIUM";
stop();
Instance of Symbol 87 MovieClip "Line" in Frame 271
onClipEvent (load) {
function Init() {
active = false;
}
function Die() {
_root.NinjaCat.AllowControl = true;
_root.NinjaCat.shooting = false;
_root.NinjaCat.gotoAndStop(1);
active = false;
this._x = -100;
this._y = (_root.Floor + (_height / 2)) - 50;
_root.Line2._x = -100;
_root.BottomPoint1._x = -100;
_root.HarpoonPoint._x = -100;
_root.HarpoonPoint._y = -100;
_root.shooting = false;
}
function MoveLines() {
this._y = this._y - _root.BeamSpeed;
_root.HarpoonPoint._y = (this._y - (this._height / 2)) - 17;
}
Init();
}
Instance of Symbol 102 MovieClip "PowerUp" in Frame 271
onClipEvent (load) {
_vely = 5;
_active = false;
}
onClipEvent (enterFrame) {
if (_active) {
if ((_y + (_height / 2)) < _root.Floor) {
_y = (_y + _vely);
} else {
_active = false;
}
}
}
Instance of Symbol 114 MovieClip "NinjaCat" in Frame 271
onClipEvent (load) {
function Init() {
AllowControl = true;
_Friction = 0.7;
_XAcceleration = 3;
_velx = 0;
Jumping = false;
Invincible = false;
_root.shooting = false;
Shooting = false;
}
}
Instance of Symbol 171 MovieClip "Controller" in Frame 271
onClipEvent (load) {
function LevelInit() {
_root.MainBorder.Lives.gotoAndStop(4 - _root.Lives);
_root.BallArray = new Array();
Invincible = false;
DoubleLazor = false;
InitMode = true;
_root.SplitCounter = 0;
_root.AllowShoot = true;
_root.NinjaCat.gotoAndStop(1);
_root.NinjaCat._x = (_root.ScreenWidth / 2) + 30;
_root.NinjaCat._y = _root.Floor;
_root.CharDead = false;
TimeDiff = 2;
NoBalls = _root.BallPosArray[_root.CurrentLevel][0];
_root.DepthCounter = NoBalls + 1;
_root.TotalDepthCounter = 7 * NoBalls;
i = 1;
while (NoBalls >= i) {
duplicateMovieClip ("_root.Ball", "Ball" + i, i);
_root["Ball" + i]._x = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 1];
_root["Ball" + i]._y = _root.BallPosArray[_root.CurrentLevel][((i - 1) * 2) + 2];
if (i == 1) {
_root["Ball" + i]._velx = -5;
} else if (i == 2) {
_root["Ball" + i]._velx = 5;
}
_root["Ball" + i]._gravity = _root.GravVal;
_root["Ball" + i]._active = true;
_root["Ball" + i].AllowHits = true;
_root.BallArray.push(_root["Ball" + i]);
i++;
}
startTimer = getTimer();
}
function setTime() {
if (_root.SecondsToSwitch < (getTimer() - startTimer)) {
_root.MainBorder.BloodTimer.nextFrame();
startTimer = getTimer();
}
}
LevelInit();
_root.PickUp.start(0, 1);
}
onClipEvent (enterFrame) {
if (InitMode) {
if (1000 < (getTimer() - StartTimer)) {
StartTimer = getTimer();
InitMode = false;
_root.GameActive = true;
_root.NinjaCat.Init();
}
} else if (_root.GameActive) {
_root.CheckBloodTimer();
setTime();
_root.CheckKeyPress(_root.NinjaCat);
_root.Move(_root.NinjaCat, _root.NinjaCat._VelX, _root.NinjaCat._VelY);
if (Invincible) {
_root.DoInvincible();
}
if ((_root.NinjaCat._Velx != 0) || (_root.NinjaCat.Jumping)) {
_root.ApplyForces(_root.NinjaCat, _root.NinjaCat._Friction);
} else if (_root.NinjaCat.shooting) {
_root.DoLazorFire();
} else if (_root.NinjaCat._currentframe != 1) {
_root.NinjaCat.gotoAndStop(1);
}
_root.MoveBalls();
_root.MoveLines();
} else if (_root.CharDead) {
_root.NinjaCat.gotoAndStop(3);
} else {
_root.GameActive = false;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.AllowShoot = true;
}
}
Instance of Symbol 47 MovieClip "cross" in Frame 271
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 272
_quality = "HIGH";
BonusTotal = NewScore * 1000;
TotalScore = BonusTotal + Score;
BonusScore = 0;
Instance of Symbol 47 MovieClip "cross" in Frame 272
onClipEvent (load) {
if (_root.MusicOn) {
_visible = false;
}
}
Frame 292
if (Score == TotalScore) {
gotoAndPlay (294);
} else {
Score = Score + 100;
BonusTotal = BonusTotal - 100;
}
Frame 293
prevFrame();
play();
Frame 319
Score = Score + BonusScore;
BonusScore = 0;
Frame 325
CurrentLevel++;
stop();
Frame 326
_quality = "HIGH";
MusicLoop.stop();
Frame 385
stop();
Frame 386
_quality = "HIGH";
Frame 445
stop();
Symbol 41 Button
on (release) {
gotoAndStop (50);
}
Symbol 43 Button
on (release) {
gotoAndStop (51);
}
Symbol 45 Button
on (rollOver) {
if (_root.MusicOn) {
_root.Cross._visible = true;
} else {
_root.Cross._visible = false;
}
}
on (rollOut) {
if (_root.MusicOn) {
_root.Cross._visible = false;
} else {
_root.Cross._visible = true;
}
}
on (release) {
if (_root.MusicOn) {
_root.MusicLoop.setVolume(0);
_root.MusicOn = false;
} else {
_root.MusicLoop.setVolume(_root.MainVolume);
_root.MusicOn = true;
}
}
Symbol 54 MovieClip Frame 60
gotoAndPlay (34);
Symbol 59 Button
on (release) {
gotoAndStop (2);
}
Symbol 61 Button
on (release) {
gotoAndStop (3);
}
Symbol 63 Button
on (release) {
gotoAndStop (1);
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 3
stop();
Symbol 83 Button
on (release) {
gotoAndStop (4);
}
Instance of Symbol 91 MovieClip "Left" in Symbol 94 MovieClip Frame 1
/* no clip actions */
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 12
_root.RemoveFromArray(_name);
stop();
Symbol 102 MovieClip Frame 1
stop();
Instance of Symbol 100 MovieClip "Invincibility" in Symbol 102 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.NinjaCat)) {
_root.GotPowerUp(_name);
}
}
Instance of Symbol 101 MovieClip "Oxygen" in Symbol 102 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.NinjaCat)) {
_root.GotPowerUp(_name);
}
}
Symbol 112 MovieClip Frame 18
if ((0 < _root.Lives) && (_root.MainBorder.BloodTimer._currentFrame != _root.MaxTimeAmount)) {
_root.CharDead = false;
_root.ResetLevel();
Init();
} else {
_root.CleanUp();
_root.GameOver.play();
}
stop();
Symbol 113 MovieClip Frame 1
_root.DoLazor();
_root.SetLazorActive();
Symbol 113 MovieClip Frame 7
_parent.shooting = false;
_parent.allowcontrol = true;
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 60
_root.GotoGameOver();
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 60
_root.GotoNextScene();
stop();
Symbol 161 Button
on (release, keyPress "<Space>") {
gotoAndStop (106);
}
Symbol 165 Button
on (release) {
gotoAndStop (106);
}
Symbol 174 Button
on (release, keyPress "<Space>") {
gotoAndStop (161);
}
Symbol 175 Button
on (release) {
gotoAndStop (161);
}
Symbol 183 Button
on (rollOver) {
if (_root.MusicOn) {
_root.Cross._visible = true;
} else {
_root.Cross._visible = false;
}
}
on (rollOut) {
if (_root.MusicOn) {
_root.Cross._visible = false;
} else {
_root.Cross._visible = true;
}
}
on (release) {
if (_root.MusicOn) {
_root.MusicLoop.setVolume(0);
_root.MusicOn = false;
} else {
_root.MusicLoop.setVolume(_root.MainVolume);
_root.MusicOn = true;
}
}
Symbol 184 Button
on (release, keyPress "<Space>") {
gotoAndStop (216);
}
Symbol 185 Button
on (release) {
gotoAndStop (216);
}
Symbol 191 Button
on (release, keyPress "<Space>") {
gotoAndStop (271);
}
Symbol 192 Button
on (release) {
gotoAndStop (271);
}
Symbol 203 Button
on (release, keyPress "<Space>") {
gotoAndStop (326);
}
Symbol 209 Button
on (release) {
gotoAndPlay (386);
}
Symbol 217 Button
on (release) {
_root.PlayMainMusic();
gotoAndStop (4);
}