Frame 1
varJumpAttack2 = true;
varJumpAttack = true;
varScroll = true;
varBottom = true;
varLR = "RIGHT";
varDead = false;
varReady = true;
varJump = false;
varHealth = 100;
varRight = true;
varLeft = true;
varPoints = 0;
varTop = true;
varTime = 200;
varS1 = false;
varS2 = false;
varLife = 3;
varMove = 5;
intHit = 1;
Frame 2
stop();
Frame 3
mouse.hide();
Instance of Symbol 46 MovieClip "bk1" in Frame 3
on (keyPress "a") {
if (_level0.varJump && (_level0.varJumpAttack)) {
_root.wolvie.jump.body.gotoAndStop(2);
_level0.varJumpAttack = false;
checkBreak();
checkItems();
}
if (_level0.varReady) {
checkBreak();
checkItems();
_level0.varReady = false;
_root.wolvie.gotoAndStop((_level0.varLR + "-PUNCH") + _level0.intHit);
_level0.intHit = _level0.intHit + 1;
if (_level0.intHit > 3) {
_level0.intHit = 1;
}
}
}
on (keyPress "d") {
if (_level0.varJump && (_level0.varJumpAttack2)) {
_root.wolvie.jump.body.gotoAndStop(3);
_level0.varJumpAttack2 = false;
checkBreak();
checkItems();
}
if (_level0.varReady) {
checkBreak();
checkItems();
_level0.varReady = false;
_root.wolvie.gotoAndStop((_level0.varLR + "-KICK") + _level0.intHit);
_level0.intHit = _level0.intHit + 1;
if (_level0.intHit > 3) {
_level0.intHit = 1;
}
}
}
on (keyPress "s") {
if (_level0.varReady) {
_level0.varReady = false;
_level0.varJump = true;
_root.wolvie.gotoAndStop(_level0.varLR + "-JUMP");
}
}
on (keyPress "<Right>") {
_level0.varLR = "RIGHT";
if (((_root.wolvie._x + 5) < 550) && (checkRight())) {
if (_level0.varReady) {
_level0.varReady = false;
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
}
if (((_root.wolvie._x < 250) || (_level0.varScroll == false)) || ((_root.bk1._x - 5) < 75)) {
_root.wolvie._x = _root.wolvie._x + 5;
}
}
if ((((_root.bk1._x - 5) > 75) && (checkRight())) && (_root.wolvie._x > 250)) {
moveRight();
} else if (checkRight() && (_root.wolvie._x > 250)) {
moveRightOff(_root.bk1._x - 75);
_root.bk1._x = 75;
}
}
on (keyPress "<Left>") {
_level0.varLR = "LEFT";
if (((_root.wolvie._x - 5) > 100) && (checkLeft())) {
if (_level0.varReady) {
_level0.varReady = false;
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
}
if (((_root.wolvie._x > 250) || (_level0.varScroll == false)) || ((_root.bk1._x + 5) > 1813)) {
_root.wolvie._x = _root.wolvie._x - 5;
}
}
if ((((_root.bk1._x + 5) < 1813) && (checkLeft())) && (_root.wolvie._x < 250)) {
moveLeft();
} else if (checkLeft() && (_root.wolvie._x < 250)) {
moveLeftOff(1813 - _root.bk1._x);
_root.bk1._x = 1813;
}
}
on (keyPress "<Down>") {
if (_level0.varReady) {
if (checkBottom()) {
_root.wolvie._y = _root.wolvie._y + 5;
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
}
if ((_root.bk1._y - 5) > 138.1) {
moveDown();
if (checkBottom() == false) {
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
}
} else {
moveDownOff(_root.bk1._y - 138.1);
_root.bk1._y = 138.1;
}
}
}
on (keyPress "<Up>") {
if (_level0.varReady) {
if (checkTop()) {
_root.wolvie._y = _root.wolvie._y - 5;
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
}
if ((_root.bk1._y + 5) < 262.1) {
moveUp();
} else {
moveUpOff(262.1 - _root.bk1._y);
_root.bk1._y = 262.1;
}
}
}
Frame 48
intPnl = 1;
_level0.varScroll = false;
intObj = 0;
intItm = 0;
intBrk = 0;
intP1E = 0;
intP2E = 0;
intP3E = 0;
intTop = 0;
intBot = 0;
intLft = 0;
intRgt = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 3)) == "obj")) {
_root.intObj++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "item")) {
_root.intItm++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "break")) {
_root.intBrk++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "p1e-")) {
_root.intP1E++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "p2e-")) {
_root.intP2E++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "p3e-")) {
_root.intP3E++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "left")) {
_root.intLft++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "right")) {
_root.intRgt++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 3)) == "top")) {
_root.intTop++;
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 6)) == "bottom")) {
_root.intBot++;
}
}
stop();
Instance of Symbol 448 MovieClip "wolvie" in Frame 48
onClipEvent (enterFrame) {
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
if (this.hitTest(obj)) {
if (this._y < obj._y) {
this.swapDepths(obj.getDepth() - 1);
} else {
this.swapDepths(obj.getDepth() + 1);
}
}
i++;
}
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
if (this.hitTest(obj)) {
if (this._y < obj._y) {
this.swapDepths(obj.getDepth() - 1);
} else {
this.swapDepths(obj.getDepth() + 1);
}
}
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
if (this.hitTest(obj)) {
if (this._y < obj._y) {
this.swapDepths(obj.getDepth() - 1);
} else {
this.swapDepths(obj.getDepth() + 1);
}
}
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
if (this.hitTest(obj)) {
if (this._y < obj._y) {
this.swapDepths(obj.getDepth() - 1);
} else {
this.swapDepths(obj.getDepth() + 1);
}
}
i++;
}
}
Instance of Symbol 449 MovieClip "bk1" in Frame 48
onClipEvent (enterFrame) {
if ((_level0.varS1 == false) && (this._x < 1363)) {
_level0.varS1 = true;
_level0.varScroll = false;
}
if ((_level0.varS2 == false) && (this._x < 863)) {
_level0.varS2 = true;
_level0.varScroll = false;
}
if (_level0.varScroll == false) {
_level0.varMove = 15;
} else {
_level0.varMove = 10;
}
setProperty("_root.meter-1", _xscale , _root.varHealth);
if (_level0.varHealth == 0) {
_root.wolvie.gotoAndPlay(_level0.varLR + "-DIE");
_level0.varDead = true;
}
x = 0;
while (x < eval (("_root.intP" + _root.intPnl) + "E")) {
objE = eval ((("_root.p" + _root.intPnl) + "e-") + x);
if (objE.hitTest(_root.wolvie) != true) {
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
if (objE.hitTest(obj)) {
if (objE._y < obj._y) {
objE.swapDepths(obj.getDepth() - 1);
} else {
objE.swapDepths(obj.getDepth() + 1);
}
}
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
if (objE.hitTest(obj)) {
if (objE._y < obj._y) {
objE.swapDepths(obj.getDepth() - 1);
} else {
objE.swapDepths(obj.getDepth() + 1);
}
}
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
if (objE.hitTest(obj)) {
if (objE._y < obj._y) {
objE.swapDepths(obj.getDepth() - 1);
} else {
objE.swapDepths(obj.getDepth() + 1);
}
}
i++;
}
}
x++;
}
if (_level0.varDead == false) {
render();
}
}
onClipEvent (keyDown) {
_root.varKey = Key.getCode();
}
Frame 49
gotoAndPlay (50);
Frame 50
mouse.show();
stop();
Symbol 5 Button
on (release) {
getURL ("http://www.wolviex.com", "_blank", "GET");
}
Symbol 12 MovieClip Frame 10
gotoAndPlay (1);
Symbol 17 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
varSize = _root.getBytesTotal() / 1000000;
varFileSize = Math.round(varSize, 1) + " MG";
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
PercentLoadedTXT = Math.round(PercentLoaded) + "%";
} else {
gotoAndStop (3);
}
Symbol 17 MovieClip Frame 2
gotoAndPlay (1);
Symbol 17 MovieClip Frame 3
_root.play();
Symbol 26 Button
on (release) {
stopAllSounds();
_root.play();
}
Symbol 28 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 1
_level0.varReady = true;
Symbol 53 MovieClip Frame 6
_level0.varReady = true;
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 64 MovieClip Frame 15
if (_level0.varTime > 0) {
_level0.varTime = _level0.varTime - 1;
}
if (_level0.varTime == 0) {
_level0.varHealth = 0;
}
gotoAndPlay (1);
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
_level0.varScroll = true;
Symbol 68 MovieClip Frame 25
_level0.varScroll = true;
Symbol 68 MovieClip Frame 49
_level0.varScroll = true;
gotoAndPlay (1);
Symbol 73 MovieClip Frame 4
this._y = -1000;
Symbol 82 MovieClip Frame 4
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 13
_level0.varPoints = _level0.varPoints + 150;
this.varDead = true;
stop();
Symbol 88 MovieClip Frame 1
stop();
Instance of Symbol 87 MovieClip in Symbol 88 MovieClip Frame 1
/* no clip actions */
Symbol 88 MovieClip Frame 12
_level0.varPoints = _level0.varPoints + 500;
this.varDead = true;
stop();
Symbol 99 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip in Symbol 99 MovieClip Frame 2
/* no clip actions */
Symbol 99 MovieClip Frame 11
_level0.varPoints = _level0.varPoints + 200;
if ((_level0.varHealth + 25) < 100) {
_level0.varHealth = _level0.varHealth + 25;
} else {
_level0.varHealth = 100;
}
this.varDead = true;
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 11
_level0.varPoints = _level0.varPoints + 200;
if ((_level0.varHealth + 50) < 100) {
_level0.varHealth = _level0.varHealth + 50;
} else {
_level0.varHealth = 100;
}
this.varDead = true;
stop();
Symbol 111 MovieClip Frame 10
this._y = -1000;
Symbol 123 MovieClip Frame 5
this._y = -1000;
Symbol 137 MovieClip Frame 1
this._parent.varBusy = true;
Symbol 137 MovieClip Frame 4
this._parent.gotoAndPlay("STAND-" + this._parent.varLR);
Symbol 145 MovieClip Frame 1
this._parent.varBusy = true;
Symbol 145 MovieClip Frame 5
this._parent.gotoAndPlay("STAND-" + this._parent.varLR);
Symbol 147 MovieClip Frame 5
this._parent.varBusy = false;
Symbol 158 MovieClip Frame 10
this._parent.varDead = true;
stop();
Symbol 159 MovieClip Frame 1
this.varBusy = false;
stop();
Symbol 159 MovieClip Frame 11
this.varBusy = false;
stop();
Symbol 159 MovieClip Frame 29
this.gotoAndPlay("STAND-RIGHT");
Symbol 159 MovieClip Frame 40
this.gotoAndPlay("STAND-LEFT");
Symbol 159 MovieClip Frame 41
stop();
Symbol 159 MovieClip Frame 50
stop();
Symbol 159 MovieClip Frame 60
stop();
Symbol 159 MovieClip Frame 70
stop();
Symbol 159 MovieClip Frame 80
this.varBusy = true;
this._x = this._x - 10;
_level0.varPoints = _level0.varPoints + 25;
this.varHit = this.varHit + 1;
if (this.varHit > 5) {
this.gotoAndPlay("DIE-RIGHT");
}
Symbol 159 MovieClip Frame 89
this.varBusy = false;
this.gotoAndPlay("STAND-RIGHT");
Symbol 159 MovieClip Frame 90
this.varBusy = true;
this._x = this._x + 10;
_level0.varPoints = _level0.varPoints + 25;
this.varHit = this.varHit + 1;
if (this.varHit > 5) {
this.gotoAndPlay("DIE-LEFT");
}
Symbol 159 MovieClip Frame 98
this.varBusy = false;
this.gotoAndPlay("STAND-LEFT");
Symbol 159 MovieClip Frame 99
this.varBusy = true;
_level0.varPoints = _level0.varPoints + 100;
stop();
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 99
/* no clip actions */
Symbol 159 MovieClip Frame 100
this.varBusy = true;
_level0.varPoints = _level0.varPoints + 100;
stop();
Symbol 170 MovieClip Frame 1
this._parent.varBusy = true;
Symbol 170 MovieClip Frame 3
this._parent.gotoAndPlay("STAND-" + this._parent.varLR);
Symbol 177 MovieClip Frame 1
this._parent.varBusy = true;
Symbol 177 MovieClip Frame 6
this._parent.gotoAndPlay("STAND-" + this._parent.varLR);
Symbol 180 MovieClip Frame 5
this._parent.varBusy = false;
Symbol 186 MovieClip Frame 6
this._parent.varDead = true;
stop();
Symbol 187 MovieClip Frame 1
this.varBusy = false;
stop();
Symbol 187 MovieClip Frame 11
this.varBusy = false;
stop();
Symbol 187 MovieClip Frame 29
this.gotoAndPlay("STAND-RIGHT");
Symbol 187 MovieClip Frame 40
this.gotoAndPlay("STAND-LEFT");
Symbol 187 MovieClip Frame 41
stop();
Symbol 187 MovieClip Frame 50
stop();
Symbol 187 MovieClip Frame 60
stop();
Symbol 187 MovieClip Frame 70
stop();
Symbol 187 MovieClip Frame 80
this.varBusy = true;
this._x = this._x - 10;
_level0.varPoints = _level0.varPoints + 25;
this.varHit = this.varHit + 1;
if (this.varHit > 5) {
this.gotoAndPlay("DIE-RIGHT");
}
Symbol 187 MovieClip Frame 89
this.varBusy = false;
this.gotoAndPlay("STAND-RIGHT");
Symbol 187 MovieClip Frame 90
this.varBusy = true;
this._x = this._x + 10;
_level0.varPoints = _level0.varPoints + 25;
this.varHit = this.varHit + 1;
if (this.varHit > 5) {
this.gotoAndPlay("DIE-LEFT");
}
Symbol 187 MovieClip Frame 98
this.varBusy = false;
this.gotoAndPlay("STAND-LEFT");
Symbol 187 MovieClip Frame 99
this.varBusy = true;
_level0.varPoints = _level0.varPoints + 100;
stop();
Instance of Symbol 186 MovieClip in Symbol 187 MovieClip Frame 99
/* no clip actions */
Symbol 187 MovieClip Frame 100
this.varBusy = true;
_level0.varPoints = _level0.varPoints + 100;
stop();
Symbol 197 MovieClip Frame 1
this._parent.varBusy = true;
Symbol 197 MovieClip Frame 3
this._parent.gotoAndPlay("STAND-" + this._parent.varLR);
Symbol 203 MovieClip Frame 1
this._parent.varBusy = true;
Symbol 203 MovieClip Frame 6
this._parent.gotoAndPlay("STAND-" + this._parent.varLR);
Symbol 205 MovieClip Frame 5
this._parent.varBusy = false;
Symbol 209 MovieClip Frame 8
this._parent.varDead = true;
stop();
Symbol 210 MovieClip Frame 1
this.varBusy = false;
stop();
Symbol 210 MovieClip Frame 11
this.varBusy = false;
stop();
Symbol 210 MovieClip Frame 29
this.gotoAndPlay("STAND-RIGHT");
Symbol 210 MovieClip Frame 40
this.gotoAndPlay("STAND-LEFT");
Symbol 210 MovieClip Frame 41
stop();
Symbol 210 MovieClip Frame 50
stop();
Symbol 210 MovieClip Frame 60
stop();
Symbol 210 MovieClip Frame 70
stop();
Symbol 210 MovieClip Frame 80
this.varBusy = true;
this._x = this._x - 10;
_level0.varPoints = _level0.varPoints + 25;
this.varHit = this.varHit + 1;
if (this.varHit > 5) {
this.gotoAndPlay("DIE-RIGHT");
}
Symbol 210 MovieClip Frame 89
this.varBusy = false;
this.gotoAndPlay("STAND-RIGHT");
Symbol 210 MovieClip Frame 90
this.varBusy = true;
this._x = this._x + 10;
_level0.varPoints = _level0.varPoints + 25;
this.varHit = this.varHit + 1;
if (this.varHit > 5) {
this.gotoAndPlay("DIE-LEFT");
}
Symbol 210 MovieClip Frame 98
this.varBusy = false;
this.gotoAndPlay("STAND-LEFT");
Symbol 210 MovieClip Frame 99
this.varBusy = true;
_level0.varPoints = _level0.varPoints + 100;
stop();
Instance of Symbol 209 MovieClip in Symbol 210 MovieClip Frame 99
/* no clip actions */
Symbol 210 MovieClip Frame 100
this.varBusy = true;
_level0.varPoints = _level0.varPoints + 100;
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 11
_root.item3._x = this._x - 125;
_root.item3._y = this._y - 5;
_level0.varPoints = _level0.varPoints + 1000;
this.varDead = true;
stop();
Symbol 229 MovieClip Frame 4
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 11
_root.item2._x = this._x - 75;
_root.item2._y = this._y - 25;
_level0.varPoints = _level0.varPoints + 100;
this.varDead = true;
stop();
Symbol 274 MovieClip Frame 17
gotoAndPlay (1);
Symbol 274 MovieClip Frame 26
this._x = -1000;
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 10
_root.item1._x = this._x - 50;
_root.item1._y = this._y - 50;
_level0.varPoints = _level0.varPoints + 200;
this.varDead = true;
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 10
_root.item0._x = this._x - 50;
_root.item0._y = this._y - 25;
_level0.varPoints = _level0.varPoints + 200;
this.varDead = true;
stop();
Symbol 288 MovieClip Frame 3
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 305 MovieClip Frame 5
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 335 MovieClip Frame 12
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 351 MovieClip Frame 6
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 368 MovieClip Frame 5
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 396 MovieClip Frame 12
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 404 MovieClip Frame 2
stop();
Symbol 414 MovieClip Frame 3
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
stop();
Symbol 415 MovieClip Frame 3
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 2
stop();
Symbol 417 MovieClip Frame 3
stop();
Symbol 419 MovieClip Frame 16
_level0.varJump = false;
_level0.varJumpAttack = true;
_level0.varJumpAttack2 = true;
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 421 MovieClip Frame 5
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 425 MovieClip Frame 2
_level0.varLife--;
Symbol 425 MovieClip Frame 10
if (_level0.varLife > 0) {
_level0.varHealth = 100;
_root.wolvie.gotoAndPlay(_level0.varLR + "-RESPAWN");
} else {
stopAllSounds();
_root.play();
}
Symbol 425 MovieClip Frame 11
stop();
Symbol 447 MovieClip Frame 1
if (_level0.varTime == 0) {
_level0.varTime = 60;
}
Symbol 447 MovieClip Frame 14
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
if (obj.varDead != true) {
obj.gotoAndPlay("HIT-" + obj.varLR);
}
i++;
}
_level0.varDead = false;
_level0.varReady = true;
_root.wolvie.gotoAndPlay(_level0.varLR + "-STAND");
stop();
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 12
stop();
Symbol 448 MovieClip Frame 22
stop();
Symbol 448 MovieClip Frame 32
stop();
Symbol 448 MovieClip Frame 40
stop();
Symbol 448 MovieClip Frame 51
stop();
Symbol 448 MovieClip Frame 61
stop();
Symbol 448 MovieClip Frame 72
stop();
Symbol 448 MovieClip Frame 82
stop();
Symbol 448 MovieClip Frame 93
stop();
Symbol 448 MovieClip Frame 103
stop();
Symbol 448 MovieClip Frame 114
stop();
Symbol 448 MovieClip Frame 124
stop();
Symbol 448 MovieClip Frame 135
stop();
Symbol 448 MovieClip Frame 145
stop();
Symbol 448 MovieClip Frame 156
stop();
Symbol 448 MovieClip Frame 166
stop();
Symbol 448 MovieClip Frame 176
stop();
Symbol 448 MovieClip Frame 185
if ((_root.wolvie._x - 10) > 50) {
this._x = this._x - 10;
}
_level0.varHealth = _level0.varHealth - 10;
Symbol 448 MovieClip Frame 188
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 448 MovieClip Frame 189
if ((_root.wolvie._x + 10) < 550) {
this._x = this._x + 10;
}
_level0.varHealth = _level0.varHealth - 10;
Symbol 448 MovieClip Frame 192
_root.wolvie.gotoAndStop(_level0.varLR + "-STAND");
Symbol 448 MovieClip Frame 193
stop();
Symbol 448 MovieClip Frame 202
stop();
Symbol 448 MovieClip Frame 211
stop();
Symbol 448 MovieClip Frame 223
stop();
Symbol 449 MovieClip Frame 1
function checkLeft(obj) {
i = 0;
while (i < _root.intRgt) {
if (obj.hitTest(eval ("_root.right" + i))) {
return(false);
}
i++;
}
return(true);
}
function checkRight(obj) {
i = 0;
while (i < _root.intLft) {
if (obj.hitTest(eval ("_root.left" + i))) {
return(false);
}
i++;
}
return(true);
}
function checkTop(obj) {
i = 0;
while (i < _root.intTop) {
if (obj.hitTest(eval ("_root.top" + i))) {
return(false);
}
i++;
}
return(true);
}
function checkBottom(obj) {
i = 0;
while (i < _root.intBot) {
if (obj.hitTest(eval ("_root.bottom" + i))) {
return(false);
}
i++;
}
return(true);
}
function moveLeft() {
if (_level0.varScroll) {
_root.bk1._x = _root.bk1._x + _level0.varMove;
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._x = obj._x + _level0.varMove;
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._x = obj._x + _level0.varMove;
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._x = obj._x + _level0.varMove;
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._x = obj._x + _level0.varMove;
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._x = obj._x + _level0.varMove;
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._x = obj._x + _level0.varMove;
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._x = obj._x + _level0.varMove;
i++;
}
}
}
function moveLeftOff(x) {
if (_level0.varScroll) {
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._x = obj._x + x;
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._x = obj._x + x;
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._x = obj._x + x;
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._x = obj._x + x;
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._x = obj._x + x;
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._x = obj._x + x;
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._x = obj._x + x;
i++;
}
}
}
function moveRight() {
if (_level0.varScroll) {
_root.bk1._x = _root.bk1._x - _level0.varMove;
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._x = obj._x - _level0.varMove;
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._x = obj._x - _level0.varMove;
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._x = obj._x - _level0.varMove;
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._x = obj._x - _level0.varMove;
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._x = obj._x - _level0.varMove;
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._x = obj._x - _level0.varMove;
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._x = obj._x - _level0.varMove;
i++;
}
}
}
function moveRightOff(x) {
if (_level0.varScroll) {
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._x = obj._x - x;
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._x = obj._x - x;
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._x = obj._x - x;
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._x = obj._x - x;
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._x = obj._x - x;
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._x = obj._x - x;
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._x = obj._x - x;
i++;
}
}
}
function moveUp() {
_root.bk1._y = _root.bk1._y + (_level0.varMove - 10);
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._y = obj._y + (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._y = obj._y + (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._y = obj._y + (_level0.varMove - 10);
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._y = obj._y + (_level0.varMove - 10);
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._y = obj._y + (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._y = obj._y + (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._y = obj._y + (_level0.varMove - 10);
i++;
}
}
function moveUpOff(y) {
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._y = obj._y + y;
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._y = obj._y + y;
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._y = obj._y + y;
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._y = obj._y + y;
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._y = obj._y + y;
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._y = obj._y + y;
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._y = obj._y + y;
i++;
}
}
function moveDown() {
_root.bk1._y = _root.bk1._y - (_level0.varMove - 10);
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._y = obj._y - (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._y = obj._y - (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._y = obj._y - (_level0.varMove - 10);
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._y = obj._y - (_level0.varMove - 10);
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._y = obj._y - (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._y = obj._y - (_level0.varMove - 10);
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._y = obj._y - (_level0.varMove - 10);
i++;
}
}
function moveDownOff(y) {
i = 0;
while (i < _root.intObj) {
obj = eval ("_root.obj" + i);
obj._y = obj._y - y;
i++;
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
obj._y = obj._y - y;
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
obj._y = obj._y - y;
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
obj._y = obj._y - y;
}
i++;
}
i = 0;
while (i < _root.intLft) {
obj = eval ("_root.left" + i);
obj._y = obj._y - y;
i++;
}
i = 0;
while (i < _root.intRgt) {
obj = eval ("_root.right" + i);
obj._y = obj._y - y;
i++;
}
i = 0;
while (i < _root.intTop) {
obj = eval ("_root.top" + i);
obj._y = obj._y - y;
i++;
}
}
function render() {
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
if (obj.varDead == true) {
unloadMovie (obj);
}
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
if (obj.varDead == true) {
unloadMovie (obj);
}
i++;
}
varNext = true;
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
if (obj.varDead != true) {
varNext = false;
}
i++;
}
if (varNext == true) {
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
if (_level0.varScroll == false) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
if (obj.varDead == true) {
unloadMovie (obj);
}
}
i++;
}
if (_root.intPnl < 4) {
_root.goarrow.gotoAndPlay("CLEAR");
_root.intPnl++;
}
}
if (_level0.varReady) {
if ((Key.isDown(39) && ((_root.wolvie._x + _level0.varMove) < 550)) && (checkRight(_root.wolvie))) {
_level0.varLR = "RIGHT";
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
if (((_root.wolvie._x < 250) || (_level0.varScroll == false)) || ((_root.bk1._x - _level0.varMove) < 75)) {
_root.wolvie._x = _root.wolvie._x + _level0.varMove;
}
if ((((_root.bk1._x - _level0.varMove) > 75) && (checkRight())) && (_root.wolvie._x > 250)) {
moveRight();
} else if (checkRight() && (_root.wolvie._x > 250)) {
moveRightOff(_root.bk1._x - 75);
_root.bk1._x = 75;
}
}
if ((Key.isDown(37) && ((_root.wolvie._x - _level0.varMove) > 100)) && (checkLeft(_root.wolvie))) {
_level0.varLR = "LEFT";
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
if (((_root.wolvie._x > 250) || (_level0.varScroll == false)) || ((_root.bk1._x + _level0.varMove) > 1813)) {
_root.wolvie._x = _root.wolvie._x - _level0.varMove;
}
if ((((_root.bk1._x + _level0.varMove) < 1813) && (checkLeft())) && (_root.wolvie._x < 250)) {
moveLeft();
} else if (checkLeft() && (_root.wolvie._x < 250)) {
moveLeftOff(1813 - _root.bk1._x);
_root.bk1._x = 1813;
}
}
if (Key.isDown(38) && (checkTop(_root.wolvie))) {
_root.wolvie._y = _root.wolvie._y - _level0.varMove;
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
if ((_root.bk1._y + _level0.varMove) < 262.1) {
moveUp();
} else {
moveUpOff(262.1 - _root.bk1._y);
_root.bk1._y = 262.1;
}
}
if (Key.isDown(40) && (checkBottom(_root.wolvie))) {
_root.wolvie._y = _root.wolvie._y + _level0.varMove;
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
if ((_root.bk1._y - _level0.varMove) > 138.1) {
moveDown();
if (checkBottom() == false) {
_root.wolvie.gotoAndStop(_level0.varLR + "-WALK");
}
} else {
moveDownOff(_root.bk1._y - 138.1);
_root.bk1._y = 138.1;
}
}
}
if (Key.isDown(65)) {
if (_level0.varJump && (_level0.varJumpAttack)) {
_root.wolvie.jump.body.gotoAndStop(2);
_level0.varJumpAttack = false;
}
if (_level0.varReady) {
_level0.varReady = false;
_root.wolvie.gotoAndStop((_level0.varLR + "-PUNCH") + _level0.intHit);
_level0.intHit = _level0.intHit + 1;
if (_level0.intHit > 3) {
_level0.intHit = 1;
}
}
}
if (Key.isDown(68)) {
if (_level0.varJump && (_level0.varJumpAttack2)) {
_root.wolvie.jump.body.gotoAndStop(3);
_level0.varJumpAttack2 = false;
}
if (_level0.varReady) {
_level0.varReady = false;
_root.wolvie.gotoAndStop((_level0.varLR + "-KICK") + _level0.intHit);
_level0.intHit = _level0.intHit + 1;
if (_level0.intHit > 3) {
_level0.intHit = 1;
}
}
}
if (Key.isDown(83)) {
if (_level0.varReady) {
_level0.varReady = false;
_level0.varJump = true;
_root.wolvie.gotoAndStop(_level0.varLR + "-JUMP");
}
}
if ((Key.isDown(83) && (Key.isDown(39))) && (_level0.varJump)) {
_level0.varLR = "RIGHT";
_level0.varReady = false;
if ((_root.wolvie._x + (_level0.varMove + 5)) < 500) {
_root.wolvie._x = _root.wolvie._x + (_level0.varMove + 5);
}
}
if ((Key.isDown(83) && (Key.isDown(37))) && (_level0.varJump)) {
_level0.varLR = "LEFT";
_level0.varReady = false;
if ((_root.wolvie._x - (_level0.varMove + 5)) > 100) {
_root.wolvie._x = _root.wolvie._x - (_level0.varMove + 5);
}
}
if (_level0.varScroll == false) {
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
varR1 = random(10);
if ((((_root.wolvie.hitTest(obj) && (_root.wolvie.body.claws.hitTest(_root.bk1) != true)) && (obj.varBusy != true)) && (_level0.varJump == false)) && (((_root.wolvie._y - obj._y) > 0) && ((_root.wolvie._y - obj._y) < 25))) {
if (varR1 == 0) {
obj.gotoAndPlay("PUNCH-" + obj.varLR);
}
if (varR1 == 1) {
obj.gotoAndPlay("KICK-" + obj.varLR);
}
} else if ((varR1 == 0) && (obj.varBusy != true)) {
if (obj._x < _root.wolvie._x) {
if (checkRight(obj)) {
obj.gotoAndPlay("WALK-RIGHT");
obj._x = obj._x + _level0.varMove;
obj.varLR = "RIGHT";
}
} else if (checkLeft(obj)) {
obj.gotoAndPlay("WALK-LEFT");
obj._x = obj._x - _level0.varMove;
obj.varLR = "LEFT";
}
if ((obj._y < _root.wolvie._y) && (checkBottom(obj))) {
obj._y = obj._y + _level0.varMove;
} else if (checkTop(obj)) {
obj._y = obj._y - _level0.varMove;
}
}
i++;
}
}
i = 0;
while (i < _root.intItm) {
obj = eval ("_root.item" + i);
if (_root.wolvie.body.claws.hitTest(_root.bk1) && (_root.wolvie.hitTest(obj))) {
tmp1 = (_root.wolvie._y + _root.wolvie._height) - 200;
tmp2 = obj._y + obj._height;
if ((tmp1 < tmp2) && (obj.varGot != true)) {
obj.varGot = true;
obj.gotoAndPlay("CLEAR");
if (_level0.varLR == "RIGHT") {
obj._x = obj._x + 25;
obj._y = obj._y - 25;
_root.pow._x = obj._x;
_root.pow._y = obj._y;
} else {
obj._x = obj._x - 25;
obj._y = obj._y - 25;
_root.pow._x = obj._x;
_root.pow._y = obj._y;
}
}
}
i++;
}
i = 0;
while (i < _root.intBrk) {
obj = eval ("_root.break" + i);
if (_root.wolvie.body.claws.hitTest(obj) || (_root.wolvie.jump.body.bones.claws.hitTest(obj))) {
tmp1 = (_root.wolvie._y + _root.wolvie._height) - 100;
tmp2 = obj._y + obj._height;
if ((tmp1 < tmp2) && (obj.varGot != true)) {
obj.varGot = true;
obj.gotoAndPlay("CLEAR");
if (_level0.varLR == "RIGHT") {
obj._x = obj._x + 25;
obj._y = obj._y - 25;
_root.pow._x = obj._x;
_root.pow._y = obj._y;
} else {
obj._x = obj._x - 25;
obj._y = obj._y - 25;
_root.pow._x = obj._x;
_root.pow._y = obj._y;
}
}
}
i++;
}
if (_level0.varScroll == false) {
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
if ((_root.wolvie.body.claws.hitTest(obj) || (_root.wolvie.jump.body.bones.claws.hitTest(obj))) && (obj.varBusy == false)) {
obj.gotoAndPlay("HIT-" + obj.varLR);
tmp1 = (_root.wolvie._y + _root.wolvie._height) - 100;
tmp2 = obj._y + obj._height;
if (tmp1 < tmp2) {
varR1 = random(2);
if (varR1 == 0) {
_root.blam._x = obj._x - 50;
_root.blam._y = obj._y - 100;
} else {
_root.blood._x = obj._x - 50;
_root.blood._y = obj._y - 100;
}
}
}
i++;
}
i = 0;
while (i < eval (("_root.intP" + _root.intPnl) + "E")) {
obj = eval ((("_root.p" + _root.intPnl) + "e-") + i);
if (_root.wolvie.hitTest(obj.body.hit)) {
_root.wolvie.gotoAndPlay(_level0.varLR + "-HIT");
varR1 = random(2);
if (varR1 == 0) {
_root.blam._x = _root.wolvie._x - 50;
_root.blam._y = _root.wolvie._y - 100;
} else {
_root.blood._x = _root.wolvie._x - 50;
_root.blood._y = _root.wolvie._y - 100;
}
}
i++;
}
}
}