Frame 1
this.stop();
Frame 2
countK = 0;
ddolmaniCount = 20;
ddoimaniDieCount = ddolmaniCount;
Instance of Symbol 41 MovieClip "energyLine" in Frame 2
onClipEvent (load) {
function energySub(subNum) {
if (0 >= count) {
this.LifeG._width = 0;
} else {
count = count - subNum;
this.LifeG._width = count;
}
}
count = 200;
this.LifeG._width = count;
}
Instance of Symbol 72 MovieClip "chman" in Frame 2
onClipEvent (load) {
function stateCheck() {
if (attackFlag == 0) {
trace("beforeState°ª: " + beforeState);
if ((beforeState != 2) and (nowState == 2)) {
this.gotoAndStop("¼ÀÖ±â");
this._xscale = math.abs(this._xscale);
this.standUp.goToAndStop("°È±â");
} else if ((beforeState != 4) and (nowState == 4)) {
this.gotoAndStop("¼ÀÖ±â");
this._xscale = -math.abs(this._xscale);
this.standUp.goToAndStop("°È±â");
} else if ((beforeState != 3) and (nowState == 3)) {
this.gotoAndStop("¾É¾ÆÀÖ±â");
this.sitDown.goToAndStop("¾É±â");
}
}
}
function keyInMove() {
if (attackFlag == 0) {
if (key.isDown(key.RIGHT) and (this._x < 500)) {
nowState = 2;
stateCheck();
beforeState = 2;
this._x = this._x + speed;
this.standUp.play();
} else if (key.isDown(key.LEFT) and (0 < this._x)) {
nowState = 4;
stateCheck();
beforeState = 4;
this._x = this._x - speed;
this.standUp.play();
} else if (key.isDown(key.DOWN)) {
nowState = 3;
stateCheck();
beforeState = 3;
}
}
}
function AttackCheck() {
if (attackFlag == 0) {
if (attackNumber == 1) {
if ((nowState == 4) or (nowState == 2)) {
attackFlag = 1;
attackNumber = 0;
trace("ÁÖ¸ÔÁú");
this.standUp.goToAndPlay("ÁÖ¸ÔÁú");
} else if (nowState == 3) {
attackFlag = 1;
attackNumber = 0;
trace("¾É¾ÆÁÖ¸ÔÁú");
this.sitDown.gotoAndPlay("¾É¾ÆÁÖ¸ÔÁú");
}
} else if (attackNumber == 2) {
if ((nowState == 4) or (nowState == 2)) {
attackFlag = 1;
attackNumber = 0;
trace("¹ßÂ÷±â");
this.standUp.goToAndPlay("¹ßÂ÷±â");
} else if (nowState == 3) {
attackFlag = 1;
attackNumber = 0;
trace("¾É¾Æ¹ßÂ÷±â");
this.sitDown.gotoAndPlay("¾É¾Æ¹ßÂ÷±â");
}
}
}
}
function KeyInAttack() {
if (attackFlag == 0) {
if (Key.isDown(90)) {
attackNumber = 1;
trace(attackFlag);
AttackCheck();
this.mySound("attackSound1");
trace("z");
}
if (Key.isDown(88)) {
attackNumber = 2;
trace(attackFlag);
AttackCheck();
this.mySound("attackSound2");
trace("x");
}
}
}
function chMainStroke(numK) {
if (0 < energy) {
attackFlag = 1;
energy = energy - 10;
_root.energyLine.energySub(10);
if (numK == 1) {
if (0 < energy) {
this.mySound("Chmainhit");
this.standUp.gotoAndPlay("¾ò¾î¸Â±â");
} else {
this.mySound("chManDie");
this.standUp.gotoAndPlay("Á×±â");
}
} else if (numK == 2) {
if (0 < energy) {
this.mySound("Chmainhit");
this.sitDown.gotoAndPlay("¾ò¾î¸Â±â");
} else {
this.mySound("chManDie");
this.sitDown.gotoAndPlay("Á×±â");
}
}
}
}
function mySound(soundName) {
GSound.stop();
GSound.attachSound(soundName);
GSound.start();
}
speed = 4;
beforeState = 0;
nowState = 0;
attackFlag = 0;
attackNumber = 0;
energy = 200;
GSound = new Sound(this);
}
onClipEvent (enterFrame) {
this.keyInMove();
this.KeyInAttack();
}
Frame 11
if (countK < ddolmaniCount) {
countK = countK + 1;
nameK = "ddolmani" + countK;
_root.attachMovie("ddolmani", nameK, countK);
_root[nameK]._width = 90;
_root[nameK]._height = 135;
}
if (ddoimaniDieCount == 0) {
trace("°ÔÀÓ ½Â¸®!");
_root.gotoAndPlay("°ÔÀӽ¸®");
}
Frame 56
gotoAndPlay (11);
Frame 57
this.stop();
Frame 67
this.stop();
Symbol 17 MovieClip [ddolmani] Frame 1
function init() {
GSound = new Sound(this);
speed = random(10) + 5;
attackState = 0;
energy = 100;
state = 1;
moveArrow = random(2) + 1;
if (moveArrow == 1) {
this._xscale = -math.abs(this._xscale);
this._x = -40;
} else {
this._xscale = math.abs(this._xscale);
this._x = 540;
}
this._y = 200;
}
function mySound(soundName) {
GSound.stop();
GSound.attachSound(soundName);
GSound.start();
}
function moveing(numK) {
if (numK == 2) {
if (((_root.chMan._x + 50) + random(50)) < this._x) {
this._x = this._x - speed;
} else if (attackState == 0) {
this._x = this._x + 20;
this.gotoAndPlay("Çìµù");
}
} else if (numK == 1) {
if (this._x < ((_root.chMan._x - 50) - random(50))) {
this._x = this._x + speed;
} else {
this._x = this._x - 20;
if (attackState == 0) {
this.gotoAndPlay("Çìµù");
}
}
}
}
function hitSinceMove() {
if (moveArrow == 1) {
this._x = this._x - 30;
} else {
this._x = this._x + 30;
}
}
function hitCheck(targetObj, targetScore) {
if (this.hitTest(targetObj)) {
trace("ÁÖ¸Ô¿¡ ¸Â¾Ò´Ù");
energy = energy - targetScore;
if (energy >= 0) {
this.mySound("hit" + String(random(2) + 1));
this.gotoAndPlay("¾ò¾î¸Â±â");
} else {
this.mySound("ddolmaniDie");
this.gotoAndPlay("¿ÏÀüÁ×±â");
}
this.hitSinceMove();
}
}
function chMainHitCheck(targetObj, numk) {
if (this.hitTest(targetObj)) {
trace("ÁÖÀΰø Çìµù ¸Â´Ù.");
_root.chMan.chMainStroke(numk);
}
}
this.init();
Symbol 17 MovieClip [ddolmani] Frame 2
this.moveing(moveArrow);
this.hitCheck(_root.chMan.standUp.attackHit, random(60) + 50);
this.hitCheck(_root.chMan.sitDown.attackHit, 40);
Symbol 17 MovieClip [ddolmani] Frame 4
this.gotoAndPlay("°È±â");
Instance of Symbol 13 MovieClip "attackHit" in Symbol 17 MovieClip [ddolmani] Frame 18
onClipEvent (enterFrame) {
_parent.chMainHitCheck(_root.chMan.standUp, 1);
_parent.chMainHitCheck(_root.chMan.sitDown, 2);
}
Symbol 17 MovieClip [ddolmani] Frame 21
attackState = 0;
this.gotoAndPlay("°È±â");
Symbol 17 MovieClip [ddolmani] Frame 36
this.gotoAndPlay("°È±â");
Symbol 17 MovieClip [ddolmani] Frame 46
_root.ddoimaniDieCount--;
this.removeMovieClip();
this.stop();
Symbol 31 Button
on (release) {
gotoAndPlay (1);
}
Instance of Symbol 40 MovieClip "LifeG" in Symbol 41 MovieClip Frame 1
/* no clip actions */
Symbol 64 MovieClip Frame 1
this.stop();
Symbol 64 MovieClip Frame 5
this.stop();
Symbol 64 MovieClip Frame 6
this.play();
Symbol 64 MovieClip Frame 7
this.gotoAndPlay("°È±â");
Symbol 64 MovieClip Frame 17
_parent.attackFlag = 0;
this.gotoAndStop("°È±â");
Symbol 64 MovieClip Frame 25
this.play();
Symbol 64 MovieClip Frame 26
this.play();
Symbol 64 MovieClip Frame 27
this.play();
Symbol 64 MovieClip Frame 28
this.play();
Symbol 64 MovieClip Frame 29
this.play();
Symbol 64 MovieClip Frame 30
this.play();
Symbol 64 MovieClip Frame 31
_parent.attackFlag = 0;
_parent.attackNumber = 0;
this.gotoAndStop("°È±â");
Symbol 64 MovieClip Frame 41
this.play();
Symbol 64 MovieClip Frame 42
this.play();
Symbol 64 MovieClip Frame 43
this.play();
Symbol 64 MovieClip Frame 44
this.play();
Symbol 64 MovieClip Frame 45
this.play();
Symbol 64 MovieClip Frame 46
this.play();
Symbol 64 MovieClip Frame 47
this.play();
Symbol 64 MovieClip Frame 48
_parent.attackFlag = 0;
_parent.attackNumber = 0;
this.gotoAndStop("°È±â");
Symbol 64 MovieClip Frame 66
i = 1;
while (_root.ddolmaniCount >= i) {
_root["ddolmani" + i].removeMovieClip();
i++;
}
_root.gotoAndPlay("°ÔÀÓ¿À¹ö");
this.stop();
Symbol 71 MovieClip Frame 1
this.stop();
Symbol 71 MovieClip Frame 10
this.play();
Symbol 71 MovieClip Frame 11
this.play();
Symbol 71 MovieClip Frame 12
this.play();
Symbol 71 MovieClip Frame 13
this.play();
Symbol 71 MovieClip Frame 14
this.play();
Symbol 71 MovieClip Frame 15
_parent.attackFlag = 0;
_parent.attackNumber = 0;
this.gotoAndStop("¾É±â");
Symbol 71 MovieClip Frame 25
this.play();
Symbol 71 MovieClip Frame 26
this.play();
Symbol 71 MovieClip Frame 27
this.play();
Symbol 71 MovieClip Frame 28
this.play();
Symbol 71 MovieClip Frame 29
this.play();
Symbol 71 MovieClip Frame 30
this.play();
Symbol 71 MovieClip Frame 31
_parent.attackFlag = 0;
_parent.attackNumber = 0;
this.gotoAndStop("¾É±â");
Symbol 71 MovieClip Frame 42
_parent.attackFlag = 0;
this.gotoAndStop("¾É±â");
Symbol 71 MovieClip Frame 58
i = 1;
while (_root.ddolmaniCount >= i) {
_root["ddolmani" + i].removeMovieClip();
i++;
}
_root.gotoAndPlay("°ÔÀÓ¿À¹ö");
this.stop();
Symbol 72 MovieClip Frame 1
this.stop();
Symbol 72 MovieClip Frame 10
this.stop();
Symbol 78 MovieClip Frame 8
this.stop();
Symbol 79 Button
on (release) {
_root.gotoAndPlay("ŸÀÌƲ½ÃÀÛ");
}
Symbol 85 MovieClip Frame 20
this.stop();