Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (enterFrame) {
_rotation = ((Math.random() * 10) - 5);
}
Frame 3
this.gotoAndStop(3);
Frame 4
function damage() {
if (0 >= enemyLife) {
return(undefined);
}
if (opoona.mode == "dead") {
return(undefined);
}
hit1Sound.start();
opoonaLife = opoonaLife - 1;
this.lifeText = "Life: " + opoonaLife;
}
function enemyDamage(value) {
enemyLife = enemyLife - value;
hit2Sound.start();
this.enemyLifeText = "Enemy Life: " + enemyLife;
}
function addEnemy() {
stage++;
count = 0;
enemyLife = 100;
this.enemyLifeText = "Enemy Life: 100";
enemyFlag = false;
}
function clear() {
feed.mode = "clear";
}
hit1Sound = new Sound(_root);
hit1Sound.attachSound("hit1");
hit2Sound = new Sound(_root);
hit2Sound.attachSound("hit2");
this.lifeText = "Life: 100";
this.enemyLifeText = "Enemy Life: 100";
enemyLife = 100;
opoonaLife = 100;
attachMovie("alert", "alert", 20);
_root.alert._x = 275;
_root.alert._y = 70;
stage = 1;
enemyFlag = false;
count = 0;
deadco = 0;
mode = "";
Instance of Symbol 31 MovieClip in Frame 4
onClipEvent (enterFrame) {
_x = _parent.opoona._x;
par = _parent.opoona._y / _parent.opoona.startY;
_xscale = (50 + (50 * par));
_yscale = (50 + (50 * par));
}
Instance of Symbol 49 MovieClip "opoona" in Frame 4
onClipEvent (load) {
function damage() {
cc = (cc + 1) % 100;
_root.attachMovie("hibana", "hibana" + cc, 100 + cc);
item = _root["hibana" + cc];
item._x = (_x - 25) + (Math.random() * 50);
item._y = (_y - 75) + (Math.random() * 50);
_root.damage();
if (0 >= _root.opoonaLife) {
mode = "dead";
}
}
function checkAttackHit(enemy) {
if (((enemy.hitTest(this) && (mode == "attack")) && (attackCount >= 7)) && (8 >= attackCount)) {
enemy.damage();
}
}
mode = "walk";
startY = _y;
jumpFlag = false;
d = -20;
life = 10;
}
onClipEvent (enterFrame) {
var moveFlag = false;
if (mode == "walk") {
if (Key.isDown(Key.LEFT)) {
moveFlag = true;
_x = (_x - 5);
} else if (Key.isDown(Key.RIGHT)) {
moveFlag = true;
_x = (_x + 5);
}
if (Key.isDown(Key.UP) && (jumpFlag == false)) {
jumpFlag = true;
}
if (Key.isDown(Key.SPACE)) {
mode = "attack";
attackCount = 0;
}
if (moveFlag) {
gotoAndStop (4);
} else {
gotoAndStop (1);
}
if (_x < 20) {
_x = 20;
}
if (530 < _x) {
_x = 530;
}
}
if (mode == "attack") {
gotoAndStop (7);
if (attackCount == 11) {
mode = "walk";
}
attackCount = attackCount + 1;
}
if (mode == "dead") {
_x = (_x - 10);
_y = (_y - 10);
_rotation = (_rotation + 30);
return(undefined);
}
if (jumpFlag) {
_y = (_y + d);
d++;
if (startY < _y) {
_y = startY;
jumpFlag = false;
d = -20;
}
}
}
Instance of Symbol 52 MovieClip "feed" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (mode == "clear") {
_alpha = (_alpha + 5);
if (_alpha >= 100) {
_root.mode = "clear";
}
}
}
Frame 5
count++;
if ((count == 120) && (enemyFlag == false)) {
enemyFlag = true;
attachMovie("enemy0" + stage, "tekisan", 30);
_root.tekisan._x = 500;
_root.tekisan._y = -50;
}
if (opoona.mode == "dead") {
deadco++;
if (deadco == 50) {
this.gotoAndPlay(7);
}
}
if (mode == "clear") {
this.gotoAndPlay(10);
}
Frame 6
this.gotoAndPlay(5);
Frame 7
tekisan.removeMovieClip();
Frame 9
this.gotoAndPlay(8);
Instance of Symbol 68 MovieClip "feed" in Frame 10
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 10);
if (_alpha < 0) {
_alpha = 0;
}
}
Frame 12
this.stop();
Symbol 6 MovieClip [enemy01] Frame 1
function damage() {
cc = (cc + 1) % 100;
_root.attachMovie("tekihibana", "tekihibana" + cc, 200 + cc);
item = _root["tekihibana" + cc];
item._x = (_x - 25) + (Math.random() * 50);
item._y = (_y - 75) + (Math.random() * 50);
_root.enemyDamage(5);
if (0 >= _root.enemyLife) {
mode = "dead";
}
}
startY = 305;
d = -20;
ax = 5;
Symbol 6 MovieClip [enemy01] Frame 2
if (mode == "dead") {
_y = (_y - 10);
_x = (_x + 10);
_rotation = (_rotation + 30);
if (550 < _x) {
_root.addEnemy();
this.removeMovieClip();
}
} else {
_x = (_x + ax);
_y = (_y + d);
if (startY < _y) {
_y = startY;
d = -20;
}
d++;
if ((_x < 20) || (530 < _x)) {
ax = -ax;
}
if (this.hitarea.hitTest(_root.opoona.hitarea)) {
_root.opoona.damage();
}
_root.opoona.checkAttackHit(this);
}
Symbol 6 MovieClip [enemy01] Frame 3
this.gotoAndPlay(2);
Symbol 8 MovieClip [tekihibana] Frame 1
r = 50 + (50 * Math.random());
_xscale = r;
_yscale = r;
ax = -10 + (20 * Math.random());
ay = -10 + (20 * Math.random());
Symbol 8 MovieClip [tekihibana] Frame 2
_x = (_x + ax);
_y = (_y + ay);
count++;
if (5 < count) {
this.removeMovieClip();
}
Symbol 8 MovieClip [tekihibana] Frame 3
this.gotoAndPlay(2);
Symbol 10 MovieClip [hibana] Frame 1
r = 50 + (50 * Math.random());
_xscale = r;
_yscale = r;
ax = -10 + (20 * Math.random());
ay = -10 + (20 * Math.random());
Symbol 10 MovieClip [hibana] Frame 2
_x = (_x + ax);
_y = (_y + ay);
count++;
if (5 < count) {
this.removeMovieClip();
}
Symbol 10 MovieClip [hibana] Frame 3
this.gotoAndPlay(2);
Symbol 13 MovieClip [alert] Frame 2
count = (count + 1) % 3;
if (0 < count) {
_visible = true;
} else {
_visible = false;
}
count2++;
if (90 < count2) {
this.removeMovieClip();
}
Symbol 13 MovieClip [alert] Frame 3
this.gotoAndPlay(2);
Symbol 17 MovieClip [enemy02] Frame 1
function damage() {
cc = (cc + 1) % 100;
_root.attachMovie("tekihibana", "tekihibana" + cc, 200 + cc);
item = _root["tekihibana" + cc];
item._x = (_x - 25) + (Math.random() * 50);
item._y = (_y - 75) + (Math.random() * 50);
_root.enemyDamage(5);
if (0 >= _root.enemyLife) {
mode = "dead";
}
}
_x = 600;
ax = -10;
_y = 305;
startY = 305;
Symbol 17 MovieClip [enemy02] Frame 2
if (mode == "dead") {
_y = (_y - 10);
_x = (_x + 10);
_rotation = (_rotation + 30);
if (550 < _x) {
_root.addEnemy();
this.removeMovieClip();
}
} else {
_x = (_x + ax);
if ((0 < ax) && (530 < _x)) {
count = (count + 1) % 3;
ax = -ax;
if (count == 0) {
d = -20;
}
}
if (_x < 30) {
count = (count + 1) % 3;
ax = -ax;
if (count == 0) {
d = -20;
}
}
_y = (_y + d);
d++;
if (305 < _y) {
_y = 305;
d = 0;
}
if (this.hitarea.hitTest(_root.opoona.hitarea)) {
_root.opoona.damage();
}
if (_root.opoona.checkAttackHit(this)) {
trace("attack");
}
}
Symbol 17 MovieClip [enemy02] Frame 3
this.gotoAndPlay(2);
Symbol 19 MovieClip [enemy03] Frame 1
function damage() {
cc = (cc + 1) % 100;
_root.attachMovie("tekihibana", "tekihibana" + cc, 200 + cc);
item = _root["tekihibana" + cc];
item._x = (_x - 25) + (Math.random() * 50);
item._y = (_y - 75) + (Math.random() * 50);
_root.enemyDamage(2);
if (0 >= _root.enemyLife) {
mode = "dead";
}
}
_x = 600;
ax = -5;
_y = 305;
startY = 305;
targetX = 500;
moveFlag = true;
Symbol 19 MovieClip [enemy03] Frame 2
if (mode == "dead") {
_y = (_y - 10);
_x = (_x + 10);
_rotation = (_rotation + 30);
if (550 < _x) {
_root.clear();
this.removeMovieClip();
}
} else {
count = (count + 1) % 30;
if (count == 0) {
cc = (cc + 1) % 100;
if (((cc % 5) == 0) && (moveFlag == false)) {
moveFlag = true;
targetX = 200 + (300 * Math.random());
ax = ((targetX - _x) / Math.abs(targetX - _x)) * ((Math.random() * 5) + 10);
}
_root.attachMovie("tama", "tama" + cc, 300 + cc);
}
_x = (_x + ax);
if (Math.abs(_x - targetX) < 10) {
moveFlag = false;
targetX = 0;
ax = 0;
}
if (this.hitarea.hitTest(_root.opoona.hitarea)) {
_root.opoona.damage();
}
if (_root.opoona.checkAttackHit(this)) {
trace("attack");
}
}
Symbol 19 MovieClip [enemy03] Frame 3
this.gotoAndPlay(2);
Symbol 21 MovieClip [tama] Frame 1
r = Math.atan2(_root.tekisan._y - _root.opoona._y, _root.tekisan._x - _root.opoona._x);
ax = (-Math.cos(r)) * 10;
ay = (-Math.sin(r)) * 10;
_x = _root.tekisan._x;
_y = (_root.tekisan._y - 75);
Symbol 21 MovieClip [tama] Frame 2
_x = (_x + ax);
_y = (_y + ay);
if ((((550 < _x) || (_x < 0)) || (400 < _y)) || (_y < 0)) {
this.removeMovieClip();
}
if (this.hitTest(_root.opoona.hitarea)) {
_root.opoona.damage();
}
Symbol 21 MovieClip [tama] Frame 3
this.gotoAndPlay(2);
Symbol 26 Button
on (press) {
this.gotoAndPlay("main");
}
Symbol 40 MovieClip Frame 13
this.gotoAndPlay(1);
Symbol 49 MovieClip Frame 3
this.stop();
Symbol 49 MovieClip Frame 6
this.stop();
Symbol 49 MovieClip Frame 9
this.stop();
Symbol 56 Button
on (press) {
this.gotoAndPlay(1);
}
Symbol 58 MovieClip Frame 13
this.gotoAndPlay(1);
Symbol 67 MovieClip Frame 40
this.stop();