Frame 1
mcLoad.onEnterFrame = function () {
gLoad = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (gLoad >= 100) {
_root.gotoAndPlay("opening", "opening");
} else {
this.t = gLoad + "%";
this.gotoAndStop(gLoad);
}
};
stop();
Frame 2
_root.stop();
Nshot = new sound();
Nshot.attachSound("Nshot");
Sshot = new sound();
Sshot.attachSound("Sshot");
lifeup = new sound();
lifeup.attachSound("lifeup");
transform = new sound();
transform.attachSound("transform");
_global.TotalScore = 0;
Frame 3
_root.stop();
Frame 4
_root.stop();
Frame 5
_root.play();
_global.stagenum = 1;
_global.TotalScore = 0;
Frame 104
_root.nextScene();
Frame 105
var SDan_counter = 1;
var NDan_counter = 1;
_root.stop();
_root.frame.duplicateMovieClip("newframe", 30000);
_root.newframe._x = 210;
_root.newframe._y = 210;
Instance of Symbol 61 MovieClip "MainChar" in Frame 105
onClipEvent (load) {
function checkBoss1SitaHit() {
if (this.hit_area.hittest(_root.BOSS1.sita)) {
}
}
function checkLifeItemHit() {
if (this.hit_area.hittest(_root.LifeupIns.hit_area)) {
_root.lifeup.start();
_root.LifeupIns.hit();
_root.newframe.LifeCounter.LifeRecovery();
}
}
function checkCollisionStage1BossVero() {
}
function checkEnemmyHit() {
if (boolCharactorMuteki == true) {
intMutekiCounter = intMutekiCounter + 1;
if (intMutekiCounter > this.damageA._totalFrames) {
boolCharactorMuteki = false;
intMutekiCounter = 0;
}
}
if (boolCharactorMuteki == false) {
var enObject = _root.enemy_ctr.checkCollision(this.hit_area);
if (enObject != undefined) {
boolCharactorMuteki = true;
enObject.deleteObject();
_root.newframe.LifeCounter.Lifedamage();
this.damageA.play();
this.damageB.play();
this.damageC.play();
}
if (_root.BOSS1.mot.sita.hittest(this.hit_area)) {
boolCharactorMuteki = true;
_root.newframe.LifeCounter.Lifedamage();
this.damageA.play();
this.damageB.play();
this.damageC.play();
}
}
}
function goLeftTurn() {
this.gotoAndPlay("left_turn");
this.damageA._visible = false;
this.damageB._visible = true;
this.damageC._visible = false;
}
function goRightTurn() {
this.gotoAndPlay("right_turn");
this.damageA._visible = false;
this.damageB._visible = false;
this.damageC._visible = true;
}
function goNutralTurn() {
this.gotoAndPlay("neutral ");
this.damageA._visible = true;
this.damageB._visible = false;
this.damageC._visible = false;
}
function MainCharMove() {
if (Key.isDown(37) && (Key.isDown(38))) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(39) && (Key.isDown(38))) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(37) && (Key.isDown(40))) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(39) && (Key.isDown(40))) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(37)) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goLeftTurn();
} else if (Key.isDown(39)) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goRightTurn();
} else if (Key.isDown(38)) {
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(40)) {
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
}
if (n_counter == 0) {
this.goNutralTurn();
}
n_counter = n_counter - 1;
}
var NEUTRAL_TIMING_COUNTER = 5;
var n_counter = NEUTRAL_TIMING_COUNTER;
var step_counter = 5;
var LIFE_POINT = 3;
var lifePoint = 3;
var boolCharactorMuteki = false;
var intMutekiCounter = 0;
var CHAR_MOVE_MIN_X = 20;
var CHAR_MOVE_MAX_X = 230;
var CHAR_MOVE_MIN_Y = 20;
var CHAR_MOVE_MAX_Y = 350;
}
onClipEvent (enterFrame) {
this.MainCharMove();
this.checkLifeItemHit();
this.checkEnemmyHit();
this.checkBoss1SitaHit();
}
Instance of Symbol 87 MovieClip "SNDan" in Frame 105
onClipEvent (load) {
function clear() {
if ((((this._y < 20) || (400 < this._y)) || (this._x < 20)) || (250 < this._x)) {
this.removeMovieClip("");
}
}
function deleteInstance() {
this.removeMovieClip("");
}
var magnetic_power = true;
var spd = 20;
var magnetic_vector = true;
if (this._name == "SNDan") {
} else {
_x = (_root.MainChar._x + 15);
_y = (_root.MainChar._y - 10);
this.magnetic_vector = _root.SNDan_Init_Magnetic;
if (this.magnetic_vector == true) {
this.N._visible = false;
this.S._visible = true;
} else if (this.magnetic_vector == false) {
this.S._visible = false;
this.N._visible = true;
}
this.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
_root.enemy_ctr.checkAttack(this);
}
Instance of Symbol 114 MovieClip "TekiA" in Frame 105
onClipEvent (load) {
function deleteObject() {
this.removeMovieClip("");
}
}
Instance of Symbol 117 MovieClip "enemy_ctr" in Frame 105
onClipEvent (load) {
function deleteAllInsEnemys() {
var i = 0;
while (i < enemyArray.length) {
enemyArray[i].removeMovieClip();
i = i + 1;
}
_root.LifeupIns.removeMovieClip();
}
function makeInsLifeupChar() {
var lifeCharTiming = parseInt(Math.random() * 200);
if ((lifeCharTiming == 0) && (_root.LifeupIns == undefined)) {
duplicateMovieClip (_root.LifeupMC, "LifeupIns", 3000);
_root.LifeupIns._x = 50 + parseInt(Math.random() * 200);
_root.LifeupIns._y = 0;
_root.LifeupIns.gotoAndPlay(2);
}
}
function checkCollision(ObjHitArea) {
var i = 0;
while (i <= enemyArray.length) {
if (ObjHitArea.hittest(this.enemyArray[i].mot.hit_area)) {
return(enemyArray[i]);
}
i = i + 1;
}
}
function checkAttack(SNDan) {
var i = 0;
while (i <= enemyArray.length) {
if (SNDan.hittest(enemyArray[i].mot.hit_area) && (SNDan.magnetic_power == true)) {
var TmpMagneticVector;
TmpMagneticVector = enemyArray[i].mot.magnetic_vector;
if (TmpMagneticVector != SNDan.magnetic_vector) {
enemyArray[i].mot.hit();
SNDan.deleteInstance();
} else {
enemyArray[i].mot.defenceBarrier();
var enemy_width_step = (enemyArray[i].mot.hit_area._width / 2);
var sa_kyori = (((enemyArray[i]._x + enemyArray[i].mot._x) + enemyArray[i].hit_area._x) - SNDan._x);
var tyakudan_k = (sa_kyori / enemy_width_step);
if (0.8 < tyakudan_k) {
SNDan.gotoAndPlay("S3");
}
if ((0.4 < tyakudan_k) && (tyakudan_k < 0.8)) {
SNDan.gotoAndPlay("S2");
}
if ((0 < tyakudan_k) && (tyakudan_k < 0.4)) {
SNDan.gotoAndPlay("S1");
}
if ((-0.4 < tyakudan_k) && (tyakudan_k < 0)) {
SNDan.gotoAndPlay("S6");
}
if ((-0.8 < tyakudan_k) && (tyakudan_k < -0.4)) {
SNDan.gotoAndPlay("S5");
}
if (tyakudan_k < -0.8) {
SNDan.gotoAndPlay("S4");
}
SNDan.magnetic_power = false;
}
return(undefined);
}
i = i + 1;
}
}
function makeEnemy() {
var outCount = parseInt(Math.random() * 50);
if (outCount == 0) {
if (frameCounter > BOSS_DEBAN_FRAME) {
if (boolBossVisibility == false) {
_root.BOSS1.gotoAndPlay(2);
enemyArray.push(_root.BOSS1);
enemyArray.shift();
boolBossVisibility = true;
}
} else {
enemyCounter = enemyCounter + 1;
var randNumber = parseInt(Math.random() * 3);
switch (randNumber) {
case 0 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
break;
case 1 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
break;
case 2 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
}
eval ("_root.Teki_" + enemyCounter)._x = 50 + parseInt(Math.random() * 200);
eval ("_root.Teki_" + enemyCounter)._y = 0;
eval (("_root.Teki_" + enemyCounter) + ".mot").magnetic_vector = false;
eval ("_root.Teki_" + enemyCounter).gotoAndPlay(2);
}
}
}
var BOSS_DEBAN_FRAME = 720;
var boolBossVisibility = false;
var frameCounter = 0;
var enemyCounter = 0;
var enemyArray = new Array(10);
}
onClipEvent (enterFrame) {
frameCounter = frameCounter + 1;
this.makeInsLifeupChar();
this.makeEnemy();
}
Instance of Symbol 124 MovieClip "LifeupMC" in Frame 105
onClipEvent (load) {
function moveDown() {
this._y = this._y + step;
}
function clearMc() {
if (this._y > 450) {
this.removeMovieClip("");
}
}
function hit() {
this.removeMovieClip("");
}
var step = 1;
}
onClipEvent (enterFrame) {
this.clearMc();
}
Instance of Symbol 155 MovieClip "SND_Control" in Frame 105
onClipEvent (load) {
function deleteSNDans() {
var i = (SDan_Counter - 10);
while (i < SDan_counter) {
eval ("_root.SNDan" + i).removeMovieClip();
i = i + 1;
}
}
function SDanAttack() {
_root.SNDan_Init_Magnetic = true;
duplicateMovieClip (_root.SNDan, "SNDan" + SDan_counter, 800 + SDan_counter);
SDan_counter = SDan_counter + 1;
}
function NDanAttack() {
_root.SNDan_Init_Magnetic = false;
duplicateMovieClip (_root.SNDan, "SNDan" + SDan_counter, 800 + SDan_counter);
SDan_counter = SDan_counter + 1;
}
function key_action() {
if (boolSNDan == true) {
if (Key.isDown(88)) {
SDanAttack();
boolSNDan = false;
_root.MainChar.Stick.gotoAndStop("Stick_Blue");
}
if (Key.isDown(90)) {
NDanAttack();
boolSNDan = false;
_root.MainChar.Stick.gotoAndStop("Stick_Red");
}
} else {
i_counter = i_counter + 1;
if (i_counter == INTERVAL) {
i_counter = 0;
boolSNDan = true;
}
}
}
var SDan_counter = 1;
var INTERVAL = 5;
var i_counter = 0;
var boolSNDan = true;
var SNDan_Init_Magnetic;
}
onClipEvent (enterFrame) {
key_action();
}
Frame 106
stopAllSounds();
this.play();
newframe.removeMovieClip();
Frame 130
this.stop();
Frame 131
_root.play();
_global.stagenum = 2;
Frame 230
_root.nextScene();
Frame 231
var SDan_counter = 1;
var NDan_counter = 1;
_root.stop();
_root.frame.duplicateMovieClip("newframe", 30000);
_root.newframe._x = 210;
_root.newframe._y = 210;
Instance of Symbol 61 MovieClip "MainChar" in Frame 231
onClipEvent (load) {
function checkBoss1SitaHit() {
if (this.hit_area.hittest(_root.BOSS1.sita)) {
}
}
function checkLifeItemHit() {
if (this.hit_area.hittest(_root.LifeupIns.hit_area)) {
_root.lifeup.start();
_root.LifeupIns.hit();
_root.newframe.LifeCounter.LifeRecovery();
}
}
function checkCollisionStage1BossVero() {
}
function checkEnemmyHit() {
if (boolCharactorMuteki == true) {
intMutekiCounter = intMutekiCounter + 1;
if (intMutekiCounter > this.damageA._totalFrames) {
boolCharactorMuteki = false;
intMutekiCounter = 0;
}
}
if (boolCharactorMuteki == false) {
var enObject = _root.enemy_ctr.checkCollision(this.hit_area);
if (enObject != undefined) {
boolCharactorMuteki = true;
enObject.deleteObject();
_root.newframe.LifeCounter.Lifedamage();
this.damageA.play();
this.damageB.play();
this.damageC.play();
}
if (_root.BOSS1.mot.sita.hittest(this.hit_area)) {
boolCharactorMuteki = true;
_root.newframe.LifeCounter.Lifedamage();
this.damageA.play();
this.damageB.play();
this.damageC.play();
}
}
}
function goLeftTurn() {
this.gotoAndPlay("left_turn");
this.damageA._visible = false;
this.damageB._visible = true;
this.damageC._visible = false;
}
function goRightTurn() {
this.gotoAndPlay("right_turn");
this.damageA._visible = false;
this.damageB._visible = false;
this.damageC._visible = true;
}
function goNutralTurn() {
this.gotoAndPlay("neutral ");
this.damageA._visible = true;
this.damageB._visible = false;
this.damageC._visible = false;
}
function MainCharMove() {
if (Key.isDown(37) && (Key.isDown(38))) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(39) && (Key.isDown(38))) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(37) && (Key.isDown(40))) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(39) && (Key.isDown(40))) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(37)) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goLeftTurn();
} else if (Key.isDown(39)) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goRightTurn();
} else if (Key.isDown(38)) {
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(40)) {
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
}
if (n_counter == 0) {
this.goNutralTurn();
}
n_counter = n_counter - 1;
}
var NEUTRAL_TIMING_COUNTER = 5;
var n_counter = NEUTRAL_TIMING_COUNTER;
var step_counter = 5;
var LIFE_POINT = 3;
var lifePoint = 3;
var boolCharactorMuteki = false;
var intMutekiCounter = 0;
var CHAR_MOVE_MIN_X = 20;
var CHAR_MOVE_MAX_X = 230;
var CHAR_MOVE_MIN_Y = 20;
var CHAR_MOVE_MAX_Y = 350;
}
onClipEvent (enterFrame) {
this.MainCharMove();
this.checkLifeItemHit();
this.checkEnemmyHit();
this.checkBoss1SitaHit();
}
Instance of Symbol 87 MovieClip "SNDan" in Frame 231
onClipEvent (load) {
function clear() {
if ((((this._y < 20) || (400 < this._y)) || (this._x < 20)) || (250 < this._x)) {
this.removeMovieClip("");
}
}
function deleteInstance() {
this.removeMovieClip("");
}
var magnetic_power = true;
var spd = 20;
var magnetic_vector = true;
if (this._name == "SNDan") {
} else {
_x = (_root.MainChar._x + 15);
_y = (_root.MainChar._y - 10);
this.magnetic_vector = _root.SNDan_Init_Magnetic;
if (this.magnetic_vector == true) {
this.N._visible = false;
this.S._visible = true;
} else if (this.magnetic_vector == false) {
this.S._visible = false;
this.N._visible = true;
}
this.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
_root.enemy_ctr.checkAttack(this);
}
Instance of Symbol 185 MovieClip "TekiA" in Frame 231
onClipEvent (load) {
function deleteObject() {
this.removeMovieClip("");
}
}
Instance of Symbol 117 MovieClip "enemy_ctr" in Frame 231
onClipEvent (load) {
function deleteAllInsEnemys() {
var i = 0;
while (i < enemyArray.length) {
enemyArray[i].removeMovieClip();
i = i + 1;
}
_root.LifeupIns.removeMovieClip();
}
function makeInsLifeupChar() {
var lifeCharTiming = parseInt(Math.random() * 200);
if ((lifeCharTiming == 0) && (_root.LifeupIns == undefined)) {
duplicateMovieClip (_root.LifeupMC, "LifeupIns", 3000);
_root.LifeupIns._x = 50 + parseInt(Math.random() * 200);
_root.LifeupIns._y = 0;
_root.LifeupIns.gotoAndPlay(2);
}
}
function checkCollision(ObjHitArea) {
var i = 0;
while (i <= enemyArray.length) {
if (ObjHitArea.hittest(this.enemyArray[i].mot.hit_area)) {
return(enemyArray[i]);
}
i = i + 1;
}
}
function checkAttack(SNDan) {
var i = 0;
while (i <= enemyArray.length) {
if (SNDan.hittest(enemyArray[i].mot.hit_area) && (SNDan.magnetic_power == true)) {
var TmpMagneticVector;
TmpMagneticVector = enemyArray[i].mot.magnetic_vector;
if (TmpMagneticVector != SNDan.magnetic_vector) {
enemyArray[i].mot.hit();
SNDan.deleteInstance();
} else {
enemyArray[i].mot.defenceBarrier();
var enemy_width_step = (enemyArray[i].mot.hit_area._width / 2);
var sa_kyori = (((enemyArray[i]._x + enemyArray[i].mot._x) + enemyArray[i].hit_area._x) - SNDan._x);
var tyakudan_k = (sa_kyori / enemy_width_step);
if (0.8 < tyakudan_k) {
SNDan.gotoAndPlay("S3");
}
if ((0.4 < tyakudan_k) && (tyakudan_k < 0.8)) {
SNDan.gotoAndPlay("S2");
}
if ((0 < tyakudan_k) && (tyakudan_k < 0.4)) {
SNDan.gotoAndPlay("S1");
}
if ((-0.4 < tyakudan_k) && (tyakudan_k < 0)) {
SNDan.gotoAndPlay("S6");
}
if ((-0.8 < tyakudan_k) && (tyakudan_k < -0.4)) {
SNDan.gotoAndPlay("S5");
}
if (tyakudan_k < -0.8) {
SNDan.gotoAndPlay("S4");
}
SNDan.magnetic_power = false;
}
return(undefined);
}
i = i + 1;
}
}
function makeEnemy() {
var outCount = parseInt(Math.random() * 50);
if (outCount == 0) {
if (frameCounter > BOSS_DEBAN_FRAME) {
if (boolBossVisibility == false) {
_root.BOSS1.gotoAndPlay(2);
enemyArray.push(_root.BOSS1);
enemyArray.shift();
boolBossVisibility = true;
}
} else {
enemyCounter = enemyCounter + 1;
var randNumber = parseInt(Math.random() * 3);
switch (randNumber) {
case 0 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
break;
case 1 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
break;
case 2 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
}
eval ("_root.Teki_" + enemyCounter)._x = 50 + parseInt(Math.random() * 200);
eval ("_root.Teki_" + enemyCounter)._y = 0;
eval (("_root.Teki_" + enemyCounter) + ".mot").magnetic_vector = false;
eval ("_root.Teki_" + enemyCounter).gotoAndPlay(2);
}
}
}
var BOSS_DEBAN_FRAME = 720;
var boolBossVisibility = false;
var frameCounter = 0;
var enemyCounter = 0;
var enemyArray = new Array(10);
}
onClipEvent (enterFrame) {
frameCounter = frameCounter + 1;
this.makeInsLifeupChar();
this.makeEnemy();
}
Instance of Symbol 124 MovieClip "LifeupMC" in Frame 231
onClipEvent (load) {
function moveDown() {
this._y = this._y + step;
}
function clearMc() {
if (this._y > 450) {
this.removeMovieClip("");
}
}
function hit() {
this.removeMovieClip("");
}
var step = 1;
}
onClipEvent (enterFrame) {
this.clearMc();
}
Instance of Symbol 155 MovieClip "SND_Control" in Frame 231
onClipEvent (load) {
function deleteSNDans() {
var i = (SDan_Counter - 10);
while (i < SDan_counter) {
eval ("_root.SNDan" + i).removeMovieClip();
i = i + 1;
}
}
function SDanAttack() {
_root.SNDan_Init_Magnetic = true;
duplicateMovieClip (_root.SNDan, "SNDan" + SDan_counter, 800 + SDan_counter);
SDan_counter = SDan_counter + 1;
}
function NDanAttack() {
_root.SNDan_Init_Magnetic = false;
duplicateMovieClip (_root.SNDan, "SNDan" + SDan_counter, 800 + SDan_counter);
SDan_counter = SDan_counter + 1;
}
function key_action() {
if (boolSNDan == true) {
if (Key.isDown(88)) {
SDanAttack();
boolSNDan = false;
_root.MainChar.Stick.gotoAndStop("Stick_Blue");
}
if (Key.isDown(90)) {
NDanAttack();
boolSNDan = false;
}
} else {
i_counter = i_counter + 1;
if (i_counter == INTERVAL) {
i_counter = 0;
boolSNDan = true;
_root.MainChar.Stick.gotoAndStop("Stick_Red");
}
}
}
var SDan_counter = 1;
var INTERVAL = 5;
var i_counter = 0;
var boolSNDan = true;
var SNDan_Init_Magnetic;
}
onClipEvent (enterFrame) {
key_action();
}
Frame 232
stopAllSounds();
this.play();
newframe.removeMovieClip();
Frame 256
this.stop();
Frame 257
_root.play();
_global.stagenum = 3;
Frame 356
_root.nextScene();
Frame 357
var SDan_counter = 1;
var NDan_counter = 1;
_root.stop();
_root.frame.duplicateMovieClip("newframe", 30000);
_root.newframe._x = 210;
_root.newframe._y = 210;
Instance of Symbol 61 MovieClip "MainChar" in Frame 357
onClipEvent (load) {
function checkBoss1SitaHit() {
if (this.hit_area.hittest(_root.BOSS1.sita)) {
}
}
function checkLifeItemHit() {
if (this.hit_area.hittest(_root.LifeupIns.hit_area)) {
_root.lifeup.start();
_root.LifeupIns.hit();
_root.newframe.LifeCounter.LifeRecovery();
}
}
function checkCollisionStage1BossVero() {
}
function checkEnemmyHit() {
if (boolCharactorMuteki == true) {
intMutekiCounter = intMutekiCounter + 1;
if (intMutekiCounter > this.damageA._totalFrames) {
boolCharactorMuteki = false;
intMutekiCounter = 0;
}
}
if (boolCharactorMuteki == false) {
var enObject = _root.enemy_ctr.checkCollision(this.hit_area);
if (enObject != undefined) {
boolCharactorMuteki = true;
enObject.deleteObject();
_root.newframe.LifeCounter.Lifedamage();
this.damageA.play();
this.damageB.play();
this.damageC.play();
}
if ((this.hit_area.hittest(_root.B3_FireBall.hit_areaA) || (this.hit_area.hittest(_root.B3_FireBall.hit_areaB))) || (this.hit_area.hittest(_root.B3_FireBall.hit_areaC))) {
boolCharactorMuteki = true;
_root.newframe.LifeCounter.Lifedamage();
this.damageA.play();
this.damageB.play();
this.damageC.play();
}
}
}
function goLeftTurn() {
this.gotoAndPlay("left_turn");
this.damageA._visible = false;
this.damageB._visible = true;
this.damageC._visible = false;
}
function goRightTurn() {
this.gotoAndPlay("right_turn");
this.damageA._visible = false;
this.damageB._visible = false;
this.damageC._visible = true;
}
function goNutralTurn() {
this.gotoAndPlay("neutral ");
this.damageA._visible = true;
this.damageB._visible = false;
this.damageC._visible = false;
}
function MainCharMove() {
if (Key.isDown(37) && (Key.isDown(38))) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(39) && (Key.isDown(38))) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(37) && (Key.isDown(40))) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(39) && (Key.isDown(40))) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(37)) {
if (CHAR_MOVE_MIN_X < this._x) {
this._x = this._x - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goLeftTurn();
} else if (Key.isDown(39)) {
if (this._x < CHAR_MOVE_MAX_X) {
this._x = this._x + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goRightTurn();
} else if (Key.isDown(38)) {
if (CHAR_MOVE_MIN_Y < this._y) {
this._y = this._y - this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
} else if (Key.isDown(40)) {
if (this._y < CHAR_MOVE_MAX_Y) {
this._y = this._y + this.step_counter;
}
n_counter = NEUTRAL_TIMING_COUNTER;
this.goNutralTurn();
}
if (n_counter == 0) {
this.goNutralTurn();
}
n_counter = n_counter - 1;
}
var NEUTRAL_TIMING_COUNTER = 5;
var n_counter = NEUTRAL_TIMING_COUNTER;
var step_counter = 5;
var LIFE_POINT = 3;
var lifePoint = 3;
var boolCharactorMuteki = false;
var intMutekiCounter = 0;
var CHAR_MOVE_MIN_X = 20;
var CHAR_MOVE_MAX_X = 230;
var CHAR_MOVE_MIN_Y = 20;
var CHAR_MOVE_MAX_Y = 350;
}
onClipEvent (enterFrame) {
this.MainCharMove();
this.checkLifeItemHit();
this.checkEnemmyHit();
}
Instance of Symbol 87 MovieClip "SNDan" in Frame 357
onClipEvent (load) {
function clear() {
if ((((this._y < 20) || (400 < this._y)) || (this._x < 20)) || (250 < this._x)) {
this.removeMovieClip("");
}
}
function deleteInstance() {
this.removeMovieClip("");
}
var magnetic_power = true;
var spd = 20;
var magnetic_vector = true;
if (this._name == "SNDan") {
} else {
_x = (_root.MainChar._x + 15);
_y = (_root.MainChar._y - 10);
this.magnetic_vector = _root.SNDan_Init_Magnetic;
if (this.magnetic_vector == true) {
this.N._visible = false;
this.S._visible = true;
} else if (this.magnetic_vector == false) {
this.S._visible = false;
this.N._visible = true;
}
this.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
_root.enemy_ctr.checkAttack(this);
}
Instance of Symbol 232 MovieClip "TekiA" in Frame 357
onClipEvent (load) {
function deleteObject() {
this.removeMovieClip("");
}
}
Instance of Symbol 117 MovieClip "enemy_ctr" in Frame 357
onClipEvent (load) {
function deleteAllInsEnemys() {
var i = 0;
while (i < enemyArray.length) {
enemyArray[i].removeMovieClip();
i = i + 1;
}
_root.LifeupIns.removeMovieClip();
}
function makeInsLifeupChar() {
var lifeCharTiming = parseInt(Math.random() * 200);
if ((lifeCharTiming == 0) && (_root.LifeupIns == undefined)) {
duplicateMovieClip (_root.LifeupMC, "LifeupIns", 3000);
_root.LifeupIns._x = 50 + parseInt(Math.random() * 200);
_root.LifeupIns._y = 0;
_root.LifeupIns.gotoAndPlay(2);
}
}
function checkCollision(ObjHitArea) {
var i = 0;
while (i <= enemyArray.length) {
if (ObjHitArea.hittest(this.enemyArray[i].mot.hit_area)) {
return(enemyArray[i]);
}
i = i + 1;
}
}
function checkAttack(SNDan) {
var i = 0;
while (i <= enemyArray.length) {
if (SNDan.hittest(enemyArray[i].mot.hit_area) && (SNDan.magnetic_power == true)) {
var TmpMagneticVector;
TmpMagneticVector = enemyArray[i].mot.magnetic_vector;
if (TmpMagneticVector != SNDan.magnetic_vector) {
enemyArray[i].mot.hit();
SNDan.deleteInstance();
} else {
enemyArray[i].mot.defenceBarrier();
var enemy_width_step = (enemyArray[i].mot.hit_area._width / 2);
var sa_kyori = (((enemyArray[i]._x + enemyArray[i].mot._x) + enemyArray[i].hit_area._x) - SNDan._x);
var tyakudan_k = (sa_kyori / enemy_width_step);
if (0.8 < tyakudan_k) {
SNDan.gotoAndPlay("S3");
}
if ((0.4 < tyakudan_k) && (tyakudan_k < 0.8)) {
SNDan.gotoAndPlay("S2");
}
if ((0 < tyakudan_k) && (tyakudan_k < 0.4)) {
SNDan.gotoAndPlay("S1");
}
if ((-0.4 < tyakudan_k) && (tyakudan_k < 0)) {
SNDan.gotoAndPlay("S6");
}
if ((-0.8 < tyakudan_k) && (tyakudan_k < -0.4)) {
SNDan.gotoAndPlay("S5");
}
if (tyakudan_k < -0.8) {
SNDan.gotoAndPlay("S4");
}
SNDan.magnetic_power = false;
}
return(undefined);
}
i = i + 1;
}
}
function makeEnemy() {
var outCount = parseInt(Math.random() * 25);
if (outCount == 0) {
if (frameCounter > BOSS_DEBAN_FRAME) {
if (boolBossVisibility == false) {
_root.BOSS1.gotoAndPlay(2);
enemyArray.push(_root.BOSS1);
enemyArray.shift();
boolBossVisibility = true;
}
} else {
enemyCounter = enemyCounter + 1;
var randNumber = parseInt(Math.random() * 3);
switch (randNumber) {
case 0 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
break;
case 1 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
break;
case 2 :
duplicateMovieClip (_root.TekiA, "Teki_" + enemyCounter, 2000 + enemyCounter);
enemyArray.push(eval ("_root.Teki_" + enemyCounter));
enemyArray.shift();
}
eval ("_root.Teki_" + enemyCounter)._x = 50 + parseInt(Math.random() * 180);
eval ("_root.Teki_" + enemyCounter)._y = 0;
eval (("_root.Teki_" + enemyCounter) + ".mot").magnetic_vector = false;
eval ("_root.Teki_" + enemyCounter).gotoAndPlay(2);
}
}
}
var BOSS_DEBAN_FRAME = 720;
var boolBossVisibility = false;
var frameCounter = 0;
var enemyCounter = 0;
var enemyArray = new Array(10);
}
onClipEvent (enterFrame) {
frameCounter = frameCounter + 1;
this.makeInsLifeupChar();
this.makeEnemy();
}
Instance of Symbol 124 MovieClip "LifeupMC" in Frame 357
onClipEvent (load) {
function moveDown() {
this._y = this._y + step;
}
function clearMc() {
if (this._y > 450) {
this.removeMovieClip("");
}
}
function hit() {
this.removeMovieClip("");
}
var step = 1;
}
onClipEvent (enterFrame) {
this.clearMc();
}
Instance of Symbol 155 MovieClip "SND_Control" in Frame 357
onClipEvent (load) {
function deleteSNDans() {
var i = (SDan_Counter - 10);
while (i < SDan_counter) {
eval ("_root.SNDan" + i).removeMovieClip();
i = i + 1;
}
}
function SDanAttack() {
_root.SNDan_Init_Magnetic = true;
duplicateMovieClip (_root.SNDan, "SNDan" + SDan_counter, 800 + SDan_counter);
SDan_counter = SDan_counter + 1;
}
function NDanAttack() {
_root.SNDan_Init_Magnetic = false;
duplicateMovieClip (_root.SNDan, "SNDan" + SDan_counter, 800 + SDan_counter);
SDan_counter = SDan_counter + 1;
}
function key_action() {
if (boolSNDan == true) {
if (Key.isDown(88)) {
SDanAttack();
boolSNDan = false;
_root.MainChar.Stick.gotoAndStop("Stick_Blue");
}
if (Key.isDown(90)) {
NDanAttack();
boolSNDan = false;
_root.MainChar.Stick.gotoAndStop("Stick_Red");
}
} else {
i_counter = i_counter + 1;
if (i_counter == INTERVAL) {
i_counter = 0;
boolSNDan = true;
}
}
}
var SDan_counter = 1;
var INTERVAL = 5;
var i_counter = 0;
var boolSNDan = true;
var SNDan_Init_Magnetic;
}
onClipEvent (enterFrame) {
key_action();
}
Instance of Symbol 254 MovieClip "B3_FireBall_Base" in Frame 357
onClipEvent (load) {
if (this._name == "B3_FireBall_Base") {
stop();
}
}
Frame 358
stopAllSounds();
this.play();
newframe.removeMovieClip();
Frame 562
this.stop();
Frame 563
stopAllSounds();
this.play();
newframe.removeMovieClip();
Frame 582
this.stop();
Symbol 23 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("manual2", "manual2");
}
Symbol 25 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("manual", "opening");
}
Symbol 30 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("count1", "count1");
}
Symbol 33 Button
on (release) {
stopAllSounds();
_root.nextFrame();
}
Symbol 40 MovieClip Frame 1
this.stop();
Symbol 40 MovieClip Frame 2
this.stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 6
stop();
Symbol 61 MovieClip Frame 16
stpo();
Symbol 61 MovieClip Frame 26
stop();
Symbol 61 MovieClip Frame 27
gotoAndStop (1);
Symbol 61 MovieClip Frame 32
stop();
Instance of Symbol 70 MovieClip "ScoreCounter" in Symbol 75 MovieClip Frame 1
onClipEvent (load) {
function addScore(score) {
this.intScore = this.intScore + score;
}
function updateTotalScore() {
_global.TotalScore = this.intScore;
}
this.intScore = _global.TotalScore;
}
Instance of Symbol 73 MovieClip "LifeCounter" in Symbol 75 MovieClip Frame 1
onClipEvent (load) {
function Lifedamage() {
this.LifePoint = this.LifePoint - 1;
if (this.LifePoint == 0) {
_root.enemy_ctr.deleteAllInsEnemys();
_root.SND_Control.deleteSNDans();
_root.gotoAndPlay("badend", "badend");
}
switch (this.Lifepoint) {
case 2 :
this.Life1._visible = false;
return;
case 1 :
this.Life2._visible = false;
}
}
function LifeRecovery() {
if (this.LifePoint < 3) {
this.LifePoint = this.LifePoint + 1;
}
switch (this.Lifepoint) {
case 3 :
this.Life1._visible = true;
return;
case 2 :
this.Life2._visible = true;
}
}
var LifePoint = 3;
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
play();
Symbol 87 MovieClip Frame 3
_y = (_y - 6);
play();
Symbol 87 MovieClip Frame 4
_y = (_y - 6);
clear();
prevFrame();
Symbol 87 MovieClip Frame 6
_y = (_y + 3);
_x = (_x - 3);
play();
Symbol 87 MovieClip Frame 7
_y = (_y + 3);
_x = (_x - 3);
clear();
prevFrame();
Symbol 87 MovieClip Frame 11
_x = (_x - 6);
play();
Symbol 87 MovieClip Frame 12
_x = (_x - 6);
clear();
prevFrame();
Symbol 87 MovieClip Frame 16
_y = (_y - 3);
_x = (_x - 3);
play();
Symbol 87 MovieClip Frame 17
_y = (_y - 6);
clear();
prevFrame();
Symbol 87 MovieClip Frame 21
_y = (_y - 3);
_x = (_x + 3);
play();
Symbol 87 MovieClip Frame 22
_y = (_y - 3);
_x = (_x + 3);
clear();
prevFrame();
Symbol 87 MovieClip Frame 26
_x = (_x + 6);
play();
Symbol 87 MovieClip Frame 27
_x = (_x + 6);
clear();
prevFrame();
Symbol 87 MovieClip Frame 31
_y = (_y + 3);
_x = (_x + 3);
play();
Symbol 87 MovieClip Frame 32
_y = (_y + 3);
_x = (_x + 3);
clear();
prevFrame();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
play();
Symbol 107 MovieClip Frame 7
this.stop();
_parent.nextFrame();
Symbol 112 MovieClip Frame 7
this.stop();
_parent.nextFrame();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 3
_root.newframe.ScoreCounter.addScore(100);
this._parent.deleteObject();
stop();
Symbol 113 MovieClip Frame 8
stop();
Symbol 113 MovieClip Frame 9
stop();
Symbol 113 MovieClip Frame 10
_root.newframe.ScoreCounter.addScore(100);
this._parent.deleteObject();
stop();
Symbol 114 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip "mot" in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
function hit() {
this.play();
}
function defenceBarrier() {
this.bari.gotoAndPlay(2);
}
var magnetic_vector;
if (parseInt(Math.random() * 2) == 0) {
magnetic_vector = true;
this.gotoAndPlay("init_S");
} else {
magnetic_vector = false;
this.gotoAndPlay("init_N");
}
}
Symbol 114 MovieClip Frame 2
play();
Symbol 114 MovieClip Frame 113
this.deleteObject();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
this.moveDown();
play();
Symbol 124 MovieClip Frame 3
this.moveDown();
prevFrame();
Symbol 132 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
play();
Symbol 145 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 6
this.stop();
Symbol 151 MovieClip Frame 1
this.play();
Symbol 151 MovieClip Frame 13
_root.enemy_ctr.deleteAllInsEnemys();
_root.SND_Control.deleteSNDans();
this.stop();
_root.gotoAndPlay("goodend1", "goodend1");
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 13
BossLifePoint = BossLifePoint - 1;
if (BossLifePoint > 0) {
gotoAndStop (1);
} else {
gotoAndPlay (51);
}
Symbol 152 MovieClip Frame 25
stop();
Symbol 152 MovieClip Frame 38
BossLifePoint = BossLifePoint - 1;
if (BossLifePoint > 0) {
gotoAndStop (25);
} else {
gotoAndPlay (51);
}
Symbol 152 MovieClip Frame 50
prevFrame();
Symbol 152 MovieClip Frame 51
_root.newframe.ScoreCounter.addScore(10000);
_root.newframe.ScoreCounter.updateTotalScore();
Symbol 152 MovieClip Frame 69
Symbol 153 MovieClip Frame 1
stop();
Instance of Symbol 127 MovieClip "moCon" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.mot._x = this._x;
_parent.mot._y = this._y;
}
Instance of Symbol 152 MovieClip "mot" in Symbol 153 MovieClip Frame 2
onClipEvent (load) {
function hit() {
if (this.magnetic_vector == true) {
this.gotoAndPlay("SDamage");
} else if (this.magnetic_vector == false) {
this.gotoAndPlay("NDamage");
}
}
function defenceBarrier() {
this.bari.gotoAndPlay(2);
}
function attackBoss() {
if (boolVero == false) {
if (parseInt(Math.random() * ATTACK_SITA) == 0) {
boolVero = true;
intVeroIntervalCounter = 0;
this.sita.gotoAndPlay(2);
}
} else {
intVeroIntervalCounter = intVeroIntervalCounter + 1;
if (intVeroIntervalCounter >= intVeroInterval) {
boolVero = false;
}
}
}
function changeMagnetics() {
if (parseInt(Math.random() * CHANGE_MAGNETIC) == 0) {
if (this.magnetic_vector == true) {
this.magnetic_vector = false;
this.gotoAndPlay("init_N");
_root.transform.start();
} else {
this.magnetic_vector = true;
this.gotoAndPlay("init_S");
_root.transform.start();
}
}
}
var ATTACK_SITA = 200;
var CHANGE_MAGNETIC = 150;
var BossLifePoint = 30;
var boolVero = false;
var intVeroInterval = 20;
var intVeroIntervalCounter = 0;
var magnetic_vector = true;
if (parseInt(Math.random() * 2) == 0) {
this.magnetic_vector = true;
gotoAndPlay (1);
} else {
this.magnetic_vector = false;
gotoAndPlay (1);
}
}
onClipEvent (enterFrame) {
changeMagnetics();
attackBoss();
}
Symbol 153 MovieClip Frame 134
gotoAndPlay (15);
Symbol 170 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("count2", "count2");
}
Symbol 178 MovieClip Frame 3
this.stop();
Symbol 179 MovieClip Frame 7
this.stop();
_parent.nextFrame();
Symbol 182 MovieClip Frame 3
this.stop();
Symbol 183 MovieClip Frame 7
this.stop();
_parent.nextFrame();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
stop();
Symbol 184 MovieClip Frame 3
stop();
Symbol 184 MovieClip Frame 4
_root.newframe.ScoreCounter.addScore(200);
this._parent.deleteObject();
stop();
Symbol 184 MovieClip Frame 9
stop();
Symbol 184 MovieClip Frame 10
stop();
Symbol 184 MovieClip Frame 11
stop();
Symbol 184 MovieClip Frame 12
_root.newframe.ScoreCounter.addScore(200);
this._parent.deleteObject();
stop();
Symbol 185 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip "mot" in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
function hit() {
this.play();
}
function defenceBarrier() {
this.bari.gotoAndPlay(2);
}
var magnetic_vector;
if (parseInt(Math.random() * 2) == 0) {
magnetic_vector = true;
this.gotoAndPlay("init_S");
} else {
magnetic_vector = false;
this.gotoAndPlay("init_N");
}
}
Symbol 185 MovieClip Frame 2
play();
Symbol 185 MovieClip Frame 113
this.deleteObject();
Symbol 202 MovieClip Frame 1
this.play();
Symbol 202 MovieClip Frame 13
_root.enemy_ctr.deleteAllInsEnemys();
_root.SND_Control.deleteSNDans();
this.stop();
_root.gotoAndPlay("goodend2", "goodend2");
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 13
BossLifePoint = BossLifePoint - 1;
if (BossLifePoint > 0) {
gotoAndStop (1);
} else {
gotoAndPlay (51);
}
Symbol 203 MovieClip Frame 25
stop();
Symbol 203 MovieClip Frame 38
BossLifePoint = BossLifePoint - 1;
if (BossLifePoint > 0) {
gotoAndStop (25);
} else {
gotoAndPlay (51);
}
Symbol 203 MovieClip Frame 50
prevFrame();
Symbol 203 MovieClip Frame 51
_root.newframe.ScoreCounter.addScore(20000);
_root.newframe.ScoreCounter.updateTotalScore();
Symbol 203 MovieClip Frame 69
Symbol 204 MovieClip Frame 1
stop();
Instance of Symbol 127 MovieClip "moCon" in Symbol 204 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.mot._x = this._x;
_parent.mot._y = this._y;
}
Instance of Symbol 203 MovieClip "mot" in Symbol 204 MovieClip Frame 2
onClipEvent (load) {
function hit() {
if (this.magnetic_vector == true) {
this.gotoAndPlay("SDamage");
} else if (this.magnetic_vector == false) {
this.gotoAndPlay("NDamage");
}
}
function defenceBarrier() {
this.bari.gotoAndPlay(2);
}
function attackBoss() {
if (boolVero == false) {
if (parseInt(Math.random() * ATTACK_SITA) == 0) {
boolVero = true;
intVeroIntervalCounter = 0;
this.sita.gotoAndPlay(2);
}
} else {
intVeroIntervalCounter = intVeroIntervalCounter + 1;
if (intVeroIntervalCounter >= intVeroInterval) {
boolVero = false;
}
}
}
function changeMagnetics() {
if (parseInt(Math.random() * CHANGE_MAGNETIC) == 0) {
if (this.magnetic_vector == true) {
this.magnetic_vector = false;
_root.transform.start();
this.gotoAndPlay("init_N");
} else {
this.magnetic_vector = true;
_root.transform.start();
this.gotoAndPlay("init_S");
}
}
}
var ATTACK_SITA = 200;
var CHANGE_MAGNETIC = 150;
var BossLifePoint = 40;
var boolVero = false;
var intVeroInterval = 20;
var intVeroIntervalCounter = 0;
var magnetic_vector = true;
if (parseInt(Math.random() * 2) == 0) {
this.magnetic_vector = true;
gotoAndPlay (1);
} else {
this.magnetic_vector = false;
gotoAndPlay (1);
}
}
onClipEvent (enterFrame) {
changeMagnetics();
attackBoss();
}
Symbol 204 MovieClip Frame 15
this.stop();
Instance of Symbol 127 MovieClip "moCon" in Symbol 204 MovieClip Frame 15
onClipEvent (load) {
function hanekaeri() {
this._x = this._x + Xspeed;
this._y = this._y + Yspeed;
_parent.mot._x = this._x;
_parent.mot._y = this._y;
if ((this._x > right) || (left > this._x)) {
Xspeed = -Xspeed;
}
if ((this._y > bottom) || (top > this._y)) {
Yspeed = -Yspeed;
}
}
Xspeed = 3;
Yspeed = 4;
top = -30;
bottom = 300;
left = -100;
right = 70;
}
onClipEvent (enterFrame) {
hanekaeri();
}
Symbol 219 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("count3", "count3");
}
Symbol 225 MovieClip Frame 3
this.stop();
Symbol 226 MovieClip Frame 7
this.stop();
_parent.nextFrame();
Symbol 229 MovieClip Frame 3
this.stop();
Symbol 230 MovieClip Frame 7
this.stop();
_parent.nextFrame();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
stop();
Symbol 231 MovieClip Frame 3
stop();
Symbol 231 MovieClip Frame 4
_root.newframe.ScoreCounter.addScore(300);
this._parent.deleteObject();
stop();
Symbol 231 MovieClip Frame 9
stop();
Symbol 231 MovieClip Frame 10
stop();
Symbol 231 MovieClip Frame 11
stop();
Symbol 231 MovieClip Frame 12
_root.newframe.ScoreCounter.addScore(300);
this._parent.deleteObject();
stop();
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 231 MovieClip "mot" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
function hit() {
this.play();
}
function defenceBarrier() {
this.bari.gotoAndPlay(2);
}
var magnetic_vector;
if (parseInt(Math.random() * 2) == 0) {
magnetic_vector = true;
this.gotoAndPlay("init_S");
} else {
magnetic_vector = false;
this.gotoAndPlay("init_N");
}
}
Symbol 232 MovieClip Frame 2
play();
Symbol 232 MovieClip Frame 90
this.deleteObject();
Symbol 244 MovieClip Frame 9
prevFrame();
Symbol 244 MovieClip Frame 25
duplicateMovieClip (_root.B3_FireBall_Base, "B3_FireBall", 19000);
_root.B3_FireBall._x = (_root.BOSS1._x + _root.BOSS1.moCon._x) + this._x;
_root.B3_FireBall._y = (_root.BOSS1._y + _root.BOSS1.moCon._y) + this._y;
_root.B3_FireBall.gotoAndPlay(2);
Symbol 244 MovieClip Frame 50
this.gotoAndPlay("Normal");
Symbol 247 MovieClip Frame 9
prevFrame();
Symbol 247 MovieClip Frame 25
duplicateMovieClip (_root.B3_FireBall_Base, "B3_FireBall", 19000);
_root.B3_FireBall._x = ((_root.BOSS1._x + _root.BOSS1.mot._x) + _root.BOSS1.mot.Doll._x) + this._x;
_root.B3_FireBall._y = ((_root.BOSS1._y + _root.BOSS1.mot._y) + _root.BOSS1.mot.Doll._y) + this._y;
_root.B3_FireBall.gotoAndPlay(2);
Symbol 247 MovieClip Frame 50
this.gotoAndPlay(1);
Symbol 248 MovieClip Frame 1
this.play();
Symbol 248 MovieClip Frame 13
_root.enemy_ctr.deleteAllInsEnemys();
_root.SND_Control.deleteSNDans();
this.stop();
_root.gotoAndPlay("goodend3", "goodend3");
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 13
BossLifePoint = BossLifePoint - 1;
if (BossLifePoint > 0) {
gotoAndStop (1);
} else {
gotoAndPlay (51);
}
Symbol 249 MovieClip Frame 25
stop();
Symbol 249 MovieClip Frame 38
BossLifePoint = BossLifePoint - 1;
if (BossLifePoint > 0) {
gotoAndStop (25);
} else {
gotoAndPlay (51);
}
Symbol 249 MovieClip Frame 50
prevFrame();
Symbol 249 MovieClip Frame 51
_root.newframe.ScoreCounter.addScore(30000);
_root.newframe.ScoreCounter.updateTotalScore();
Symbol 249 MovieClip Frame 69
Symbol 250 MovieClip Frame 1
stop();
Instance of Symbol 127 MovieClip "moCon" in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.mot._x = this._x;
_parent.mot._y = this._y;
}
Instance of Symbol 249 MovieClip "mot" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
function hit() {
if (this.magnetic_vector == true) {
this.gotoAndPlay("SDamage");
} else if (this.magnetic_vector == false) {
this.gotoAndPlay("NDamage");
}
}
function defenceBarrier() {
this.bari.gotoAndPlay(2);
}
function attackBoss() {
if (boolVero == false) {
if (parseInt(Math.random() * ATTACK_SITA) == 0) {
boolVero = true;
intVeroIntervalCounter = 0;
_root.BOSS1.mot.Doll.gotoAndPlay("Attack");
}
} else {
intVeroIntervalCounter = intVeroIntervalCounter + 1;
if (intVeroIntervalCounter >= intVeroInterval) {
boolVero = false;
}
}
}
function changeMagnetics() {
if (parseInt(Math.random() * CHANGE_MAGNETIC) == 0) {
if (this.magnetic_vector == true) {
this.magnetic_vector = false;
_root.transform.start();
this.gotoAndPlay("init_N");
} else {
this.magnetic_vector = true;
_root.transform.start();
this.gotoAndPlay("init_S");
}
}
}
var ATTACK_SITA = 100;
var CHANGE_MAGNETIC = 150;
var BossLifePoint = 50;
var boolVero = false;
var intVeroInterval = 20;
var intVeroIntervalCounter = 0;
var magnetic_vector = true;
if (parseInt(Math.random() * 2) == 0) {
this.magnetic_vector = true;
gotoAndPlay (1);
} else {
this.magnetic_vector = false;
gotoAndPlay (1);
}
}
onClipEvent (enterFrame) {
changeMagnetics();
attackBoss();
}
Symbol 250 MovieClip Frame 15
this.stop();
Instance of Symbol 127 MovieClip "moCon" in Symbol 250 MovieClip Frame 15
onClipEvent (load) {
function hanekaeri() {
this._x = this._x + Xspeed;
this._y = this._y + Yspeed;
_parent.mot._x = this._x;
_parent.mot._y = this._y;
if ((this._x > right) || (left > this._x)) {
Xspeed = -Xspeed;
}
if ((this._y > bottom) || (top > this._y)) {
Yspeed = -Yspeed;
}
}
Xspeed = 4;
Yspeed = 4;
top = -30;
bottom = 300;
left = -100;
right = 70;
}
onClipEvent (enterFrame) {
hanekaeri();
}
Symbol 254 MovieClip Frame 113
this.stop();
Symbol 309 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("opening", "opening");
}
Symbol 322 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("count" + _global.stagenum);
}