Frame 1
total = this.getBytesTotal();
loaded = this.getBytesLoaded();
loader.percent._xscale = int((loaded / total) * 100);
if (loaded >= total) {
trace("alpha: " + loader.fade._alpha);
loader.fade._alpha = loader.fade._alpha - ((loader.fade._alpha - 100) * 0.4);
if (Math.abs(loader.fade._alpha - 100) < 1) {
loader.fade._alpha = 100;
gotoAndPlay ("intro");
}
}
function getDirection(faceing) {
if (faceing == "right") {
return(-1);
}
return(1);
}
function hitcheck(myname, dir) {
targ = eval (myname);
targX = targ._x;
targY = targ._y + _root.hero_groundClearance;
targY2 = targY - 2;
ymv = targ.ymv;
xmv = targ.xmv;
xdist = xmv * (-dir);
dist = 0;
stopped = false;
if (ymv >= 0) {
y = 0;
while (y <= ymv) {
if (_root.ground.floor.hitTest(targX, targY + y, true) == true) {
dist = y;
if (targ.keyDuck == false) {
if (targ.action == "jumpattack") {
targ.attack = false;
}
if (targ.jump == true) {
targ.action = "land";
}
} else if (targ.jump == true) {
targ.action = "duck";
}
stopped = true;
break;
}
y++;
}
targY2 = targY2 + dist;
if (_root.ground.floor.hitTest(targX, targY2, true) == true) {
intersect = true;
y = 0;
while (intersect == true) {
if (_root.ground.floor.hitTest(targX, targY2 - y, true) == false) {
dist = dist - y;
stopped = true;
intersect = false;
break;
}
y++;
}
}
}
if (stopped == false) {
if (ymv < _root.hero_maxfall) {
dist = ymv + _root.hero_fallspeed;
} else {
dist = _root.hero_maxfall;
}
targ.ymv = dist;
} else {
targ.ymv = 0;
}
yon = true;
moveall(0, dist, targ);
if (Math.abs(xmv) > 0) {
if (xmv >= 0) {
xdir = 1;
} else {
xdir = -1;
}
x = 0;
while (x < Math.abs(xmv)) {
if (_root.ground.floor.hitTest(targX + (((-dir) * (15 + x)) * xdir), targY, true) == true) {
xdist = x * (-dir);
break;
}
x++;
}
}
moveall(xdist, 0, targ);
}
function moveall(xmv, ymv) {
Move1 = 0;
Move2 = 0;
Cymv = ymv;
Bxmv = xmv;
targ = eval (targ);
targX = targ._x;
targY = targ._y;
BLim = botLim._y;
TLim = topLim._y;
RLim = RightLim._x;
LLim = LeftLim._x;
if ((targY > TLim) and (targY < BLim)) {
if ((targY + ymv) < TLim) {
dt = TLim - targY;
Cymv = ymv - dt;
Bymv = dt;
} else if ((targY + ymv) > BLim) {
dt = BLim - targY;
Cymv = ymv - dt;
Bymv = dt;
} else {
Bymv = ymv;
Cymv = 0;
}
} else if (((targY + ymv) > TLim) and (targY < TLim)) {
dt = TLim - targY;
Cymv = dt;
Bymv = ymv - dt;
} else if (((targY + ymv) < BLim) and (targY > BLim)) {
dt = BLim - targY;
Cymv = dt;
Bymv = ymv - dt;
} else {
Bymv = 0;
Cymv = ymv;
}
if ((targX > LLim) and (targX < RLim)) {
if ((targX + xmv) < LLim) {
dt = LLim - targX;
Cxmv = xmv - dt;
Bxmv = dt;
} else if ((targX + xmv) > RLim) {
dt = RLim - targX;
Cxmv = xmv - dt;
Bxmv = dt;
} else {
Bxmv = xmv;
Cxmv = 0;
}
} else if (((targX + xmv) > LLim) and (targX < LLim)) {
dt = LLim - targX;
Cxmv = dt;
Bxmv = xmv - dt;
} else if (((targX + xmv) < RLim) and (targX > RLim)) {
dt = RLim - targX;
Cxmv = dt;
Bxmv = xmv - dt;
} else {
Bxmv = 0;
Cxmv = xmv;
}
_root.BGxmv = -Bxmv;
if (yon == true) {
yon = false;
_root.BGymv = -Bymv;
}
targ._x = targ._x + Cxmv;
targ._y = targ._y + Cymv;
}
function En_hitcheck(enname) {
targ = eval ("_root.ground." + enname);
point = new Object();
point.x = targ._x;
point.y = targ._y;
_root.ground.localToGlobal(point);
targX = point.x;
targY = point.y;
targY2 = targY - 2;
ymv = targ.ymv;
dist = 0;
stopped = false;
if (ymv >= 0) {
y = 0;
while (y <= ymv) {
if (_root.ground.floor.hitTest(targX, targY + y, true) == true) {
dist = y;
stopped = true;
break;
}
y++;
}
targY2 = targY2 + dist;
if (_root.ground.floor.hitTest(targX, targY2, true) == true) {
intersect = true;
y = 0;
while (intersect == true) {
if (_root.ground.floor.hitTest(targX, targY2 - y, true) == false) {
dist = dist - y;
stopped = true;
intersect = false;
break;
}
y++;
}
}
}
if (stopped == false) {
if (ymv < _root.hero_maxfall) {
dist = ymv + _root.hero_fallspeed;
} else {
dist = _root.hero_maxfall;
}
targ.ymv = dist;
} else {
targ.ymv = 0;
}
return(dist);
}
_quality = "Medium";
stopAllSounds();
stageW = 550;
stageH = 400;
paused = false;
oldface = 1;
testbox = "//START//";
_root.ShowHitZones = false;
_root.jumpOnHeads = false;
Frame 2
gotoAndPlay (1);
loadMovieNum ("flash/games/level0.swf", 10);
_root.level = "level01a";
hero_maxfall = 40;
hero_fallspeed = 5;
hero_groundClearance = 25;
hero_shot1Speed = 50;
hero_life = 100;
hero_lives = _level10.hero_lives;
trace("load mod= " + _level10.mod);
if (((hero_lives == "") or (hero_lives == undefined)) or (hero_lives == null)) {
hero_lives = 3;
score = 0;
mod = 0;
trace("init mod= " + _root.mod);
} else {
score = _level10.score;
_root.mod = _level10.mod;
trace("init mod= " + _root.mod);
}
if (mod > 0) {
hero_maxtoggle = 5;
hero_startState = 1;
stop();
_root.transition.target = "interlevel";
_root.transition.gotoAndPlay("fade");
} else {
hero_maxtoggle = 1;
hero_startState = 1;
}
enemy1Life = 9;
enemy1HitPower = 15 + mod;
enemy1ShotPower = 15 + mod;
enemy1PointsAwarded = 15;
enemy2Life = 5;
enemy2HitPower = 15 + mod;
enemy2ShotPower = 15 + mod;
enemy2PointsAwarded = 10;
enemy3Life = 25;
enemy3HitPower = 25 + mod;
enemy3ShotPower = 25 + mod;
enemy3PointsAwarded = 25;
_root.BossLife = 100 + mod;
_root.BossPower = 25 + mod;
_root.BossPointsAwarded = 250;
Instance of Symbol 16 MovieClip "IMfade" in Frame 3
onClipEvent (enterFrame) {
this.swapDepths(2600);
targetAlpha = 0;
alphaBlend = 0.3;
this._alpha = this._alpha - ((this._alpha - targetAlpha) * alphaBlend);
if (Math.abs(this._alpha - targetAlpha) < 1) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
}
}
Frame 11
stop();
Frame 20
stop();
Frame 21
stopAllSounds();
playB._visible = false;
Instance of Symbol 87 MovieClip "map" in Frame 21
onClipEvent (enterFrame) {
gotoAndStop(_root.level);
}
Instance of Symbol 98 MovieClip in Frame 21
onClipEvent (load) {
_alpha = 0;
_parent.map._alpha = 60;
cnt = 0;
gotoAndStop(_root.level);
}
onClipEvent (enterFrame) {
cnt = cnt + 1;
if ((cnt > 24) and (cnt < 74)) {
_alpha = (_alpha + 2);
_parent.map._alpha = _parent.map._alpha - 1;
} else if (cnt > 74) {
if (_parent.map._alpha > 0) {
_parent.map._alpha = _parent.map._alpha - 1;
}
_parent.map._alpha = 0;
_alpha = 100;
_parent.playB._visible = true;
}
}
Frame 27
stop();
Frame 30
stopAllSounds();
Frame 37
if (_level0.u_id == null) {
_level0.u_id = 0;
}
if (_level0.paid == null) {
_level0.paid = 0;
}
stop();
Frame 38
stopAllSounds();
Frame 45
stop();
Frame 53
stop();
Frame 57
stopAllSounds();
_root.totemon = false;
_root.level = "level01a";
_root.nextLevel = "level01b";
_root.levelNum = 1;
_root.timeLimit = 60;
_root.timeLimit = _root.timeLimit * 15;
Frame 59
stop();
Instance of Symbol 127 MovieClip "bg" in Frame 59
onClipEvent (enterFrame) {
_y = (_y + (_root.BGymv * 0.5));
_x = (_x + (_root.BGxmv * 0.5));
}
Instance of Symbol 337 MovieClip "ground" in Frame 59
onClipEvent (load) {
orgX = bg._x;
orgY = bg._y;
shake = false;
scnt = 5;
dir = 1;
}
onClipEvent (enterFrame) {
if (shake == true) {
dir = dir * -1;
if (scnt < 1) {
scnt = 5;
bg._x = orgX;
bg._y = orgY;
dir = 1;
shake = false;
} else {
bg._x = bg._x + ((scnt * 1.5) * dir);
bg._y = bg._y + ((scnt * 1.5) * (-dir));
}
if (dir > 0) {
scnt = scnt - 1;
}
}
_y = (_y + _root.BGymv);
_x = (_x + _root.BGxmv);
_root.foreground._y = _root.foreground._y + _root.BGymv;
_root.foreground._x = _root.foreground._x + _root.BGxmv;
}
Instance of Symbol 339 MovieClip "botLim" in Frame 59
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y + _root.BGymv);
}
Instance of Symbol 341 MovieClip "topLim" in Frame 59
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y + _root.BGymv);
}
Instance of Symbol 339 MovieClip "LeftLim" in Frame 59
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x + _root.BGxmv);
}
Instance of Symbol 339 MovieClip "RightLim" in Frame 59
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x + _root.BGxmv);
}
Instance of Symbol 349 MovieClip "effects" in Frame 59
onClipEvent (load) {
function flashBG() {
fcnt = 0;
flash = true;
}
flash = false;
fcnt = 0;
BGColor = new Color(_root.bg);
ForeColor = new Color(_root.ground);
HeroColor = new Color(_root.hero);
black = {ra:"100", rb:"-50", ga:"100", gb:"-50", ba:"100", bb:"-50", aa:"100", ab:"100"};
white2 = {ra:"100", rb:"255", ga:"100", gb:"255", ba:"100", bb:"255", aa:"100", ab:"75"};
white3 = {ra:"100", rb:"150", ga:"100", gb:"150", ba:"100", bb:"150", aa:"100", ab:"50"};
none = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
if (flash == true) {
fcnt = fcnt + 1;
switch (fcnt) {
case 1 :
gotoAndPlay ("thunder");
BGColor.setTransform(black);
break;
case 2 :
BGColor.setTransform(white3);
HeroColor.setTransform(white3);
break;
case 3 :
BGColor.setTransform(black);
ForeColor.setTransform(white3);
HeroColor.setTransform(white2);
HeroState = _root.hero._currentframe;
if (HeroState < _root.hero_MaxToggle) {
HeroState = HeroState + 1;
} else {
HeroState = 1;
}
_root.hero.MyState = HeroState;
_root.hero.gotoAndStop(HeroState);
break;
case 4 :
BGColor.setTransform(white2);
ForeColor.setTransform(black);
HeroColor.setTransform(white3);
break;
case 5 :
BGColor.setTransform(none);
ForeColor.setTransform(none);
HeroColor.setTransform(none);
fcnt = 0;
flash = false;
}
}
}
Instance of Symbol 974 MovieClip "hero" in Frame 59
onClipEvent (load) {
function setDefaults() {
stand = false;
run = false;
duck = false;
jump = false;
attack = false;
hurt = false;
die = false;
turn = false;
land = false;
sattack = false;
diefall = false;
scnt = 0;
diecnt = 0;
keySAttack = false;
keyAttack = false;
keyRight = false;
keyLeft = false;
keyJump = false;
keyDuck = false;
keyZ = false;
keyJump = true;
ymv = -45;
jump = true;
action = "jump";
}
function hit(hitX, hitS) {
var _local1 = _root;
var _local2 = hitS;
trace((("Hitx= " + hitX) + " // hitS= ") + _local2);
if (((hurt == false) and (die == false)) and (sattack == false)) {
_local1.hero_life = _local1.hero_life - (_local2 * _local1.hero_hitOffset);
if (hitX < _x) {
xmv = (_local2 * _local1.hero_hitOffset) * -0.5;
faceing = "left";
} else {
xmv = (_local2 * _local1.hero_hitOffset) * -0.5;
faceing = "right";
}
if (_local1.hero_life > 0) {
hurt = true;
Action = "hurt";
} else {
_local1.hero_life = 0;
if (_local1.hero_lives > 0) {
_local1.hero_lives = _local1.hero_lives - 1;
}
die = true;
action = "die";
xmv = 0;
}
}
}
xsorg = _xscale;
faceing = "right";
MyState = _root.hero_startState;
gotoAndStop(MyState);
xmv = 0;
ymv = 0;
setDefaults();
}
onClipEvent (keyDown) {
if (_root.paused == false) {
if ((hurt == false) and (die == false)) {
if (((((Key.getCode() == 67) and (sattack == false)) and (jump == false)) and (SAttackOn == true)) and (_root.hero_life > 10)) {
_root.hero_life = _root.hero_life - 8;
sattack = true;
scnt = 0;
}
if ((((Key.getCode() == 32) and (keyAttack == false)) and (attack == false)) and (sattack == false)) {
keyAttack = true;
attack = true;
}
if (((Key.getCode() == 39) and (keyRight == false)) and (sattack == false)) {
keyRight = true;
faceing = "right";
}
if (((Key.getCode() == 37) and (keyLeft == false)) and (sattack == false)) {
keyLeft = true;
faceing = "left";
}
if (((((Key.getCode() == 38) and (keyJump == false)) and (jump == false)) and (action != "fall")) and (sattack == false)) {
keyJump = true;
ymv = -_root.hero_jumpHeight;
}
if (((Key.getCode() == 40) and (keyDuck == false)) and (sattack == false)) {
keyDuck = true;
}
if (((Key.getCode() == 90) and (keyZ == false)) and (sattack == false)) {
_root.effects.flashBG();
}
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
keyAttack = false;
}
if (Key.getCode() == 39) {
keyRight = false;
}
if (Key.getCode() == 37) {
keyLeft = false;
}
if (Key.getCode() == 40) {
keyDuck = false;
}
if (Key.getCode() == 38) {
keyJump = false;
}
if (Key.getCode() == 90) {
keyZ = false;
}
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
dir = _root.getDirection(faceing);
_xscale = (xsorg * (dir * -1));
if ((hurt == false) and (die == false)) {
if (ymv > 15) {
jump = true;
action = "fall";
}
if ((keyJump == true) and (jump == false)) {
jump = true;
action = "jump";
}
if ((hurt == false) and (die == false)) {
if (sattack == false) {
if (((keyRight == true) or (keyLeft == true)) and ((keyDuck == false) or ((keyDuck == true) and (jump == true)))) {
if (((attack == true) and ((MyState == 4) or (MyState == 5))) and (jump == false)) {
xmv = 0;
} else {
xmv = _root.hero_runSpeed;
}
if ((jump != true) and (attack != true)) {
action = "run";
}
} else if (((keyDuck == true) and (action != "fall")) and (action != "jump")) {
xmv = 0;
action = "duck";
} else {
xmv = 0;
if (jump != true) {
action = "stand";
}
}
if (attack == true) {
if (jump == true) {
if (action != "land") {
action = "jumpattack";
}
} else {
action = "attack";
}
}
} else {
action = "sattack";
scnt = scnt + 1;
switch (MyState) {
case 2 :
if (scnt < 4) {
xmv = 0;
} else if (scnt < 10) {
xmv = 25;
} else if (scnt < 14) {
xmv = 5;
} else {
sattack = false;
}
break;
case 3 :
if (scnt < 2) {
xmv = 0;
ymv = 0;
} else if ((scnt > 6) and (scnt < 8)) {
_root.ground.shake = true;
} else if (scnt > 11) {
sattack = false;
}
break;
case 4 :
if (scnt < 2) {
xmv = 0;
ymv = 0;
} else if (scnt > 15) {
sattack = false;
}
break;
case 5 :
if (scnt < 2) {
xmv = 0;
ymv = 0;
} else if ((scnt > 6) and (scnt < 8)) {
_root.ground.shake = true;
} else {
if (scnt <= 24) {
break;
}
sattack = false;
}
}
}
}
} else if (die == true) {
if (diefall == true) {
action = "diefall";
} else {
action = "die";
}
diecnt = diecnt + 1;
if (diecnt > 20) {
diecnt = 0;
if (_root.hero_lives > 0) {
_root.transition.target = _root.level;
_root.transition.gotoAndPlay("fade");
} else {
_root.transition.target = "loseScreen";
_root.transition.gotoAndPlay("fade");
}
}
xmv = 0;
} else {
trace("you got hurt from switch-case");
action = "hurt";
}
if (_root.ground.diezone.hitTest(_x, _y + _root.hero_groundClearance, true)) {
hit(20, 200);
}
movements.gotoAndStop(action + "_right");
_root.hitcheck(_name, dir);
if ((die == true) or (hurt == true)) {
if (Math.abs.xmv > 1) {
xmv = xmv * 0.5;
}
}
} else {
movements.gotoAndStop("stand_right");
_root.BGymv = 0;
_root.BGxmv = 0;
}
}
Frame 65
stopAllSounds();
_root.totemOn = false;
_root.level = "level01b";
_root.levelNum = 1;
_root.timeLimit = 90;
_root.timeLimit = _root.timeLimit * 15;
Frame 67
stop();
Instance of Symbol 1008 MovieClip "bg" in Frame 67
onClipEvent (enterFrame) {
_y = (_y + (_root.BGymv * 0.5));
_x = (_x + (_root.BGxmv * 0.5));
}
Instance of Symbol 1067 MovieClip "ground" in Frame 67
onClipEvent (load) {
orgX = bg._x;
orgY = bg._y;
shake = false;
scnt = 5;
dir = 1;
}
onClipEvent (enterFrame) {
if (shake == true) {
dir = dir * -1;
if (scnt < 1) {
scnt = 5;
bg._x = orgX;
bg._y = orgY;
dir = 1;
shake = false;
} else {
bg._x = bg._x + ((scnt * 1.5) * dir);
bg._y = bg._y + ((scnt * 1.5) * (-dir));
}
if (dir > 0) {
scnt = scnt - 1;
}
}
_y = (_y + _root.BGymv);
_x = (_x + _root.BGxmv);
_root.foreground._y = _root.foreground._y + _root.BGymv;
_root.foreground._x = _root.foreground._x + _root.BGxmv;
}
Instance of Symbol 339 MovieClip "botLim" in Frame 67
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y + _root.BGymv);
}
Instance of Symbol 341 MovieClip "topLim" in Frame 67
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y + _root.BGymv);
}
Instance of Symbol 339 MovieClip "LeftLim" in Frame 67
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x + _root.BGxmv);
}
Instance of Symbol 339 MovieClip "RightLim" in Frame 67
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x + _root.BGxmv);
}
Instance of Symbol 349 MovieClip "effects" in Frame 67
onClipEvent (load) {
function flashBG() {
fcnt = 0;
flash = true;
}
flash = false;
fcnt = 0;
BGColor = new Color(_root.bg);
ForeColor = new Color(_root.ground);
HeroColor = new Color(_root.hero);
black = {ra:"100", rb:"-50", ga:"100", gb:"-50", ba:"100", bb:"-50", aa:"100", ab:"100"};
white2 = {ra:"100", rb:"255", ga:"100", gb:"255", ba:"100", bb:"255", aa:"100", ab:"75"};
white3 = {ra:"100", rb:"150", ga:"100", gb:"150", ba:"100", bb:"150", aa:"100", ab:"50"};
none = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
if (flash == true) {
fcnt = fcnt + 1;
switch (fcnt) {
case 1 :
gotoAndPlay ("thunder");
BGColor.setTransform(black);
break;
case 2 :
BGColor.setTransform(white3);
HeroColor.setTransform(white3);
break;
case 3 :
BGColor.setTransform(black);
ForeColor.setTransform(white3);
HeroColor.setTransform(white2);
HeroState = _root.hero._currentframe;
if (HeroState < _root.hero_MaxToggle) {
HeroState = HeroState + 1;
} else {
HeroState = 1;
}
_root.hero.MyState = HeroState;
_root.hero.gotoAndStop(HeroState);
break;
case 4 :
BGColor.setTransform(white2);
ForeColor.setTransform(black);
HeroColor.setTransform(white3);
break;
case 5 :
BGColor.setTransform(none);
ForeColor.setTransform(none);
HeroColor.setTransform(none);
fcnt = 0;
flash = false;
}
}
}
Instance of Symbol 974 MovieClip "hero" in Frame 67
onClipEvent (load) {
function setDefaults() {
action = "stand";
stand = true;
run = false;
duck = false;
jump = false;
attack = false;
hurt = false;
die = false;
turn = false;
land = false;
sattack = false;
diefall = false;
scnt = 0;
diecnt = 0;
keySAttack = false;
keyAttack = false;
keyRight = false;
keyLeft = false;
keyJump = false;
keyDuck = false;
keyZ = false;
}
function hit(hitX, hitS) {
var _local1 = _root;
var _local2 = hitS;
trace((("Hitx= " + hitX) + " // hitS= ") + _local2);
if (((hurt == false) and (die == false)) and (sattack == false)) {
_local1.hero_life = _local1.hero_life - (_local2 * _local1.hero_hitOffset);
if (hitX < _x) {
xmv = (_local2 * _local1.hero_hitOffset) * -0.5;
faceing = "left";
} else {
xmv = (_local2 * _local1.hero_hitOffset) * -0.5;
faceing = "right";
}
if (_local1.hero_life > 0) {
hurt = true;
Action = "hurt";
} else {
_local1.hero_life = 0;
if (_local1.hero_lives > 0) {
_local1.hero_lives = _local1.hero_lives - 1;
}
die = true;
action = "die";
xmv = 0;
}
}
}
xsorg = _xscale;
faceing = "right";
MyState = _root.hero_startState;
gotoAndStop(MyState);
xmv = 0;
ymv = 0;
setDefaults();
}
onClipEvent (keyDown) {
if (_root.paused == false) {
if ((hurt == false) and (die == false)) {
if (((((Key.getCode() == 67) and (sattack == false)) and (jump == false)) and (SAttackOn == true)) and (_root.hero_life > 10)) {
_root.hero_life = _root.hero_life - 8;
sattack = true;
scnt = 0;
}
if ((((Key.getCode() == 32) and (keyAttack == false)) and (attack == false)) and (sattack == false)) {
keyAttack = true;
attack = true;
}
if (((Key.getCode() == 39) and (keyRight == false)) and (sattack == false)) {
keyRight = true;
faceing = "right";
}
if (((Key.getCode() == 37) and (keyLeft == false)) and (sattack == false)) {
keyLeft = true;
faceing = "left";
}
if (((((Key.getCode() == 38) and (keyJump == false)) and (jump == false)) and (action != "fall")) and (sattack == false)) {
keyJump = true;
ymv = -_root.hero_jumpHeight;
}
if (((Key.getCode() == 40) and (keyDuck == false)) and (sattack == false)) {
keyDuck = true;
}
if (((Key.getCode() == 90) and (keyZ == false)) and (sattack == false)) {
_root.effects.flashBG();
}
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
keyAttack = false;
}
if (Key.getCode() == 39) {
keyRight = false;
}
if (Key.getCode() == 37) {
keyLeft = false;
}
if (Key.getCode() == 40) {
keyDuck = false;
}
if (Key.getCode() == 38) {
keyJump = false;
}
if (Key.getCode() == 90) {
keyZ = false;
}
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
dir = _root.getDirection(faceing);
_xscale = (xsorg * (dir * -1));
if ((hurt == false) and (die == false)) {
if (ymv > 15) {
jump = true;
action = "fall";
}
if ((keyJump == true) and (jump == false)) {
jump = true;
action = "jump";
}
if ((hurt == false) and (die == false)) {
if (sattack == false) {
if (((keyRight == true) or (keyLeft == true)) and ((keyDuck == false) or ((keyDuck == true) and (jump == true)))) {
if (((attack == true) and ((MyState == 4) or (MyState == 5))) and (jump == false)) {
xmv = 0;
} else {
xmv = _root.hero_runSpeed;
}
if ((jump != true) and (attack != true)) {
action = "run";
}
} else if (((keyDuck == true) and (action != "fall")) and (action != "jump")) {
xmv = 0;
action = "duck";
} else {
xmv = 0;
if (jump != true) {
action = "stand";
}
}
if (attack == true) {
if (jump == true) {
if (action != "land") {
action = "jumpattack";
}
} else {
action = "attack";
}
}
} else {
action = "sattack";
scnt = scnt + 1;
switch (MyState) {
case 2 :
if (scnt < 4) {
xmv = 0;
} else if (scnt < 10) {
xmv = 25;
} else if (scnt < 14) {
xmv = 5;
} else {
sattack = false;
}
break;
case 3 :
if (scnt < 2) {
xmv = 0;
ymv = 0;
} else if ((scnt > 6) and (scnt < 8)) {
_root.ground.shake = true;
} else if (scnt > 11) {
sattack = false;
}
break;
case 4 :
if (scnt < 2) {
xmv = 0;
ymv = 0;
} else if (scnt > 15) {
sattack = false;
}
break;
case 5 :
if (scnt < 2) {
xmv = 0;
ymv = 0;
} else if ((scnt > 6) and (scnt < 8)) {
_root.ground.shake = true;
} else {
if (scnt <= 24) {
break;
}
sattack = false;
}
}
}
}
} else if (die == true) {
if (diefall == true) {
action = "diefall";
} else {
action = "die";
}
diecnt = diecnt + 1;
if (diecnt > 20) {
diecnt = 0;
if (_root.hero_lives > 0) {
_root.transition.target = _root.level;
_root.transition.gotoAndPlay("fade");
} else {
_root.transition.target = "loseScreen";
_root.transition.gotoAndPlay("fade");
}
}
xmv = 0;
} else {
trace("you got hurt from switch-case");
action = "hurt";
}
if (_root.ground.diezone.hitTest(_x, _y + _root.hero_groundClearance, true)) {
hit(20, 200);
}
movements.gotoAndStop(action + "_right");
_root.hitcheck(_name, dir);
if ((die == true) or (hurt == true)) {
if (Math.abs.xmv > 1) {
xmv = xmv * 0.5;
}
}
} else {
movements.gotoAndStop("stand_right");
_root.BGymv = 0;
_root.BGxmv = 0;
}
}
Frame 72
_level10.score = _root.score;
_level10.hero_lives = _root.hero_lives;
_level10.mod = _root.mod;
_level10.u_id = _level0.u_id;
if ((_level0.paid == null) and (_level10.paid == null)) {
_level0.paid = 0;
}
_level10.paid = _level0.paid;
loadMovieNum ("DragonWarrior_Level2.swf", 1);
play();
Frame 73
stop();
Symbol 4 MovieClip Frame 2
stop();
Symbol 4 MovieClip Frame 10
_root.gotoAndPlay(target);
if ((_root.hero_life <= 0) and (_root.hero_lives > 0)) {
_root.hero_life = 100;
}
trace(target);
_root.paused = false;
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 16
stop();
gotoAndStop (1);
Symbol 26 MovieClip Frame 10
Symbol 28 Button
on (release) {
_root.transition.target = "interlevel";
_root.transition.gotoAndPlay("fade");
}
Symbol 40 Button
on (release) {
_root.transition.target = "instructions";
_root.transition.gotoAndPlay("fade");
}
Symbol 45 Button
on (release) {
_root.transition.target = "interlevel";
_root.transition.gotoAndPlay("fade");
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 87 MovieClip Frame 4
stop();
Symbol 87 MovieClip Frame 5
stop();
Symbol 87 MovieClip Frame 6
stop();
Symbol 87 MovieClip Frame 7
stop();
Symbol 87 MovieClip Frame 8
stop();
Symbol 87 MovieClip Frame 9
stop();
Symbol 87 MovieClip Frame 10
stop();
Symbol 87 MovieClip Frame 11
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 3
stop();
Symbol 98 MovieClip Frame 4
stop();
Symbol 98 MovieClip Frame 5
stop();
Symbol 98 MovieClip Frame 6
stop();
Symbol 98 MovieClip Frame 7
stop();
Symbol 98 MovieClip Frame 8
stop();
Symbol 98 MovieClip Frame 9
stop();
Symbol 98 MovieClip Frame 10
stop();
Symbol 98 MovieClip Frame 11
stop();
Symbol 99 Button
on (release) {
_root.transition.target = _root.level;
_root.transition.gotoAndPlay("fade");
}
Symbol 102 Button
on (release) {
hero_lives = 3;
score = 0;
_root.transition.target = "interlevel";
_root.transition.gotoAndPlay("fade");
}
Symbol 117 MovieClip Frame 17
stop();
Instance of Symbol 116 MovieClip in Symbol 117 MovieClip Frame 17
on (release) {
getURL ("http://gamestore.imagerymedia.com", "_blank");
}
Symbol 119 MovieClip Frame 202
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 9
gotoAndStop (1);
Symbol 161 MovieClip Frame 2
if (_root.hero.hitTest(this)) {
_root.effects.gotoAndPlay("bling");
_root.score = _root.score + 5;
unloadMovie (this);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 177 MovieClip Frame 2
_parent._parent.hitting = true;
Symbol 177 MovieClip Frame 4
_parent._parent.hitting = false;
Symbol 177 MovieClip Frame 6
_parent._parent.ranged = false;
_parent._parent.attacking = false;
_parent._parent.action = "stand";
Symbol 178 MovieClip Frame 10
_parent._parent.die = false;
Symbol 182 MovieClip Frame 1
_root.score = _root.score + _parent._parent.points;
Symbol 182 MovieClip Frame 12
dcnt = 50;
Symbol 182 MovieClip Frame 13
dcnt = dcnt - 1;
_alpha = (dcnt * 2);
_parent._parent._y = _parent._parent._y + 7;
Symbol 182 MovieClip Frame 14
dcnt = dcnt - 1;
if (dcnt > 0) {
_alpha = (dcnt * 2);
gotoAndPlay(_currentframe - 1);
_parent._parent._y = _parent._parent._y + 7;
}
Symbol 182 MovieClip Frame 15
unloadMovie (_parent._parent);
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 8
stop();
Symbol 183 MovieClip Frame 15
stop();
Symbol 183 MovieClip Frame 28
stop();
Symbol 183 MovieClip Frame 34
stop();
Symbol 183 MovieClip Frame 40
stop();
Symbol 183 MovieClip Frame 43
stop();
Symbol 184 MovieClip Frame 1
function animate() {
var _local1 = _parent;
var _local2 = _root;
if (_local2.paused == false) {
_local1.point = new Object();
_local1.point.x = _local1._x;
_local1.point.y = _local1._y;
_local1._parent.localToGlobal(_local1.point);
_local1.myX = _local1.point.x;
_local1.myY = _local1.point.y;
if ((((_local1.myX < (_local2.stageW + 20)) and (_local1.myX > -20)) and (_local1.myY > -60)) and (_local1.myY < (_local2.stageH + 75))) {
_local1.onscreen = true;
_local1._visible = true;
} else {
_local1.onscreen = false;
_local1._visible = false;
}
if (_local1.die == false) {
if (_local1.onscreen == true) {
if (_local1.hitTest(_local2.hero)) {
if (_local2.jumpOnHeads == true) {
if (_local2.hero.ymv > 10) {
_local1.hit(_local2.hero_power);
_local2.hero.ymv = -_local2.hero_jumpHeight;
}
}
if ((_local2.hero.attack == false) and (_local2.hero.sattack == false)) {
if (_local1.hitting == true) {
_local2.hero.hit(_local1.myX, _local1.handDamage);
}
} else if (_local2.hero.sattack == true) {
_local1.hit(_local2.hero_spower);
} else if (_local1.hitzone == true) {
if (_local1.hitarea.hitTest(_local2.hero)) {
_local1.hit(_local2.hero_power);
}
} else if (_local2.hero.MyState != 4) {
_local1.hit(_local2.hero_power);
}
}
if (_local1.hitTest(_local1._parent.arrow1) == true) {
if (_local1.hitzone == true) {
if (_local1._parent.arrow1.hitTest(_local1.hitarea)) {
_local1.hit(_local2.hero_power);
_local1._parent.arrow1.hit();
} else {
_local1._parent.arrow1.hit();
}
} else {
_local1.hit(_local2.hero_power);
_local1._parent.arrow1.hit();
}
}
}
_local1.movements.gotoAndPlay(_local1.action);
if (_local1.trackGround == true) {
_local1.mv = _local2.En_hitcheck(_local1._name);
}
_local1._y = _local1._y + _local1.mv;
if (_local1.attacking == true) {
if (_local1.ranged == false) {
_local1.action = "attack";
} else {
_local1.action = "sattack";
}
} else {
if (_local1._x > _local1.Rlim) {
_local1.pauseCnt = _local1.pauseCnt + 1;
if (_local1.pauseCnt < _local1.pauseTime) {
_local1.action = "stand";
} else {
_local1.pauseCnt = 0;
_local1.dir = 1;
_local1.action = "walk";
_local1._x = _local1.Rlim - 2;
}
} else if (_local1._x < _local1.Llim) {
_local1.pauseCnt = _local1.pauseCnt + 1;
if (_local1.pauseCnt < _local1.pauseTime) {
_local1.action = "stand";
} else {
_local1.pauseCnt = 0;
_local1.dir = -1;
_local1.action = "walk";
_local1._x = _local1.Llim + 2;
}
} else {
_local1._x = _local1._x - (_local1.speed * _local1.dir);
_local1.action = "walk";
}
if ((_local2.hero.die == false) and (_local2.hero.hurt == false)) {
_local1.heroY = _local2.hero._y;
_local1.heroX = _local2.hero._x;
if ((((_local1.heroY < (_local1.myY + 10)) and (_local1.heroY > (_local1.myY - _local1._height))) and (_local1.heroX < (_local1.myX + _local1.handRange))) and (_local1.heroX > (_local1.myX - _local1.handRange))) {
_local1.attacking = true;
_local1.ranged = false;
if (_local1.heroX < _local1.myX) {
_local1.dir = 1;
} else {
_local1.dir = -1;
}
} else if (_local1.rangedAttack == true) {
if ((((_local1.heroY < (_local1.myY + 10)) and (_local1.heroY > (_local1.myY - _local1._height))) and (_local1.heroX < (_local1.myX + _local1.fireRange))) and (_local1.heroX > (_local1.myX - _local1.fireRange))) {
_local1.attacking = true;
_local1.ranged = true;
if (_local1.heroX < _local1.myX) {
_local1.dir = 1;
} else {
_local1.dir = -1;
}
}
}
}
}
_local1._xscale = _local1.orgx * _local1.dir;
} else if (_local1.life > 0) {
_local1.action = "hurt";
} else {
_local1.action = "die";
}
_local1.movements.gotoAndStop(_local1.action);
} else if (_local1.die == false) {
_local1.movements.gotoAndStop("stand");
}
}
Symbol 184 MovieClip Frame 2
stop();
Instance of Symbol 184 MovieClip in Symbol 185 MovieClip Frame 1
onClipEvent (enterFrame) {
animate();
}
Symbol 185 MovieClip Frame 2
stop();
Symbol 188 MovieClip Frame 2
stop();
Symbol 245 MovieClip Frame 3
_parent._parent.hitting = true;
Symbol 245 MovieClip Frame 4
_parent._parent.hitting = false;
Symbol 245 MovieClip Frame 5
_parent._parent.ranged = false;
_parent._parent.attacking = false;
_parent._parent.action = "stand";
Symbol 254 MovieClip Frame 5
_parent._parent.die = false;
Symbol 275 MovieClip Frame 1
_root.score = _root.score + _parent._parent.points;
Symbol 275 MovieClip Frame 16
dcnt = 50;
Symbol 275 MovieClip Frame 17
dcnt = dcnt - 1;
_alpha = (dcnt * 2);
Symbol 275 MovieClip Frame 18
dcnt = dcnt - 1;
if (dcnt > 0) {
_alpha = (dcnt * 2);
gotoAndPlay(_currentframe - 1);
}
Symbol 275 MovieClip Frame 19
unloadMovie (_parent._parent);
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 8
stop();
Symbol 276 MovieClip Frame 15
stop();
Symbol 276 MovieClip Frame 28
stop();
Symbol 276 MovieClip Frame 34
stop();
Symbol 276 MovieClip Frame 40
stop();
Symbol 276 MovieClip Frame 43
stop();
Instance of Symbol 184 MovieClip in Symbol 277 MovieClip Frame 1
onClipEvent (enterFrame) {
animate();
}
Symbol 277 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 4
_parent._parent.hitting = true;
Symbol 302 MovieClip Frame 6
_parent._parent.hitting = false;
Symbol 302 MovieClip Frame 8
_parent._parent.ranged = false;
_parent._parent.attacking = false;
_parent._parent.action = "stand";
Symbol 309 MovieClip Frame 8
_parent._parent.die = false;
Symbol 331 MovieClip Frame 1
_root.score = _root.score + _parent._parent.points;
Symbol 331 MovieClip Frame 17
dcnt = 50;
Symbol 331 MovieClip Frame 18
dcnt = dcnt - 1;
_alpha = (dcnt * 2);
Symbol 331 MovieClip Frame 19
dcnt = dcnt - 1;
if (dcnt > 0) {
_alpha = (dcnt * 2);
gotoAndPlay(_currentframe - 1);
}
Symbol 331 MovieClip Frame 20
unloadMovie (_parent._parent);
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 8
stop();
Symbol 332 MovieClip Frame 15
stop();
Symbol 332 MovieClip Frame 20
stop();
Symbol 332 MovieClip Frame 28
stop();
Symbol 332 MovieClip Frame 34
stop();
Symbol 332 MovieClip Frame 40
stop();
Symbol 332 MovieClip Frame 43
stop();
Instance of Symbol 184 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
animate();
}
Symbol 333 MovieClip Frame 2
stop();
Symbol 335 MovieClip Frame 3
stop();
Symbol 335 MovieClip Frame 6
stop();
Symbol 336 MovieClip Frame 5
stop();
Instance of Symbol 129 MovieClip "floor" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 139 MovieClip "diezone" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 141 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
nextlevel = _root.nextLevel;
Mytarget = "interlevel";
}
onClipEvent (enterFrame) {
if (_root.totemOn == true) {
if ((_root.hero.sattack == false) and ((_root.hero.action == "run") or (_root.hero.action == "stand"))) {
if (_root.hero.hitTest(this)) {
if (_root.paused == false) {
_root.paused = true;
_root.transition.target = Mytarget;
_root.level = nextlevel;
_root.panels.timer.bar.countBonus = true;
}
}
}
}
}
Instance of Symbol 185 MovieClip "enemy1" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 5;
distance = 500;
pauseTime = 20;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 188 MovieClip "en_bullet" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function fire(xloc, yloc, dir, speed, type, movement, power) {
cnt = cnt + 1;
bulletName = "bullet" + cnt;
duplicateMovieClip (this, "bullet" + cnt, cnt);
eval ("_parent." + bulletName).myspeed = speed * (-dir);
eval ("_parent." + bulletName).mytype = type;
eval ("_parent." + bulletName).dir = -dir;
eval ("_parent." + bulletName)._x = xloc;
eval ("_parent." + bulletName)._y = yloc;
eval ("_parent." + bulletName).power = power;
eval ("_parent." + bulletName).movement = movement;
eval ("_parent." + bulletName).Flying = true;
}
function hit() {
Flying = false;
_x = 1000;
_y = -1000;
removeMovieClip(this);
}
cnt = 100;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
if (Flying == true) {
_xscale = (dir * 100);
gotoAndStop(mytype);
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myX = point.x;
myY = point.y;
_x = (_x + myspeed);
if (movement == "ground") {
mv = _root.En_hitcheck(_name);
_y = (_y + mv);
}
if (this.hitTest(_root.hero)) {
_root.hero.hit(myX, power);
hit();
}
if ((myX > (_root.stageW + 20)) or (myX < -20)) {
hit();
}
}
}
}
Instance of Symbol 277 MovieClip "enemy3" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = true;
speed = 4;
distance = 250;
pauseTime = 35;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 277 MovieClip "enemy6" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = true;
speed = 6;
distance = 350;
pauseTime = 25;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 277 MovieClip "enemy5" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = true;
speed = 3;
distance = 150;
pauseTime = 25;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 277 MovieClip "enemy7" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = false;
speed = 5;
distance = 250;
pauseTime = 20;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy2" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 5;
distance = 400;
pauseTime = 45;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy11" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = true;
speed = 4;
distance = 250;
pauseTime = 35;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy12" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = true;
speed = 5;
distance = 250;
pauseTime = 15;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy9" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 7;
distance = 300;
pauseTime = 10;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy10" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 7;
distance = 300;
pauseTime = 29;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy8" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
if (life <= 0) {
_root.totemon = true;
}
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = false;
speed = 4;
distance = 250;
pauseTime = 35;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy4" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = true;
speed = 5;
distance = 250;
pauseTime = 40;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 336 MovieClip "arrow1" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function fire(xloc, yloc, dir, fireT) {
firetype = fireT;
myspeed = _root.hero_shot1Speed * (-dir);
_xscale = (xsorg * (-dir));
point = new Object();
point.x = xloc;
point.y = yloc;
_parent.globalToLocal(point);
_x = point.x;
_y = point.y;
gotoAndPlay (1);
Flying = true;
}
function hit() {
Flying = false;
_x = 1000;
_y = -1000;
}
Flying = false;
xsorg = _xscale;
cnt = 20;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
if (Flying == true) {
sym.gotoAndStop(firetype);
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myX = point.x;
myY = point.y;
_x = (_x + myspeed);
if ((myX > 570) or (myX < -20)) {
hit();
}
}
}
}
Symbol 337 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 4
gotoAndStop (1);
Symbol 349 MovieClip Frame 10
gotoAndStop (1);
Symbol 349 MovieClip Frame 15
gotoAndStop (1);
Symbol 349 MovieClip Frame 22
gotoAndStop (1);
Symbol 349 MovieClip Frame 31
gotoAndStop (1);
Symbol 349 MovieClip Frame 38
gotoAndStop (1);
Symbol 349 MovieClip Frame 45
gotoAndStop (1);
Symbol 349 MovieClip Frame 51
gotoAndStop (1);
Symbol 349 MovieClip Frame 57
gotoAndStop (1);
Symbol 386 MovieClip Frame 2
if (random(10) > 6) {
_root.effects.gotoAndPlay("H1");
}
Symbol 386 MovieClip Frame 9
stop();
Symbol 391 MovieClip Frame 4
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
Symbol 395 MovieClip Frame 3
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
stop();
Symbol 414 MovieClip Frame 8
_parent._parent.attack = false;
Symbol 420 MovieClip Frame 5
_parent._parent.attack = false;
stop();
Symbol 424 MovieClip Frame 2
stop();
Symbol 437 MovieClip Frame 5
_parent._parent.hurt = false;
Symbol 437 MovieClip Frame 8
_parent._parent.setDefaults();
Symbol 450 MovieClip Frame 7
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 10
stop();
Symbol 451 MovieClip Frame 18
stop();
Symbol 451 MovieClip Frame 26
stop();
Symbol 451 MovieClip Frame 33
stop();
Symbol 451 MovieClip Frame 41
stop();
Symbol 451 MovieClip Frame 49
stop();
Symbol 451 MovieClip Frame 58
stop();
Symbol 451 MovieClip Frame 70
stop();
Symbol 451 MovieClip Frame 78
stop();
Symbol 451 MovieClip Frame 95
stop();
Symbol 451 MovieClip Frame 103
stop();
Symbol 451 MovieClip Frame 112
stop();
Symbol 451 MovieClip Frame 121
stop();
Symbol 451 MovieClip Frame 128
stop();
Symbol 451 MovieClip Frame 134
stop();
Symbol 451 MovieClip Frame 141
stop();
Symbol 451 MovieClip Frame 150
stop();
Symbol 451 MovieClip Frame 160
stop();
Symbol 451 MovieClip Frame 172
stop();
Symbol 451 MovieClip Frame 181
stop();
Symbol 451 MovieClip Frame 189
stop();
Symbol 451 MovieClip Frame 195
stop();
Symbol 495 MovieClip Frame 4
if (random(10) > 6) {
_root.effects.gotoAndPlay("H2");
}
Symbol 495 MovieClip Frame 9
stop();
Symbol 509 MovieClip Frame 4
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
Symbol 514 MovieClip Frame 3
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
stop();
Symbol 529 MovieClip Frame 8
_parent._parent.attack = false;
Symbol 537 MovieClip Frame 5
_parent._parent.attack = false;
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 5
_parent._parent.hurt = false;
Symbol 552 MovieClip Frame 8
_parent._parent.setDefaults();
Symbol 569 MovieClip Frame 10
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 10
stop();
Symbol 595 MovieClip Frame 18
stop();
Symbol 595 MovieClip Frame 26
stop();
Symbol 595 MovieClip Frame 33
stop();
Symbol 595 MovieClip Frame 41
stop();
Symbol 595 MovieClip Frame 49
stop();
Symbol 595 MovieClip Frame 58
stop();
Symbol 595 MovieClip Frame 70
stop();
Symbol 595 MovieClip Frame 78
stop();
Symbol 595 MovieClip Frame 86
stop();
Symbol 595 MovieClip Frame 93
stop();
Symbol 595 MovieClip Frame 103
stop();
Symbol 595 MovieClip Frame 112
stop();
Symbol 595 MovieClip Frame 121
stop();
Symbol 595 MovieClip Frame 128
stop();
Symbol 595 MovieClip Frame 134
stop();
Symbol 595 MovieClip Frame 141
stop();
Symbol 595 MovieClip Frame 150
stop();
Symbol 595 MovieClip Frame 160
stop();
Symbol 595 MovieClip Frame 172
stop();
Symbol 595 MovieClip Frame 181
stop();
Symbol 595 MovieClip Frame 189
stop();
Symbol 595 MovieClip Frame 195
stop();
Symbol 645 MovieClip Frame 1
if (random(10) > 6) {
_root.effects.gotoAndPlay("H3");
}
Symbol 645 MovieClip Frame 8
stop();
Symbol 651 MovieClip Frame 4
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
Symbol 653 MovieClip Frame 3
stop();
Symbol 674 MovieClip Frame 10
_parent._parent.attack = false;
Symbol 675 MovieClip Frame 5
_parent._parent.attack = false;
stop();
Symbol 678 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 5
_parent._parent.hurt = false;
Symbol 687 MovieClip Frame 8
_parent._parent.setDefaults();
Symbol 706 MovieClip Frame 13
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 10
stop();
Symbol 726 MovieClip Frame 18
stop();
Symbol 726 MovieClip Frame 26
stop();
Symbol 726 MovieClip Frame 33
stop();
Symbol 726 MovieClip Frame 41
stop();
Symbol 726 MovieClip Frame 49
stop();
Symbol 726 MovieClip Frame 58
stop();
Symbol 726 MovieClip Frame 70
stop();
Symbol 726 MovieClip Frame 78
stop();
Symbol 726 MovieClip Frame 86
stop();
Symbol 726 MovieClip Frame 93
stop();
Symbol 726 MovieClip Frame 103
stop();
Symbol 726 MovieClip Frame 112
stop();
Symbol 726 MovieClip Frame 121
stop();
Symbol 726 MovieClip Frame 128
stop();
Symbol 726 MovieClip Frame 134
stop();
Symbol 726 MovieClip Frame 141
stop();
Symbol 726 MovieClip Frame 150
stop();
Symbol 726 MovieClip Frame 160
stop();
Symbol 726 MovieClip Frame 172
stop();
Symbol 726 MovieClip Frame 181
stop();
Symbol 726 MovieClip Frame 189
stop();
Symbol 726 MovieClip Frame 195
stop();
Symbol 781 MovieClip Frame 5
if (random(10) > 6) {
_root.effects.gotoAndPlay("H4");
}
Symbol 781 MovieClip Frame 14
stop();
Symbol 789 MovieClip Frame 5
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
Symbol 792 MovieClip Frame 3
stop();
Symbol 800 MovieClip Frame 5
stop();
Symbol 813 MovieClip Frame 4
if (_parent._parent.keyAttack == false) {
gotoAndPlay ("fire");
}
Symbol 813 MovieClip Frame 5
if (_parent._parent.keyAttack == true) {
gotoAndPlay(_currentframe - 1);
}
Symbol 813 MovieClip Frame 6
_root.ground.arrow1.fire(_parent._parent._x + (-5 * _parent._parent.dir), _parent._parent._y - 36, _parent._parent.dir, "arrow");
Symbol 813 MovieClip Frame 11
_parent._parent.attack = false;
Symbol 824 MovieClip Frame 4
if (_parent._parent.keyAttack == false) {
gotoAndPlay ("fire");
}
Symbol 824 MovieClip Frame 5
if (_parent._parent.keyAttack == true) {
gotoAndPlay(_currentframe - 1);
}
Symbol 824 MovieClip Frame 6
_root.ground.arrow1.fire(_parent._parent._x + (-5 * _parent._parent.dir), _parent._parent._y - 10, _parent._parent.dir);
Symbol 824 MovieClip Frame 7
stop();
Symbol 827 MovieClip Frame 2
stop();
Symbol 837 MovieClip Frame 5
_parent._parent.hurt = false;
Symbol 837 MovieClip Frame 8
_parent._parent.setDefaults();
Symbol 848 MovieClip Frame 9
stop();
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 10
stop();
Symbol 866 MovieClip Frame 18
stop();
Symbol 866 MovieClip Frame 26
stop();
Symbol 866 MovieClip Frame 33
stop();
Symbol 866 MovieClip Frame 41
stop();
Symbol 866 MovieClip Frame 49
stop();
Symbol 866 MovieClip Frame 58
stop();
Symbol 866 MovieClip Frame 70
stop();
Symbol 866 MovieClip Frame 78
stop();
Symbol 866 MovieClip Frame 86
stop();
Symbol 866 MovieClip Frame 93
stop();
Symbol 866 MovieClip Frame 103
stop();
Symbol 866 MovieClip Frame 112
stop();
Symbol 866 MovieClip Frame 121
stop();
Symbol 866 MovieClip Frame 128
stop();
Symbol 866 MovieClip Frame 134
stop();
Symbol 866 MovieClip Frame 141
stop();
Symbol 866 MovieClip Frame 150
stop();
Symbol 866 MovieClip Frame 160
stop();
Symbol 866 MovieClip Frame 172
stop();
Symbol 866 MovieClip Frame 181
stop();
Symbol 866 MovieClip Frame 189
stop();
Symbol 866 MovieClip Frame 195
stop();
Symbol 892 MovieClip Frame 2
if (random(10) > 6) {
_root.effects.gotoAndPlay("H5");
}
Symbol 892 MovieClip Frame 9
stop();
Symbol 898 MovieClip Frame 4
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
Symbol 900 MovieClip Frame 3
_parent._parent.jump = false;
_parent._parent.keyJump = false;
land = false;
stop();
Symbol 911 MovieClip Frame 5
_root.ground.arrow1.fire(_parent._parent._x + (-5 * _parent._parent.dir), _parent._parent._y - 40, _parent._parent.dir, "glowball");
Symbol 911 MovieClip Frame 8
_parent._parent.attack = false;
Symbol 917 MovieClip Frame 4
_root.ground.arrow1.fire(_parent._parent._x + (10 * _parent._parent.dir), _parent._parent._y - 40, _parent._parent.dir, "glowball");
Symbol 917 MovieClip Frame 5
_parent._parent.attack = false;
stop();
Symbol 924 MovieClip Frame 5
_parent._parent.hurt = false;
Symbol 924 MovieClip Frame 8
_parent._parent.setDefaults();
Symbol 936 MovieClip Frame 10
stop();
Symbol 972 MovieClip Frame 7
stop();
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 10
stop();
Symbol 973 MovieClip Frame 18
stop();
Symbol 973 MovieClip Frame 26
stop();
Symbol 973 MovieClip Frame 33
stop();
Symbol 973 MovieClip Frame 41
stop();
Symbol 973 MovieClip Frame 49
stop();
Symbol 973 MovieClip Frame 58
stop();
Symbol 973 MovieClip Frame 70
stop();
Symbol 973 MovieClip Frame 78
stop();
Symbol 973 MovieClip Frame 85
stop();
Symbol 973 MovieClip Frame 95
stop();
Symbol 973 MovieClip Frame 103
stop();
Symbol 973 MovieClip Frame 112
stop();
Symbol 973 MovieClip Frame 121
stop();
Symbol 973 MovieClip Frame 128
stop();
Symbol 973 MovieClip Frame 134
stop();
Symbol 973 MovieClip Frame 141
stop();
Symbol 973 MovieClip Frame 150
stop();
Symbol 973 MovieClip Frame 160
stop();
Symbol 973 MovieClip Frame 172
stop();
Symbol 973 MovieClip Frame 181
stop();
Symbol 973 MovieClip Frame 189
stop();
Symbol 973 MovieClip Frame 195
stop();
Symbol 974 MovieClip Frame 1
SAttackOn = false;
_root.hero_runSpeed = 14;
_root.hero_jumpHeight = 40;
_root.hero_hitOffset = 1;
_root.hero_power = 10;
stop();
Symbol 974 MovieClip Frame 2
SAttackOn = true;
_root.hero_jumpHeight = 44;
_root.hero_runSpeed = 14;
_root.hero_hitOffset = 1.2;
_root.hero_power = 12;
_root.hero_spower = 14;
stop();
Symbol 974 MovieClip Frame 3
SAttackOn = true;
_root.hero_jumpHeight = 30;
_root.hero_runSpeed = 8;
_root.hero_hitOffset = 0.5;
_root.hero_power = 16;
_root.hero_spower = 25;
stop();
Symbol 974 MovieClip Frame 4
SAttackOn = true;
_root.hero_jumpHeight = 48;
_root.hero_runSpeed = 16;
_root.hero_hitOffset = 1.5;
_root.hero_power = 8;
_root.hero_spower = 8;
stop();
Symbol 974 MovieClip Frame 5
SAttackOn = true;
_root.hero_jumpHeight = 46;
_root.hero_runSpeed = 15;
_root.hero_hitOffset = 0.75;
_root.hero_power = 15;
_root.hero_spower = 20;
stop();
Symbol 982 Button
on (release) {
gotoAndStop (2);
clickon();
}
Symbol 984 Button
on (release) {
gotoAndStop (1);
clickoff();
}
Symbol 985 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 2
stop();
Symbol 986 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 2
stop();
Instance of Symbol 985 MovieClip in Symbol 986 MovieClip Frame 2
onClipEvent (load) {
function clickoff() {
_parent.gotoAndStop(1);
}
gotoAndStop (2);
}
Instance of Symbol 992 MovieClip "bar" in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
barW = _width;
inc = barW / 100;
stop();
}
onClipEvent (enterFrame) {
_width = (_root.hero_life * inc);
gotoAndStop(11 - Math.floor(_root.hero_life * 0.1));
stop();
}
Symbol 999 MovieClip Frame 1
stop();
Symbol 999 MovieClip Frame 2
stop();
Symbol 999 MovieClip Frame 3
stop();
Symbol 999 MovieClip Frame 4
stop();
Symbol 999 MovieClip Frame 5
stop();
Symbol 999 MovieClip Frame 6
stop();
Symbol 999 MovieClip Frame 7
stop();
Symbol 999 MovieClip Frame 8
stop();
Symbol 999 MovieClip Frame 9
stop();
Symbol 999 MovieClip Frame 10
stop();
Instance of Symbol 999 MovieClip "bar" in Symbol 1000 MovieClip Frame 1
onClipEvent (load) {
Mytime = _root.timeLimit;
MyW = _width;
Myinc = MyW / Mytime;
MyTenth = Mytime * 0.1;
countBonus = false;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
_root.timeLimit = _root.timeLimit - 1;
_width = (_root.timeLimit * Myinc);
gotoAndStop(10 - Math.floor(_root.timeLimit / MyTenth));
if (_root.timeLimit <= 0) {
_root.hero.hit(_root.hero._x - 20, 200);
_root.timeOver.gotoAndPlay("flash");
}
}
if (countBonus == true) {
_root.timeLimit = _root.timeLimit - 15;
_root.score = _root.score + 15;
_width = (_root.timeLimit * Myinc);
_root.effects.gotoAndPlay("pointbling");
if (_root.timeLimit < 0) {
_root.timeLimit = 0;
countBonus = false;
tcnt = tcnt + 1;
_width = 0;
_root.transition.gotoAndPlay("fade");
}
}
}
Symbol 1014 MovieClip Frame 2
if (_root.hero.hitTest(this)) {
_root.effects.gotoAndPlay("lifeBling");
if (_root.hero_life < 75) {
_root.hero_life = _root.hero_life + 25;
} else {
_root.hero_life = 100;
}
_root.score = _root.score + 50;
unloadMovie (this);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 1043 MovieClip Frame 1
_parent._parent.hitting = true;
Symbol 1043 MovieClip Frame 5
_parent._parent.hitting = false;
Symbol 1043 MovieClip Frame 9
_parent._parent.ranged = false;
_parent._parent.attacking = false;
_parent._parent.action = "stand";
Symbol 1052 MovieClip Frame 1
_parent._parent.hitting = true;
Symbol 1052 MovieClip Frame 8
_parent._parent.hitting = false;
Symbol 1052 MovieClip Frame 9
_parent._parent.ranged = false;
_parent._parent.attacking = false;
_parent._parent.action = "stand";
Symbol 1056 MovieClip Frame 2
_parent._parent.die = false;
Symbol 1063 MovieClip Frame 1
_root.score = _root.score + _parent._parent.points;
Symbol 1063 MovieClip Frame 10
dcnt = 50;
Symbol 1063 MovieClip Frame 11
dcnt = dcnt - 1;
_alpha = (dcnt * 2);
Symbol 1063 MovieClip Frame 12
dcnt = dcnt - 1;
if (dcnt > 0) {
_alpha = (dcnt * 2);
gotoAndPlay(_currentframe - 1);
}
Symbol 1063 MovieClip Frame 13
_root.totemOn = true;
unloadMovie (_parent._parent);
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1064 MovieClip Frame 8
stop();
Symbol 1064 MovieClip Frame 15
stop();
Symbol 1064 MovieClip Frame 20
stop();
Symbol 1064 MovieClip Frame 28
stop();
Symbol 1064 MovieClip Frame 34
stop();
Symbol 1064 MovieClip Frame 40
stop();
Symbol 1064 MovieClip Frame 43
stop();
Symbol 1065 MovieClip Frame 1
function animate() {
var _local1 = _parent;
var _local2 = _root;
if (_local2.paused == false) {
_local1.point = new Object();
_local1.point.x = _local1._x;
_local1.point.y = _local1._y;
_local1._parent.localToGlobal(_local1.point);
_local1.myX = _local1.point.x;
_local1.myY = _local1.point.y;
_local1.heroY = _local2.hero._y;
_local1.heroX = _local2.hero._x;
_local1.Lpoint = new Object();
_local1.Rpoint = new Object();
_local1.Lpoint.x = _local1.Llim;
_local1.Lpoint.y = 0;
_local1.Rpoint.x = _local1.Rlim;
_local1.Rpoint.y = 0;
_local1._parent.localToGlobal(_local1.Lpoint);
_local1._parent.localToGlobal(_local1.Rpoint);
_local1.GRlim = _local1.Rpoint.x + 150;
_local1.GLlim = _local1.Lpoint.x - 150;
if ((((_local1.myX < (_local2.stageW + 20)) and (_local1.myX > -20)) and (_local1.myY > -60)) and (_local1.myY < (_local2.stageH + 75))) {
_local1.onscreen = true;
_local1._visible = true;
} else {
_local1.onscreen = false;
_local1._visible = false;
}
if (_local1.die == false) {
if (_local1.onscreen == true) {
if (_local1.hitTest(_local2.hero)) {
if (_local2.jumpOnHeads == true) {
if (_local2.hero.ymv > 10) {
_local1.hit(_local2.hero_power);
_local2.hero.ymv = -_local2.hero_jumpHeight;
}
}
if ((_local2.hero.attack == false) and (_local2.hero.sattack == false)) {
if (_local1.hitting == true) {
_local2.hero.hit(_local1.myX, _local1.handDamage);
}
} else if (_local2.hero.sattack == true) {
_local1.hit(_local2.hero_spower);
} else if (_local1.hitzone == true) {
if (_local1.hitarea.hitTest(_local2.hero)) {
_local1.hit(_local2.hero_power);
}
} else if (_local2.hero.MyState != 4) {
_local1.hit(_local2.hero_power);
}
}
if (_local1.hitTest(_local1._parent.arrow1) == true) {
if (_local1.hitzone == true) {
if (_local1._parent.arrow1.hitTest(_local1.hitarea)) {
_local1.hit(_local2.hero_power);
_local1._parent.arrow1.hit();
} else {
_local1._parent.arrow1.hit();
}
} else {
_local1.hit(_local2.hero_power);
_local1._parent.arrow1.hit();
}
}
}
_local1.movements.gotoAndPlay(_local1.action);
if (_local1.trackGround == true) {
_local1.mv = _local2.En_hitcheck(_local1._name);
}
_local1._y = _local1._y + _local1.mv;
if (_local1.attacking == true) {
if (_local1.ranged == false) {
_local1.action = "attack";
if ((_local1.myX < (_local1.heroX - 30)) or (_local1.myX > (_local1.heroX + 30))) {
if (((_local1._x - ((_local1.speed * _local1.dir) * 2)) < _local1.RLim) and ((_local1._x - ((_local1.speed * _local1.dir) * 2)) > _local1.Llim)) {
_local1._x = _local1._x - ((_local1.speed * _local1.dir) * 2);
}
}
} else {
_local1.action = "sattack";
}
} else {
if (_local1._x > _local1.Rlim) {
_local1.pauseCnt = _local1.pauseCnt + 1;
if (_local1.pauseCnt < _local1.pauseTime) {
_local1.action = "stand";
} else {
_local1.pauseCnt = 0;
_local1.dir = 1;
_local1.action = "walk";
_local1._x = _local1.Rlim - 2;
}
} else if (_local1._x < _local1.Llim) {
_local1.pauseCnt = _local1.pauseCnt + 1;
if (_local1.pauseCnt < _local1.pauseTime) {
_local1.action = "stand";
} else {
_local1.pauseCnt = 0;
_local1.dir = -1;
_local1.action = "walk";
_local1._x = _local1.Llim + 2;
}
} else {
_local1._x = _local1._x - (_local1.speed * _local1.dir);
_local1.action = "walk";
}
if ((_local2.hero.die == false) and (_local2.hero.hurt == false)) {
trace((((_local1.GRlim + "/") + _local1.heroX) + "/") + _local1.GRlim);
if ((((_local1.heroY < (_local1.myY + 35)) and (_local1.heroY > (_local1.myY - _local1._height))) and (_local1.heroX < _local1.GRlim)) and (_local1.heroX > _local1.GLlim)) {
_local1.attacking = true;
_local1.ranged = false;
if (_local1.heroX < _local1.myX) {
_local1.dir = 1;
} else {
_local1.dir = -1;
}
} else if (_local1.rangedAttack == true) {
if ((((_local1.heroY < (_local1.myY + 35)) and (_local1.heroY > (_local1.myY - _local1._height))) and (_local1.heroX < _local1.GRlim)) and (_local1.heroX > _local1.GLlim)) {
_local1.attacking = true;
_local1.ranged = true;
if (_local1.heroX < _local1.myX) {
_local1.dir = 1;
} else {
_local1.dir = -1;
}
}
}
}
}
_local1._xscale = _local1.orgx * _local1.dir;
} else if (_local1.life > 0) {
_local1.action = "hurt";
} else {
_local1.action = "die";
}
_local1.movements.gotoAndStop(_local1.action);
} else if (_local1.die == false) {
_local1.movements.gotoAndStop("stand");
}
}
Symbol 1065 MovieClip Frame 2
stop();
Instance of Symbol 1065 MovieClip in Symbol 1066 MovieClip Frame 1
onClipEvent (enterFrame) {
animate();
}
Symbol 1066 MovieClip Frame 2
stop();
Instance of Symbol 1010 MovieClip "floor" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 141 MovieClip in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
nextlevel = _root.nextLevel;
Mytarget = "nextlevel";
}
onClipEvent (enterFrame) {
if (_root.totemOn == true) {
if ((_root.hero.sattack == false) and ((_root.hero.action == "run") or (_root.hero.action == "stand"))) {
if (_root.hero.hitTest(this)) {
if (_root.paused == false) {
_root.paused = true;
_root.transition.target = Mytarget;
_root.level = nextlevel;
_root.panels.timer.bar.countBonus = true;
}
}
}
}
}
Instance of Symbol 185 MovieClip "enemy1" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 6;
distance = 500;
pauseTime = 20;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 188 MovieClip "en_bullet" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function fire(xloc, yloc, dir, speed, type, movement, power) {
cnt = cnt + 1;
bulletName = "bullet" + cnt;
duplicateMovieClip (this, "bullet" + cnt, cnt);
eval ("_parent." + bulletName).myspeed = speed * (-dir);
eval ("_parent." + bulletName).mytype = type;
eval ("_parent." + bulletName).dir = -dir;
eval ("_parent." + bulletName)._x = xloc;
eval ("_parent." + bulletName)._y = yloc;
eval ("_parent." + bulletName).power = power;
eval ("_parent." + bulletName).movement = movement;
eval ("_parent." + bulletName).Flying = true;
}
function hit() {
Flying = false;
_x = 1000;
_y = -1000;
removeMovieClip(this);
}
cnt = 100;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
if (Flying == true) {
_xscale = (dir * 100);
gotoAndStop(mytype);
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myX = point.x;
myY = point.y;
_x = (_x + myspeed);
if (movement == "ground") {
mv = _root.En_hitcheck(_name);
_y = (_y + mv);
}
if (this.hitTest(_root.hero)) {
_root.hero.hit(myX, power);
hit();
}
if ((myX > (_root.stageW + 20)) or (myX < -20)) {
hit();
}
}
}
}
Instance of Symbol 277 MovieClip "enemy3" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = true;
speed = 4;
distance = 75;
pauseTime = 35;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 277 MovieClip "enemy6" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = true;
speed = 6;
distance = 350;
pauseTime = 25;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 277 MovieClip "enemy5" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = false;
speed = 3;
distance = 150;
pauseTime = 25;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 277 MovieClip "enemy7" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy1ShotPower;
life = _root.enemy1Life;
handDamage = _root.enemy1HitPower;
points = _root.enemy1PointsAwarded;
trackGround = true;
handRange = 65;
walks = false;
speed = 5;
distance = 250;
pauseTime = 20;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy2" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 5;
distance = 400;
pauseTime = 45;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy11" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = false;
speed = 4;
distance = 250;
pauseTime = 35;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy12" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = true;
speed = 7;
distance = 600;
pauseTime = 15;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy9" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 7;
distance = 300;
pauseTime = 10;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy10" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 7;
distance = 300;
pauseTime = 29;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy8" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = false;
speed = 6;
distance = 150;
pauseTime = 15;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy4" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = true;
speed = 6;
distance = 350;
pauseTime = 40;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy1b" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 6;
distance = 500;
pauseTime = 10;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 185 MovieClip "enemy9b" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy2ShotPower;
life = _root.enemy2Life;
handDamage = _root.enemy2HitPower;
points = _root.enemy2PointsAwarded;
trackGround = false;
handRange = 60;
walks = true;
speed = 7;
distance = 300;
pauseTime = 15;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 333 MovieClip "enemy8b" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.enemy3ShotPower;
life = _root.enemy3Life;
handDamage = _root.enemy3HitPower;
points = _root.enemy3PointsAwarded;
trackGround = true;
handRange = 90;
walks = true;
speed = 6;
distance = 150;
pauseTime = 15;
startDirection = "right";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 1066 MovieClip "boss" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function hit(power) {
if (die == false) {
life = life - power;
die = true;
}
}
firePower = _root.BossPower;
life = _root.BossLife;
handDamage = _root.BossPower;
points = _root.BossPointsAwarded;
trackGround = true;
handRange = 150;
walks = true;
speed = 15;
distance = 200;
pauseTime = 45;
startDirection = "left";
rangedAttack = false;
fireRange = 300;
fireSpeed = 40;
fireType = "glowball";
fireMovement = "air";
fireXoffset = 40;
fireYoffset = 63;
pauseCnt = 0;
if (walks == false) {
distance = 1;
speed = 1;
}
Rlim = _x + (distance * 0.5);
Llim = _x - (distance * 0.5);
orgx = _xscale;
if (startDirection == "right") {
dir = -1;
} else {
dir = 1;
}
ymv = 0;
die = false;
action = "stand";
attacking = false;
ranged = false;
hitting = false;
}
Instance of Symbol 336 MovieClip "arrow1" in Symbol 1067 MovieClip Frame 1
onClipEvent (load) {
function fire(xloc, yloc, dir, fireT) {
firetype = fireT;
myspeed = _root.hero_shot1Speed * (-dir);
_xscale = (xsorg * (-dir));
point = new Object();
point.x = xloc;
point.y = yloc;
_parent.globalToLocal(point);
_x = point.x;
_y = point.y;
gotoAndPlay (1);
Flying = true;
}
function hit() {
Flying = false;
_x = 1000;
_y = -1000;
}
Flying = false;
xsorg = _xscale;
cnt = 20;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
if (Flying == true) {
sym.gotoAndStop(firetype);
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
myX = point.x;
myY = point.y;
_x = (_x + myspeed);
if ((myX > 570) or (myX < -20)) {
hit();
}
}
}
}
Symbol 1067 MovieClip Frame 2
stop();