Frame 1
stop();
Frame 2
_root.WPI_ArcadeStartSingleGame = function () {
trace("WPI_ArcadeStartSingleGame called - the current game has started");
};
_root.WPI_ArcadeStopSingleGame = function (score) {
trace("WPI_ArcadeStopSingleGame called - the current game has finished with score: " + score);
};
stop();
Symbol 53 MovieClip [fps] Frame 1
fps = 25;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
var _local1 = new Date();
timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed) / 10;
lasttime = _local1.getMilliseconds();
};
Symbol 55 MovieClip [Class_Particle_Enemy] Frame 1
function onEnterFrame() {
if (_alpha > 0) {
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed++;
xSpeed = xSpeed / 1.05;
_alpha = (_alpha - 2);
_rotation = (_rotation + spin);
} else {
this.removeMovieClip();
}
}
gotoAndStop(random(4) + 1);
xSpeed = (random(200) - 100) / 10;
ySpeed = (random(10) + 5) * -1;
_xscale = (random(50) + 50);
_yscale = _xscale;
if (random(2) == 0) {
_yscale = (-_yscale);
}
drop = 0;
spin = random(20) - 10;
_rotation - random(360);
Symbol 58 MovieClip [Class_Particle_Dead] Frame 1
function onEnterFrame() {
_rotation = (_rotation + spin);
if (timer > 30) {
timer--;
this._x = this._x + xSpeed;
this._y = this._y + (ySpeed + drop);
xSpeed = xSpeed / 1.1;
ySpeed = ySpeed / 1.1;
drop = drop + 0.5;
} else if (timer > 0) {
this._x = this._x - (((this._x - _parent._parent.heroStartX) + offSetX) / 10);
this._y = this._y - ((((this._y - _parent._parent.heroStartY) + 60) + offSetY) / 10);
timer--;
} else if (timer == 0) {
xSpeed = random(60) - 30;
ySpeed = random(60) - 30;
drop = 0;
timer--;
} else if (timer > -50) {
timer--;
this._x = this._x + xSpeed;
this._y = this._y + (ySpeed + drop);
xSpeed = xSpeed / 1.1;
ySpeed = ySpeed / 1.1;
drop = drop + 0.5;
_alpha = (_alpha - 10);
} else {
this.removeMovieClip();
}
}
gotoAndStop(random(4) + 1);
xSpeed = random(60) - 30;
ySpeed = random(60) - 40;
_xscale = (random(50) + 50);
_yscale = _xscale;
drop = 0;
_alpha = 400;
timer = 55 + random(10);
offSetX = random(60) - 30;
offSetY = random(60) - 30;
spin = random(80) - 40;
Symbol 59 MovieClip [Class_Particle] Frame 1
function onEnterFrame() {
if ((_alpha > 0) and this.hitTest(_parent._parent._parent.STAGE)) {
this._x = this._x + xSpeed;
this._y = this._y + (ySpeed + drop);
xSpeed = xSpeed / 1.1;
ySpeed = ySpeed / 1.2;
drop++;
_alpha = (_alpha - 20);
} else {
this.removeMovieClip();
}
}
xSpeed = random(60) - 30;
ySpeed = random(60) - 40;
_xscale = (random(50) + 50);
_yscale = _xscale;
drop = 0;
_alpha = 400;
Symbol 67 MovieClip Frame 1
stop();
Symbol 69 MovieClip [MessageBox] Frame 1
function onEnterFrame() {
if (soundSpeed > 0) {
soundSpeed--;
} else if (soundSpeed == 0) {
var _local2 = new Sound();
_local2.attachSound(sound);
_local2.start();
soundSpeed--;
}
if (timer > 0) {
if (_alpha < 100) {
_alpha = (_alpha + fadeSpeed);
}
timer--;
} else if (_alpha > 0) {
_alpha = (_alpha - fadeSpeed);
} else {
this.removeMovieClip();
}
}
_alpha = 0;
if (spriteSel != undefined) {
sprite.gotoAndStop(spriteSel);
}
Symbol 71 MovieClip [Particle_FallSmoke] Frame 1
function onEnterFrame() {
if (_alpha > 0) {
_alpha = (_alpha - 5);
_x = (_x + speed);
speed = speed / 1.5;
_xscale = (_xscale / 1.1);
_yscale = (_yscale / 1.1);
_rotation = (_rotation - speed);
} else {
this.removeMovieClip();
}
}
if (_y == 0) {
speed = 20;
_y = _parent._parent.HERO._y;
} else if (_y == 1) {
speed = -20;
_y = _parent._parent.HERO._y;
} else if (random(2) == 0) {
speed = 20;
} else {
speed = -20;
}
Symbol 73 MovieClip [Class_Fader] Frame 1
function onEnterFrame() {
if (fadeSwitch == false) {
if (_alpha < 100) {
_alpha = (_alpha + fadeSpeed);
} else {
fadeSwitch = true;
_parent.MESSAGES.removeMovieClip();
_parent.createEmptyMovieClip("MESSAGES", 50);
stopAllSounds();
_parent.gotoAndStop(targ);
}
} else if (_alpha > 0) {
_alpha = (_alpha - fadeSpeed);
} else {
this.removeMovieClip;
}
}
fadeSwitch = false;
_alpha = 0;
Symbol 79 MovieClip [Class_LevelSelectTile] Frame 1
function onRollOver() {
fadeLevel = 80;
_alpha = 100;
}
function onRollOut() {
fadeLevel = 50;
}
function onRelease() {
_parent.selector.pos = this._x;
_parent.selector.yPos = this._y;
_parent._parent.levelID = levelID;
_parent._parent.scoreDesc = _parent._parent[("LEVEL" + levelID) + "SCORE"];
}
function onDragOver() {
fadeLevel = 80;
_alpha = 100;
}
function onDragOut() {
fadeLevel = 50;
}
function onEnterFrame() {
if (scrollTimer == 0) {
this._x = this._x - ((_x - xPos) / 5);
this._y = this._y - ((_y - yPos) / 5);
} else {
scrollTimer--;
}
if (_alpha > fadeLevel) {
_alpha = (_alpha - 2);
} else if (_alpha < fadeLevel) {
_alpha = (_alpha + 2);
}
}
fadeLevel = 50;
stop();
_alpha = fadeLevel;
if (_parent._parent[("LEVEL" + levelID) + "COMPLETE"] == true) {
lock._visible = false;
}
if (_parent._parent.bossFilterArray[levelID] == 1) {
this.gotoAndStop(2);
}
Symbol 88 MovieClip Frame 17
gotoAndPlay (15);
Symbol 89 Button
on (release) {
getURL ("http://www.wiggiworld.com", "_blank");
}
Symbol 95 MovieClip Frame 15
stop();
Symbol 97 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 110 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
bl = _root.getBytesLoaded();
bt = _root.getBytesTotal();
perc = (bl / bt) * 100;
bar.bar._xscale = perc;
if (perc >= 100) {
this.gotoAndPlay("goplay");
delete this.onEnterFrame;
}
};
Symbol 110 MovieClip Frame 25
stop();
Symbol 113 MovieClip Frame 1
function newSound(file) {
var _local1 = new Sound();
_local1.attachSound(file);
_local1.start();
}
function newMessage(xPos, yPos, speech, fadeSpeed, soundSpeed, timer, sound, spriteSel) {
var _local2 = _parent.MESSAGES.attachMovie("messageBox", "messageBox" + messageDepth, messageDepth++);
_local2._x = xPos;
_local2._y = yPos;
_local2.speech = speech;
_local2.fadeSpeed = fadeSpeed;
_local2.timer = timer;
_local2.soundSpeed = soundSpeed;
_local2.sound = sound;
_local2.spriteSel = spriteSel;
newSound("Sound_MessageBox");
}
function badMessage(xPos, yPos, speech, fadeSpeed, soundSpeed, timer, sound) {
var _local2 = _parent.MESSAGES.attachMovie("messageBoxBad", "messageBox" + messageDepth, messageDepth++);
_local2._x = xPos;
_local2._y = yPos;
_local2.speech = speech;
_local2.fadeSpeed = fadeSpeed;
_local2.timer = timer;
_local2.soundSpeed = soundSpeed;
_local2.sound = sound;
newSound("Sound_MessageBoxBad");
}
_visible = false;
messageDepth = 0;
_parent.createEmptyMovieClip("MESSAGES", 50);
Symbol 115 MovieClip Frame 1
function onMouseMove() {
Mouse.hide();
this._x = _parent._xmouse;
this._y = _parent._ymouse;
updateAfterEvent();
}
Symbol 124 MovieClip Frame 1
function onEnterFrame() {
_y = (_y - ((_y - startPosY) / 8));
spinTimer++;
if (timer > 0) {
timer--;
} else {
timer = 10;
if (dirSwitch == false) {
dirSwitch = true;
} else {
dirSwitch = false;
}
}
if (dirSwitch == false) {
_xscale = (_xscale + (timer / speed));
_yscale = (_yscale + (timer / speed));
} else {
_yscale = (_yscale - (timer / speed));
_xscale = (_xscale - (timer / speed));
}
}
startPosY = this._y;
this._y = this._y - 1000;
speed = 2;
spinTimer = 0;
stop();
if (random(2) == 0) {
spinSpeed = -1;
} else {
spinSpeed = 1;
}
Symbol 130 MovieClip Frame 1
function onRelease() {
_alpha = 100;
_parent.fade(targ, 10);
}
function onRollOver() {
_alpha = 100;
}
function onEnterFrame() {
if (scrollTimer == 0) {
this._x = this._x - ((_x - xPos) / 5);
this._y = this._y - ((_y - yPos) / 5);
} else {
scrollTimer--;
}
if (_alpha > 50) {
_alpha = (_alpha - 5);
}
}
stop();
xPos = this._x;
yPos = this._y;
_x = (_x + scrollPlaceX);
_y = (_y + scrollPlaceY);
Symbol 135 MovieClip Frame 1
function onEnterFrame() {
this._x = this._x - ((_x - xPos) / 10);
this._y = this._y - ((_y - yPos) / 10);
}
xPos = this._x;
this._x = this._x + 1500;
Symbol 137 MovieClip Frame 1
function onEnterFrame() {
this._x = this._x - ((_x - xPos) / 8);
}
xPos = this._x;
this._x = this._x - 1500;
Symbol 139 MovieClip Frame 1
function onEnterFrame() {
this._x = this._x - ((_x - xPos) / 8);
}
xPos = this._x;
this._x = this._x - 1500;
Symbol 145 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent._parent.STAGE.shoeType);
Symbol 151 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent._parent.STAGE.gloveType);
Symbol 157 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent._parent.STAGE.hatType);
Symbol 170 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent._parent.STAGE.mouthType);
Symbol 179 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent._parent.STAGE.hairType);
Symbol 184 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent._parent.STAGE.eyeType);
Symbol 188 MovieClip Frame 1
function onRelease() {
_alpha = 100;
if (this._rotation > 0) {
_parent._parent.STAGE[dressVal]++;
} else {
_parent._parent.STAGE[dressVal]--;
}
if (_parent._parent.STAGE[dressVal] < 1) {
_parent._parent.STAGE[dressVal] = range;
} else if (_parent._parent.STAGE[dressVal] > range) {
_parent._parent.STAGE[dressVal] = 1;
}
_parent.HERO.play();
_parent._parent.saveAllData();
}
function onRollOver() {
_alpha = 100;
}
function onEnterFrame() {
if (_alpha > 50) {
_alpha = (_alpha - 2);
}
}
scale = _xscale;
rotateStore = _rotation;
Symbol 196 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent.STAGE.skinType);
Symbol 204 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent.STAGE.skinType);
Symbol 212 MovieClip Frame 1
gotoAndStop(_parent._parent._parent._parent._parent._parent.STAGE.skinType);
Symbol 217 MovieClip Frame 1
stop();
Instance of Symbol 213 MovieClip in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
eyes._yscale = 50;
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
gotoAndStop (1);
Symbol 221 MovieClip Frame 1
eyes.stop();
mouth.stop();
hair.stop();
hat.gotoAndStop(2);
glove.gotoAndStop(2);
shoe.gotoAndStop(2);
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "skinType";
range = 6;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "skinType";
range = 7;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "shoeType";
range = 6;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "shoeType";
range = 6;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "gloveType";
range = 6;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "gloveType";
range = 6;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "mouthType";
range = 4;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "mouthType";
range = 4;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "eyeType";
range = 4;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "eyeType";
range = 4;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "hatType";
range = 6;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "hatType";
range = 6;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "hairType";
range = 8;
}
Instance of Symbol 188 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
dressVal = "hairType";
range = 8;
}
Instance of Symbol 220 MovieClip "HERO" in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
scale = _xscale;
}
on (press) {
_xscale = ((scale - random(50)) - 200);
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (_xscale < scale) {
_xscale = (_xscale * 1.1);
_yscale = (_yscale * 1.1);
}
}
Symbol 224 MovieClip Frame 1
function onEnterFrame() {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
_alpha = -100;
Symbol 228 MovieClip Frame 1
function onEnterFrame() {
this._x = this._x + ((pos - _x) / 3);
this._y = this._y + ((yPos - _y) / 3);
_rotation = (_rotation + 5);
}
pos = 0;
yPos = 0;
Symbol 228 MovieClip Frame 50
gotoAndPlay (2);
Symbol 229 MovieClip Frame 1
function onEnterFrame() {
}
tileNum = 0;
cols = 5;
rows = 3;
tileCount = 0;
i = 0;
while (i < (_parent.numLevels / 3)) {
clone = attachMovie("Class_LevelSelectTile", "Tile" + tileNum, tileNum++);
clone._x = i * 80;
clone._y = 0;
clone.levelID = tileCount;
tileCount++;
i++;
}
i = 0;
while (i < (_parent.numLevels / 3)) {
clone = attachMovie("Class_LevelSelectTile", "Tile" + tileNum, tileNum++);
clone._x = i * 80;
clone._y = 80;
clone.levelID = tileCount;
tileCount++;
i++;
}
i = 0;
while (i < (_parent.numLevels / 3)) {
clone = attachMovie("Class_LevelSelectTile", "Tile" + tileNum, tileNum++);
clone._x = i * 80;
clone._y = 160;
clone.levelID = tileCount;
tileCount++;
i++;
}
Symbol 235 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 1
function onEnterFrame() {
if (this.hitTest(_parent._parent._parent.STAGE)) {
if (this.hitTest(_parent._parent.HERO.body)) {
_parent._parent.function_newParticle(this._x, this._y, "Class_Particle", 5);
_parent._parent._parent.STAGE.newSound("Sound_Fruit");
_parent._parent.itemCollect++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
gotoAndStop(random(6) + 1);
Symbol 245 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
function onEnterFrame() {
collect.fruitCollect = _parent.GAME.itemCollect;
timeMC.timer = _parent.GAME.levelTimerDisplay;
if (_parent.GAME.gamePaused == true) {
gotoAndStop (3);
}
}
timeMC.timer = _parent.GAME.levelTimerDisplay;
collect.fruitCollect = _parent.GAME.itemCollect;
stop();
Symbol 252 MovieClip Frame 2
function onEnterFrame() {
totalScoreVar = _parent.score;
if (scoreSwitch == 0) {
if (timer < 20) {
timer++;
} else if (timer < 40) {
collect._y = collect._y - ((collect._y - 420) / 5);
timer++;
} else if (collect.fruitCollect > 0) {
collect.fruitCollect--;
collect._xscale = collect._xscale + 30;
collect._yscale = collect._xscale;
scoreVar = scoreVar + 10;
_parent.score = _parent.score + 10;
timer = timer - 3;
_parent.STAGE.newSound("Sound_Fruit");
} else {
_parent.GAME.function_newParticle(collect._x, collect._y, "Class_Particle", 5);
_parent.STAGE.newSound("Sound_Fruit");
collect.swapDepths(0);
collect.removeMovieClip();
scoreSwitch = 1;
timer = 0;
}
if (collect._xscale > 100) {
collect._xscale = collect._xscale / 1.1;
collect._yscale = collect._yscale / 1.1;
}
} else if (scoreSwitch == 1) {
if (timer < 20) {
timer++;
} else if (timer < 40) {
timeMC._y = timeMC._y - ((timeMC._y - 420) / 5);
timer++;
} else if (timeMC.timer > 0) {
timeMC.timer--;
timeMC._xscale = timeMC._xscale + 30;
timeMC._yscale = timeMC._xscale;
if (scoreVar > 0) {
scoreVar = scoreVar - 1;
_parent.score = _parent.score - 1;
}
if (soundSwitch == true) {
soundSwitch = false;
_parent.STAGE.newSound("Sound_Fruit");
} else {
soundSwitch = true;
}
} else {
_parent.STAGE.newSound("Sound_Fruit");
timeMC.swapDepths(0);
timeMC.removeMovieClip();
scoreSwitch = 2;
timer = 0;
}
if (timeMC._xscale > 100) {
timeMC._xscale = timeMC._xscale / 1.2;
timeMC._yscale = timeMC._yscale / 1.2;
}
} else if (scoreSwitch == 2) {
if (timer < 30) {
timer++;
} else if (timer == 30) {
if (_parent.shortGame == false) {
_parent[("LEVEL" + levelID) + "COMPLETE"] = true;
if (scoreVar > _parent[("LEVEL" + levelID) + "SCORE"]) {
_parent[("LEVEL" + levelID) + "SCORE"] = scoreVar;
}
_parent.saveAllData();
_parent.levelID++;
_parent.fade("LOADER", 10);
} else {
_parent.score = 0;
_parent.fade("SELECT", 10);
}
timer++;
}
}
}
timer = 0;
scoreVar = 0;
scoreSwitch = 0;
totalScoreVar = _parent.score;
Instance of Symbol 124 MovieClip in Symbol 252 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (6);
}
Symbol 252 MovieClip Frame 3
function onEnterFrame() {
if (_parent.GAME.gamePaused == false) {
gotoAndStop (1);
}
}
Instance of Symbol 130 MovieClip in Symbol 252 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
targ = "GAMETYPE";
scrollTimer = 30;
scrollPlaceX = 1000;
scrollPlaceY = 0;
text = "QUIT";
}
on (release) {
_root.WPI_ArcadeStopSingleGame(_parent._parent.score);
_parent._parent.fade("GAMETYPE", 5);
}
Instance of Symbol 124 MovieClip in Symbol 252 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (8);
}
Instance of Symbol 130 MovieClip in Symbol 252 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
targ = "GAMETYPE";
scrollTimer = 30;
scrollPlaceX = 1000;
scrollPlaceY = 0;
text = "UNPAUSE";
}
on (release) {
_parent._parent.GAME.gamePaused = false;
this.swapDepths(0);
this.removeMovieClip();
}
Symbol 256 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
stop();
Symbol 256 MovieClip Frame 2
stop();
Symbol 256 MovieClip Frame 3
stop();
Symbol 259 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
_visible = false;
Symbol 261 MovieClip Frame 1
function onEnterFrame() {
scrapeTimer++;
if (this.hitTest(_parent._parent.HERO.feet)) {
while (this.hitTest(_parent._parent.HERO.feet)) {
_parent._parent.HERO._y--;
}
_parent._parent._parent.STAGE.newSound("Sound_Spring");
_parent._parent.HERO.drop = -fullBounce;
this._xscale = 200;
this._yscale = 50;
} else if (this.hitTest(_parent._parent.HERO.body)) {
if (_parent._parent.GROUND.hitTest((_x + _parent._parent._x) + 20, (_y + _parent._parent._y) - 20, true)) {
while (_parent._parent.GROUND.hitTest((_x + _parent._parent._x) + 20, (_y + _parent._parent._y) - 20, true)) {
this._x--;
}
} else if (_parent._parent.GROUND.hitTest((_x + _parent._parent._x) - 20, (_y + _parent._parent._y) - 20, true)) {
while (_parent._parent.GROUND.hitTest((_x + _parent._parent._x) - 20, (_y + _parent._parent._y) - 20, true)) {
this._x++;
}
}
this._x = this._x + (_parent._parent.HERO.speed / 3);
if ((scrapeTimer > 20) and (Key.isDown(39) or Key.isDown(37))) {
_parent._parent._parent.STAGE.newSound("Sound_Scrape");
scrapeTimer = 0;
}
while (this.hitTest(_parent._parent.HERO.body)) {
if (this._x < _parent._parent.HERO._x) {
_parent._parent.HERO._x++;
} else if (this._x > _parent._parent.HERO._x) {
_parent._parent.HERO._x--;
}
}
} else if (_parent._parent.GROUND.hitTest((_x + _parent._parent._x) + 55, (_y + _parent._parent._y) - 20, true)) {
this._x = this._x - 2;
} else if (_parent._parent.GROUND.hitTest((_x + _parent._parent._x) - 55, (_y + _parent._parent._y) - 20, true)) {
this._x = this._x + 2;
}
if (_xscale > 100) {
_xscale = (_xscale - 10);
} else {
_xscale = 100;
}
if (_yscale < 100) {
_yscale = (_yscale + 10);
} else {
_yscale = 100;
}
if (drop < _parent._parent.WORLD_gravity) {
drop = drop + _parent._parent.WORLD_airResistance;
}
_y = (_y + drop);
if (_parent._parent.GROUND.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
while (_parent._parent.GROUND.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
_y = (_y-1);
}
this._y++;
drop = (-drop) / 1.5;
}
}
drop = 0;
scrapeTimer = 0;
Symbol 263 MovieClip Frame 1
_rotation = (-_parent._rotation);
Symbol 266 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
function onEnterFrame() {
if (this.hitTest(_parent._parent._parent.STAGE)) {
i = 1;
while (i <= numSects) {
this["flag" + i]._y = startY + (Math.sin((w / speed) + (inc * i)) * size);
i++;
}
w++;
if (this.hit.hitTest(_parent._parent.HERO.body) and (hitSwitch == false)) {
_parent._parent.HERO.win = true;
_parent._parent.camElasticStore = 1000;
hitSwitch = true;
_parent._parent._parent.STAGE.newSound("Sound_Glass");
i = 1;
while (i <= numSects) {
this["flag" + i].gotoAndStop(2);
i++;
}
flagBase.gotoAndStop(2);
_parent._parent._parent.MESSAGES.removeMovieClip();
stopAllSounds();
_parent._parent._parent.HUD.gotoAndStop("COMPLETE");
this._xscale = -this._xscale;
_parent._parent.function_newParticle(this._x, this._y, "Class_Particle", 100);
}
}
}
hitSwitch = false;
hit._visible = false;
_xscale = (-_xscale);
var numSects = 10;
var startY = -60;
var size = 3;
var speed = 5;
var inc = ((Math.PI*2) / numSects);
var w = 0;
Symbol 272 MovieClip Frame 1
function onEnterFrame() {
if (this.hitTest(_parent.HERO)) {
if (defaultCam == true) {
_parent.defaultCamera();
} else {
if (camTarget != undefined) {
_parent.camTarget = camTarget;
}
if (camType != undefined) {
_parent.camTypeStore = camType;
}
if (camElasticStore != undefined) {
_parent.camElasticStore = camElastic;
}
if (camXPos != undefined) {
_parent.camXPos = camXPos;
}
if (camYPos != undefined) {
_parent.camYPos = camYPos;
}
}
}
}
_visible = false;
Symbol 273 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
stop();
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
fullBounce = 45;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
fullBounce = 40;
}
Symbol 273 MovieClip Frame 2
stop();
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 2
onClipEvent (load) {
fullBounce = 35;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 3
onClipEvent (load) {
baseBounce = 20;
fullBounce = 50;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 3
onClipEvent (load) {
baseBounce = 20;
fullBounce = 40;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 3
onClipEvent (load) {
baseBounce = 20;
fullBounce = 38;
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 4
onClipEvent (load) {
camType = 1;
camElastic = 20;
camYPos = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.HERO)) {
_parent._parent._parent.STAGE.newMessage(400, 500, "Press the Space Bar, thats the big one in the middle, to jump!", 15, 20, 150, "Sound_Space");
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 4
onClipEvent (load) {
camType = 1;
camElastic = 20;
camYPos = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.HERO)) {
_parent._parent._parent.STAGE.newMessage(400, 500, "Press the arrow keys to make your wiggi move!", 15, 20, 100, "Sound_Arrows");
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 5
onClipEvent (load) {
fullBounce = 50;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 5
onClipEvent (load) {
fullBounce = 40;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 5
onClipEvent (load) {
fullBounce = 45;
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 6
onClipEvent (load) {
camType = 1;
camElastic = 20;
camYPos = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.HERO)) {
_parent._parent._parent.STAGE.newMessage(400, 500, "You can press these switches by jumping on them - this can open doors or make other things happen!", 15, 20, 200, "Sound_Switches");
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 7
onClipEvent (load) {
fullBounce = 45;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 7
onClipEvent (load) {
fullBounce = 45;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 9
onClipEvent (load) {
fullBounce = 45;
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 10
onClipEvent (load) {
camType = 1;
camElastic = 20;
camYPos = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.HERO)) {
_parent._parent._parent.STAGE.newMessage(400, 500, "Collect fresh fruit to increase your score - Fresh fruit is good for you and will help you grow up big and strong!", 15, 20, 200, "Sound_CollectFruit");
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 10
onClipEvent (load) {
camType = 1;
camElastic = 20;
camYPos = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.HERO)) {
_parent._parent._parent.STAGE.newMessage(400, 500, "Jumping on a spring will launch you high into the air! ", 15, 20, 150, "Sound_JumpSpring");
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 11
onClipEvent (load) {
camType = 1;
camElastic = 20;
camYPos = 500;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.HERO)) {
_parent._parent._parent.STAGE.newMessage(400, 500, "You can also push springs by walking into them!", 15, 20, 150, "Sound_PushSpring");
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 11
onClipEvent (load) {
fullBounce = 50;
}
Instance of Symbol 261 MovieClip in Symbol 273 MovieClip Frame 13
onClipEvent (load) {
fullBounce = 50;
}
Symbol 276 MovieClip Frame 1
function onEnterFrame() {
if (this.hitTest(_parent._parent._parent.STAGE)) {
touchBuffer++;
if ((this.hitTest(_parent._parent.HERO.feet) and (pressed == false)) and (touchBuffer > 30)) {
pressed = true;
_parent._parent.HERO.drop = -15;
touchBuffer = 0;
_parent._parent._parent.STAGE.newSound("Sound_Switch");
if (switchStatus == false) {
switchStatus = true;
} else {
switchStatus = false;
}
} else if ((this.hitTest(_parent._parent.HERO.feet) == false) and (touchBuffer > 30)) {
pressed = false;
}
if (switchStatus == true) {
if (this._rotation < 180) {
this._rotation = this._rotation + 20;
}
} else if (this._rotation > 0) {
this._rotation = this._rotation - 20;
}
}
}
pressed = false;
switchStatus = false;
touchBuffer = 0;
Symbol 280 MovieClip Frame 1
function onEnterFrame() {
if (activeStore == true) {
this._y = this._y - ((this._y - endYPos) / 4);
this._x = this._x - ((this._x - endXPos) / 4);
} else {
this._y = this._y - ((this._y - startYPos) / 4);
this._x = this._x - ((this._x - startXPos) / 4);
}
if ((target1Store != _parent[target1].switchStatus) or (target2Store != _parent[target2].switchStatus)) {
target1Store = _parent[target1].switchStatus;
target2Store = _parent[target2].switchStatus;
if (activeStore == true) {
activeStore = false;
} else {
activeStore = true;
}
}
}
function onRelease() {
if (activeStore == true) {
activeStore = false;
} else {
activeStore = true;
}
}
rotStore = _rotation;
startYPos = this._y;
startXPos = this._x;
endXPos = this._x - endXPos;
endYPos = this._y - endYPos;
activeStore = false;
target1Store = _parent[target1].switchStatus;
target2Store = _parent[target2].switchStatus;
Symbol 284 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent.gamePaused == false) {
if (this.hitTest(_parent._parent.HERO.feet)) {
if (xSpeed > 0) {
_parent._parent.HERO._x = _parent._parent.HERO._x + (xSpeed + 1);
} else if (xSpeed < 0) {
_parent._parent.HERO._x = _parent._parent.HERO._x + (xSpeed - 1);
}
_parent._parent.HERO._y = _parent._parent.HERO._y + 10;
}
if (distanceCounter < distance) {
distanceCounter++;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
} else {
distanceCounter = 0;
xSpeed = -xSpeed;
ySpeed = -ySpeed;
}
}
}
distanceCounter = 0;
Symbol 286 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 2
onClipEvent (load) {
endYPos = -190;
endXPos = 0;
target1 = "switchA";
target2 = "switchZ";
}
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 2
onClipEvent (load) {
endYPos = 0;
endXPos = -180;
target1 = "switchB";
target2 = "switchZ";
}
Instance of Symbol 284 MovieClip in Symbol 286 MovieClip Frame 7
onClipEvent (load) {
distance = 100;
ySpeed = -4;
xSpeed = 0;
}
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 7
onClipEvent (load) {
endYPos = 0;
endXPos = -270;
target1 = "switchA";
target2 = "switchZ";
}
Instance of Symbol 284 MovieClip in Symbol 286 MovieClip Frame 8
onClipEvent (load) {
distance = 100;
ySpeed = 4;
xSpeed = 0;
}
Instance of Symbol 284 MovieClip in Symbol 286 MovieClip Frame 8
onClipEvent (load) {
distance = 110;
ySpeed = -4;
xSpeed = 0;
}
Instance of Symbol 284 MovieClip in Symbol 286 MovieClip Frame 8
onClipEvent (load) {
distance = 115;
ySpeed = 4;
xSpeed = 0;
}
Instance of Symbol 284 MovieClip in Symbol 286 MovieClip Frame 9
onClipEvent (load) {
distance = 100;
ySpeed = 5;
xSpeed = 0;
}
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 13
onClipEvent (load) {
endYPos = 0;
endXPos = -325;
target1 = "switchA";
target2 = "switchZ";
}
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 13
onClipEvent (load) {
endYPos = 0;
endXPos = -200;
target1 = "switchB";
target2 = "switchZ";
}
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 14
onClipEvent (load) {
endYPos = 200;
endXPos = 0;
target1 = "switchA";
target2 = "switchZ";
}
Symbol 286 MovieClip Frame 18
stop();
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 18
onClipEvent (load) {
endYPos = 0;
endXPos = -100;
target1 = "switchA";
target2 = "switchB";
}
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 18
onClipEvent (load) {
endYPos = 90;
endXPos = 0;
target1 = "switchA";
target2 = "switchB";
}
Symbol 286 MovieClip Frame 19
stop();
Instance of Symbol 280 MovieClip in Symbol 286 MovieClip Frame 19
onClipEvent (load) {
endYPos = -250;
endXPos = 0;
target1 = "switchA";
target2 = "switchB";
}
Symbol 286 MovieClip Frame 21
stop();
Symbol 289 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
Symbol 290 MovieClip Frame 1
function onEnterFrame() {
pauseManagement();
if (gamePaused == false) {
levelTimer = levelTimer + 0.04;
levelTimerDisplay = Math.round(levelTimer);
touchBuffer--;
function_heroDeathManagement();
function_HERO();
function_CAMERA(camTarget, camElasticStore, camTypeStore, camXPos, camYPos);
}
}
function pauseManagement() {
if (Key.isDown(77) and (pauseSwitch == false)) {
pauseSwitch = true;
if (gamePaused == false) {
gamePaused = true;
} else {
gamePaused = false;
}
} else if (Key.isDown(77) == false) {
pauseSwitch = false;
}
}
function function_HERO() {
if ((HERO.dead == false) and (HERO.win == false)) {
function_HERO_jump();
function_gravity(this.HERO);
function_HERO_hitRoof();
function_HERO_hitGround();
function_HERO_spriteGraphics();
function_HERO_healthManagement();
function_dangers();
if (heroHitForeground() == true) {
if (this.FOREGROUND._alpha > 50) {
this.FOREGROUND._alpha = this.FOREGROUND._alpha - 5;
}
} else if (this.FOREGROUND._alpha < 100) {
this.FOREGROUND._alpha = this.FOREGROUND._alpha + 5;
}
function_HERO_hitWall(this.HERO.charWidth / 2, (-this.HERO.charHeight) / 2, 1);
function_HERO_hitWall((-this.HERO.charWidth) / 2, (-this.HERO.charHeight) / 2, -1);
function_HERO_move();
} else if (HERO.win == true) {
function_gravity(this.HERO);
function_heroWinManagement();
function_HERO_hitGround();
}
}
function function_HERO_move() {
if (Key.isDown(39) and (HERO.paralysisTimer == 0)) {
if (this.HERO.speed < this.HERO.maxSpeed) {
this.HERO.speed = this.HERO.speed + this.HERO.accel;
} else {
this.HERO.speed = this.HERO.maxSpeed;
}
} else if (Key.isDown(37) and (HERO.paralysisTimer == 0)) {
if (this.HERO.speed > (-this.HERO.maxSpeed)) {
this.HERO.speed = this.HERO.speed - this.HERO.accel;
} else {
this.HERO.speed = -this.HERO.maxSpeed;
}
} else {
this.HERO.speed = this.HERO.speed / this.HERO.deccel;
}
if (Key.isDown(dashKey) == false) {
this.HERO.speed = this.HERO.speed / this.HERO.dashSpeed;
}
this.HERO._x = this.HERO._x + this.HERO.speed;
}
function function_HERO_jump() {
if (HERO.paralysisTimer == 0) {
if ((Key.isDown(jumpKey) and (touchBuffer > 0)) and (this.HERO.jumpLock == false)) {
_parent.STAGE.newSound("Sound_Jump");
this.HERO.jumpLock = true;
this.HERO.drop = -this.HERO.jumpHeight;
}
if (((HERO.drop >= ((-HERO.jumpHeight) / 2)) and (Key.isDown(jumpKey) == false)) and (doubleJumpCount < HERO.doubleJumps)) {
allowDoubleJump = true;
}
if (Key.isDown(jumpKey) and (allowDoubleJump == true)) {
allowDoubleJump = false;
doubleJumpCount++;
this.HERO.drop = (-this.HERO.doubleJumpHeight) / doubleJumpDegrade;
doubleJumpDegrade = doubleJumpDegrade + HERO.doubleJumpDegrade;
}
if ((Key.isDown(jumpKey) == false) and (touchBuffer > 0)) {
this.HERO.jumpLock = false;
}
}
}
function function_CAMERA(camTarg, camSpeed, camType, xPos, yPos) {
if (Key.isDown(65) == false) {
if (Key.isDown(camKeyUp)) {
camYOffset = 100;
} else if (Key.isDown(camKeyDown)) {
camYOffset = -100;
} else {
camYOffset = 0;
}
if (Key.isDown(camKeyRight)) {
camXOffset = -100;
} else if (Key.isDown(camKeyLeft)) {
camXOffset = 100;
} else {
camXOffset = 0;
}
if (camType == 1) {
this._x = this._x + ((((xPos - camTarg._x) - this._x) + camXOffset) / camSpeed);
this._y = this._y + ((((yPos - camTarg._y) - this._y) + camYOffset) / camSpeed);
} else if (camType == 2) {
this._x = this._x + ((((xPos - camTarg._x) - this._x) + camXOffset) / camSpeed);
} else if (camType == 3) {
this._y = this._y + ((((yPos - camTarg._y) - this._y) + camYOffset) / camSpeed);
}
}
}
function heroHitGround() {
if (this.GROUND.hitTest(this.HERO._x + this._x, this.HERO._y + this._y, true)) {
if ((HERO.drop == WORLD_gravity) and (touchBuffer < -18)) {
_parent.STAGE.newSound("Sound_Thud");
function_newParticle(HERO._x, 1, "Particle_FallSmoke", 1);
function_newParticle(HERO._x, 0, "Particle_FallSmoke", 1);
}
HERO.drop = 0;
touchBuffer = 6;
doubleJumpCount = 0;
doubleJumpDegrade = 1;
return(true);
}
}
function heroHitForeground() {
if (this.FOREGROUND.hitTest(this.HERO._x + this._x, this.HERO._y + this._y, true)) {
return(true);
}
}
function heroHitWall(wallXPos, wallYPos) {
if (this.GROUND.hitTest((this.HERO._x + wallXPos) + this._x, (this.HERO._y + wallYPos) + this._y, true)) {
return(true);
}
}
function function_HERO_hitWall(wallXPos, wallYPos, wallDir) {
if (heroHitWall(wallXPos, wallYPos) == true) {
while (heroHitWall(wallXPos, wallYPos) == true) {
this.HERO._x = this.HERO._x - wallDir;
}
this.HERO.speed = 0;
}
}
function heroHitRoof() {
if (this.GROUND.hitTest(this.HERO._x + this._x, (this.HERO._y + this._y) - this.HERO.charHeight, true)) {
return(true);
}
}
function function_HERO_hitRoof() {
if (heroHitRoof() == true) {
while (heroHitRoof() == true) {
this.HERO._y++;
}
this.HERO.drop = 1;
}
}
function function_HERO_hitGround() {
if (heroHitGround() == true) {
while (heroHitGround() == true) {
this.HERO._y--;
this.HERO.drop = 0;
}
this.HERO._y = this.HERO._y + 1;
}
}
function function_gravity(characterClass) {
characterClass._y = characterClass._y + characterClass.drop;
if (characterClass.drop < WORLD_gravity) {
characterClass.drop = characterClass.drop + WORLD_airResistance;
} else {
characterClass.drop = WORLD_gravity;
}
}
function processInputKeys() {
var _local2 = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
var _local3 = new Array(65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90);
var _local1 = 0;
while (_local1 < 26) {
if (jumpKey == _local2[_local1]) {
jumpKey = _local3[_local1];
}
_local1++;
}
_local1 = 0;
while (_local1 < 26) {
if (attackKey == _local2[_local1]) {
attackKey = _local3[_local1];
}
_local1++;
}
_local1 = 0;
while (_local1 < 26) {
if (dashKey == _local2[_local1]) {
dashKey = _local3[_local1];
}
_local1++;
}
if (dashKey == null) {
HERO.dashSpeed = 1;
}
}
function function_HERO_spriteGraphics() {
if (HERO.paralysisTimer > 0) {
HERO.sprite.gotoAndStop("HURT");
HERO.paralysisTimer--;
} else if (touchBuffer < 3) {
HERO.sprite.gotoAndStop("JUMP");
} else if (Key.isDown(39)) {
if (Key.isDown(dashKey) or (dashKey == null)) {
HERO.sprite.gotoAndStop("RUN");
} else {
HERO.sprite.gotoAndStop("WALK");
}
HERO.sprite._xscale = HERO.spriteScale;
} else if (Key.isDown(37)) {
if (Key.isDown(dashKey) or (dashKey == null)) {
HERO.sprite.gotoAndStop("RUN");
} else {
HERO.sprite.gotoAndStop("WALK");
}
HERO.sprite._xscale = -HERO.spriteScale;
} else {
HERO.sprite.gotoAndStop("STAND");
}
}
function defaultCamera() {
camTarget = camTarget_default;
camTypeStore = camTypeStore_default;
camElasticStore = camElasticStore_default;
camXPos = camXPos_default;
camYPos = camYPos_default;
}
function function_dangers() {
if (this.DANGERS.hitTest(this.HERO._x + this._x, this.HERO._y + this._y, true)) {
function_HERO_hurt();
}
}
function function_HERO_hurt() {
if (HERO.invTimer == 0) {
_parent.STAGE.newSound("Sound_Hurt");
if (HERO.sprite._xscale > 0) {
HERO.speed = -10;
} else {
HERO.speed = 10;
}
HERO.drop = -20;
HERO.paralysisTimer = HERO.paralysisTime;
HERO.invTimer = HERO.invTime;
HERO.health--;
}
}
function function_HERO_healthManagement() {
if (HERO.invTimer > 0) {
HERO.invTimer--;
if (HERO.paralysisTimer == 0) {
HERO.sprite._alpha = -HERO.sprite._alpha;
} else {
HERO.sprite._alpha = 100;
}
} else {
HERO.sprite._alpha = 100;
}
}
function function_newParticle(xPos, yPos, MC, number) {
var _local2 = 0;
while (_local2 < number) {
var _local1 = EFFECTS.attachMovie(MC, "P" + effectCount, effectCount++);
_local1._x = xPos;
_local1._y = yPos;
_local2++;
}
}
function enemy(classID) {
if (ENEMIES[classID].hitTest(_parent.STAGE)) {
if (ENEMIES[classID].hitTest(HERO.feet) and (HERO.drop > 5)) {
if (Key.isDown(jumpKey)) {
HERO.drop = (-HERO.drop) * 1.5;
} else {
HERO.drop = -HERO.drop;
}
function_newParticle(ENEMIES[classID]._x, ENEMIES[classID]._y, "Class_Particle_Enemy", 50);
ENEMIES[classID].swapDepths(0);
ENEMIES[classID].removeMovieClip();
} else if (ENEMIES[classID].hitTest(HERO.body)) {
function_HERO_hurt();
}
}
ENEMIES[classID]._y = ENEMIES[classID]._y + ENEMIES[classID].drop;
if (ENEMIES[classID].drop < WORLD_gravity) {
ENEMIES[classID].drop = ENEMIES[classID].drop + WORLD_airResistance;
}
if (enemy_groundHit(0, 0, classID) == true) {
while (enemy_groundHit(0, 0, classID) == true) {
ENEMIES[classID]._y--;
}
ENEMIES[classID]._y++;
ENEMIES[classID].drop = 0;
}
if ((enemy_groundHit(40, -20, classID) == true) or (enemy_enemyHit(40, -20, classID) == true)) {
ENEMIES[classID].moveDir = -1;
} else if ((enemy_groundHit(-40, -20, classID) == true) or (enemy_enemyHit(-40, -20, classID) == true)) {
ENEMIES[classID].moveDir = 1;
}
enemy_speedControl(classID);
}
function enemy_groundHit(xPos, yPos, classID) {
if (GROUND.hitTest((ENEMIES[classID]._x + _x) + xPos, (ENEMIES[classID]._y + _y) + yPos, true)) {
return(true);
}
if (ENEMIES.hitTest((ENEMIES[classID]._x + _x) + xPos, ((ENEMIES[classID]._y + _y) + yPos) + 5, true)) {
return(true);
}
}
function enemy_enemyHit(xPos, yPos, classID) {
if (ENEMIES.hitTest((ENEMIES[classID]._x + _x) + xPos, (ENEMIES[classID]._y + _y) + yPos, true)) {
return(true);
}
}
function enemy_speedControl(classID) {
if (ENEMIES[classID].moveDir == 1) {
if (ENEMIES[classID].speed < 5) {
ENEMIES[classID].speed++;
}
} else if (ENEMIES[classID].speed > -5) {
ENEMIES[classID].speed--;
}
ENEMIES[classID]._x = ENEMIES[classID]._x + ENEMIES[classID].speed;
}
function function_heroDeathManagement() {
if (HERO.health == 0) {
if (deathDelay > 0) {
deathDelay--;
} else {
deathDelay = 10;
HERO.dead = true;
HERO._visible = false;
_parent.STAGE.newSound("Sound_Glass");
function_newParticle(HERO._x, HERO._y, "Class_Particle_Dead", 100);
function_newParticle(HERO._x, HERO._y - 20, "Class_Particle", 50);
HERO.health = 1;
HERO.drop = -10;
}
}
if (HERO.dead == true) {
if (HERO.deadTimer < 30) {
HERO.deadTimer++;
if (HERO.deadTimer == 30) {
_parent.STAGE.newSound("Sound_Swoosh");
}
} else if (HERO.deadTimer < 60) {
HERO._x = HERO._x + ((heroStartX - HERO._x) / 10);
HERO._y = (heroStartY - HERO._y) / 10;
HERO.deadTimer++;
} else {
HERO._x = heroStartX + 30;
HERO._y = heroStartY - 10;
function_newParticle(HERO._x, HERO._y - 20, "Class_Particle", 50);
_parent.STAGE.newSound("Sound_Glass");
HERO.dead = false;
HERO._visible = true;
HERO.deadTimer = 0;
HERO.invTimer = 0;
}
}
}
function function_heroWinManagement() {
if (heroHitGround() == true) {
while (heroHitGround() == true) {
HERO._y--;
}
HERO.drop = -15;
HERO.sprite._xscale = -HERO.sprite._xscale;
}
HERO.sprite.gotoAndStop("JUMP");
}
var jumpKey = 32;
var attackKey = "D";
var dashKey = null;
var camKeyLeft = null;
var camKeyRight = null;
var camKeyUp = null;
var camKeyDown = null;
this.HERO.maxSpeed = 10;
this.HERO.accel = 1;
this.HERO.deccel = 1.2;
this.HERO.jumpHeight = 25;
this.HERO.doubleJumps = 0;
this.HERO.doubleJumpHeight = 0;
this.HERO.doubleJumpDegrade = 0;
this.HERO.charWidth = 30;
this.HERO.charHeight = 40;
this.HERO.dashSpeed = 1.2;
this.HERO.paralysisTime = 30;
this.HERO.invTime = 120;
this.HERO.deadTimerStore = 60;
this.HERO.health = 1;
var camTarget_default = this.HERO;
var camTypeStore_default = 1;
var camElasticStore_default = 5;
var camXPos_default = 400;
var camYPos_default = 300;
var WORLD_gravity = 20;
var WORLD_airResistance = 2;
LEVEL = _parent.levelArray[_parent.levelID];
HERO.deadTimer = 0;
var heroStartX = HERO._x;
var heroStartY = HERO._y;
HERO.dead = false;
defaultCamera();
processInputKeys();
HERO.spriteScale = HERO.sprite._xscale;
var doubleJumpCount = 0;
var doubleJumpDegrade = 0;
var allowDoubleJump = false;
createEmptyMovieClip("EFFECTS", 1);
_quality = "medium";
deathDelay = 10;
levelTimer = 0;
levelTimerDisplay = levelTimer;
itemCollect = 0;
gamePaused = false;
this.HERO.drop = 0;
this.HERO.speed = 0;
this.HERO.jumpSwitch = false;
this.HERO.jumpLock = false;
this.HERO.invTimer = 0;
this.HERO.paralysisTimer = 0;
HERO.win = false;
effectCount = 0;
enemyID = 0;
Symbol 310 MovieClip Frame 1
gotoAndStop(_parent.bossNum);
Symbol 313 MovieClip Frame 1
function onRelease() {
_alpha = 100;
if (_parent.ready == true) {
_parent._parent.userAnswer = userAnswer;
_parent.ready = false;
_parent._parent.convState++;
}
}
function onRollOver() {
_alpha = 100;
}
function onEnterFrame() {
if (scrollTimer == 0) {
this._x = this._x - ((_x - xPos) / 5);
this._y = this._y - ((_y - yPos) / 5);
} else {
scrollTimer--;
}
if (_alpha > 50) {
_alpha = (_alpha - 5);
} else if (_alpha < 50) {
_alpha = (_alpha + 5);
}
}
stop();
_alpha = 0;
scale = _xscale;
rotateStore = _rotation;
xPos = this._x;
yPos = this._y;
_x = (_x + scrollPlaceX);
_y = (_y + scrollPlaceY);
Symbol 314 MovieClip Frame 1
function onEnterFrame() {
if (ready == true) {
this._x = this._x - ((_x - xPos) / 5);
} else {
this._x = this._x - ((500 - _x) / 5);
}
}
ready = false;
xPos = _x;
_x = (_x - 500);
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
text = "NO";
userAnswer = false;
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
text = "YES";
userAnswer = true;
}
Symbol 320 MovieClip Frame 1
function fade(targ, fadeSpeed) {
var _local1 = attachMovie("Class_Fader", "FADE", 100);
_local1.targ = targ;
_local1.fadeSpeed = fadeSpeed;
}
function onEnterFrame() {
if (messageTimer == 0) {
STAGE.newMessage(400, 525, "Hey, guys! My name is Wiggitilda - and I'm here to help you play Wiggi Walk!", 15, 30, 160, "Sound_HeyGuys");
} else if (messageTimer == -180) {
STAGE.newMessage(400, 525, "If you're a kid, click the big Green button to start playing!", 15, 30, 140, "Sound_IfKid");
} else if (messageTimer == -340) {
STAGE.newMessage(400, 525, "If you're a parent, click the big Red button to learn more about Wiggi Walk!", 15, 30, 140, "Sound_IfParent");
}
messageTimer--;
}
function loadAllData() {
savefile = SharedObject.getLocal("WIGGIWALKDATA");
if (savefile.data.resetSave == undefined) {
savefile.data.resetSave = true;
savefile.data.skinType = 1;
savefile.data.hairType = 1;
savefile.data.hatType = 1;
savefile.data.gloveType = 1;
savefile.data.shoeType = 1;
savefile.data.eyeType = 1;
savefile.data.mouthType = 1;
i = 0;
while (i < numLevels) {
this[("LEVEL" + i) + "COMPLETE"] = false;
this[("LEVEL" + i) + "SCORE"] = 0;
i++;
}
savefile.flush();
}
STAGE.skinType = savefile.data.skinType;
STAGE.hairType = savefile.data.hairType;
STAGE.hatType = savefile.data.hatType;
STAGE.gloveType = savefile.data.gloveType;
STAGE.shoeType = savefile.data.shoeType;
STAGE.eyeType = savefile.data.eyeType;
STAGE.mouthType = savefile.data.mouthType;
i = 0;
while (i < numLevels) {
savefile.data[("LEVEL" + i) + "COMPLETE"] = this[("LEVEL" + i) + "COMPLETE"];
savefile.data[("LEVEL" + i) + "SCORE"] = this[("LEVEL" + i) + "SCORE"];
i++;
}
}
function saveAllData() {
savefile.data.skinType = STAGE.skinType;
savefile.data.hairType = STAGE.hairType;
savefile.data.hatType = STAGE.hatType;
savefile.data.gloveType = STAGE.gloveType;
savefile.data.shoeType = STAGE.shoeType;
savefile.data.eyeType = STAGE.eyeType;
savefile.data.mouthType = STAGE.mouthType;
i = 0;
while (i < numLevels) {
savefile.data[("LEVEL" + i) + "COMPLETE"] = this[("LEVEL" + i) + "COMPLETE"];
savefile.data[("LEVEL" + i) + "SCORE"] = this[("LEVEL" + i) + "SCORE"];
i++;
}
savefile.flush();
}
levelArray = new Array("TUT", "EIGHT", "NINE", "TEN", 1, "FOUR", "FIVE", "ELEVEN", "TWO", 2, "SEVEN", "ONE", "SIX", "THREE", 3);
bossFilterArray = new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
stop();
messageTimer = 60;
numLevels = 15;
loadAllData();
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
targ = "CREDITS";
scrollTimer = 40;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "CREDITS";
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
scrollTimer = 50;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "EXIT";
}
on (release) {
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
targ = "ABOUT";
scrollTimer = 30;
scrollPlaceX = 1000;
scrollPlaceY = 0;
text = "ABOUT";
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
targ = "DRESS";
scrollTimer = 20;
scrollPlaceX = -1000;
scrollPlaceY = 0;
text = "START";
}
Symbol 320 MovieClip Frame 2
function onEnterFrame() {
}
Instance of Symbol 124 MovieClip in Symbol 320 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(3);
targ = "TITLE";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "BACK";
}
Symbol 320 MovieClip Frame 3
function onEnterFrame() {
}
Instance of Symbol 124 MovieClip in Symbol 320 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
targ = "TITLE";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "BACK";
}
Symbol 320 MovieClip Frame 4
function onEnterFrame() {
timer++;
if (timer == 60) {
STAGE.newMessage(400, 75, "Here, you can create your own Wiggi!", 15, 30, 100, "Sound_Dressup");
timer++;
}
}
stop();
timer = 0;
loadAllData();
Instance of Symbol 124 MovieClip "SELECT" in Symbol 320 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(1);
targ = "TITLE";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "TITLE SCREEN";
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(1);
targ = "GAMETYPE";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "PLAY";
}
Symbol 320 MovieClip Frame 5
function onEnterFrame() {
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(1);
targ = "DRESS";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "CREATE WIGGI";
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(2);
targ = "SELECT";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "LEVEL SELECT";
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(1);
targ = "LOADER";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "MAIN GAME!";
}
on (release) {
_parent.levelID = 0;
_root.WPI_ArcadeStartSingleGame();
_parent.shortGame = false;
}
Instance of Symbol 124 MovieClip "SELECT" in Symbol 320 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop (7);
}
Symbol 320 MovieClip Frame 6
function onEnterFrame() {
timer++;
if (timer == 60) {
STAGE.newMessage(400, 75, "Ok, click the level you'd like to play!", 15, 30, 100, "Sound_LevelSelect");
timer++;
}
}
timer = 0;
Level2Complete = true;
levelID = 0;
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(1);
targ = "GAMETYPE";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "BACK";
}
Instance of Symbol 124 MovieClip "SELECT" in Symbol 320 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(2);
targ = "LOADER";
scrollTimer = 0;
scrollPlaceX = 0;
scrollPlaceY = 800;
text = "PLAY";
}
on (release) {
_parent.shortGame = true;
}
Symbol 320 MovieClip Frame 7
function onEnterFrame() {
}
stop();
if (score == undefined) {
score = 0;
}
Symbol 320 MovieClip Frame 8
function onEnterFrame() {
if (convState == 0) {
timer++;
if (bossNum == 1) {
if (timer == 30) {
STAGE.newMessage(400, 75, "Uh Oh It's a STRANGER. Be Careful!", 15, 30, 130, "Sound_UhOhStranger");
} else if (timer == 170) {
STAGE.newMessage(400, 75, "If you want to pass, you must answer my questions correctly ...Mwahahaha", 15, 30, 180, "Sound_Xave3", "XAVE");
} else if (timer == 340) {
STAGE.newMessage(400, 75, "Choose the right answers to beat him at his own game!", 15, 30, 130, "Sound_RightAnswer");
} else if (timer == 460) {
STAGE.newMessage(400, 75, "If I asked you to give me your address in a chat room, would you give it to me?", 15, 30, 180, "Sound_Xave4", "XAVE");
rightAnswer = false;
} else if (timer == 580) {
convState = 1;
answerBox.ready = true;
}
} else if (bossNum == 2) {
if (timer == 30) {
STAGE.newMessage(400, 75, "Uh Oh It's a STRANGER. Be Careful!", 15, 30, 130, "Sound_UhOhStranger");
} else if (timer == 170) {
STAGE.newMessage(400, 75, "You can only Pass here if you answer my three questions", 15, 30, 180, "Sound_Tom1", "TOM");
} else if (timer == 340) {
STAGE.newMessage(400, 75, "Choose the right answers to beat him at his own game!", 15, 30, 130, "Sound_RightAnswer");
} else if (timer == 460) {
STAGE.newMessage(400, 75, "Would it be safe to tell me what pets you have at your house?", 15, 30, 160, "Sound_Tom2", "TOM");
rightAnswer = true;
} else if (timer == 580) {
convState = 1;
answerBox.ready = true;
}
} else if (bossNum == 3) {
if (timer == 30) {
STAGE.newMessage(400, 75, "Uh Oh It's a STRANGER. Be Careful!", 15, 30, 130, "Sound_UhOhStranger");
} else if (timer == 170) {
STAGE.newMessage(400, 75, "Good afternoon, Little Wiggi! I have some questions I'd like you to answer!", 15, 30, 180, "Sound_Niall1", "NIALL");
} else if (timer == 360) {
STAGE.newMessage(400, 75, "Choose the right answers to beat him at his own game!", 15, 30, 130, "Sound_RightAnswer");
} else if (timer == 460) {
STAGE.newMessage(400, 75, "If I send you a link to a website you're not sure of, should you visit?", 15, 30, 200, "Sound_Niall2", "NIALL");
rightAnswer = false;
} else if (timer == 600) {
convState = 1;
answerBox.ready = true;
}
}
} else if (convState == 1) {
timer = 0;
testSwitch = false;
} else if (convState == 2) {
if ((userAnswer != rightAnswer) and (testSwitch == false)) {
timer = 0;
convState = 10;
}
testSwitch = true;
timer++;
if (bossNum == 1) {
if (timer == 2) {
STAGE.newMessage(400, 75, "Blast, that was the right answer!", 15, 10, 160, "Sound_XaveRight", "XAVE");
} else if (timer == 120) {
STAGE.newMessage(400, 75, "Well Done!", 15, 30, 60, "Sound_WellDone");
} else if (timer == 210) {
STAGE.newMessage(400, 75, "If I asked you to meet me in real life, would you?", 15, 30, 120, "Sound_Xave5", "XAVE");
rightAnswer = false;
} else if (timer == 280) {
convState = 3;
answerBox.ready = true;
}
} else if (bossNum == 2) {
if (timer == 2) {
STAGE.newMessage(400, 75, "Well well well, thats the right answer!", 15, 10, 120, "Sound_TomRight", "TOM");
} else if (timer == 100) {
STAGE.newMessage(400, 75, "Well Done!", 15, 30, 60, "Sound_WellDone");
} else if (timer == 210) {
STAGE.newMessage(400, 75, "If I told you I'm a friend of your parents online, should you ask your parents?", 15, 30, 160, "Sound_Tom3", "TOM");
rightAnswer = true;
} else if (timer == 280) {
convState = 3;
answerBox.ready = true;
}
} else if (bossNum == 3) {
if (timer == 2) {
STAGE.newMessage(400, 75, "You're a clever little Wiggi!", 15, 10, 180, "Sound_NiallRight", "NIALL");
} else if (timer == 140) {
STAGE.newMessage(400, 75, "Well Done!", 15, 30, 60, "Sound_WellDone");
} else if (timer == 210) {
STAGE.newMessage(400, 75, "If I try to send you a picture, should you ask your parents to look at it first?", 15, 30, 180, "Sound_Niall3", "NIALL");
rightAnswer = true;
} else if (timer == 330) {
convState = 3;
answerBox.ready = true;
}
}
} else if (convState == 3) {
timer = 0;
testSwitch = false;
} else if (convState == 4) {
if ((userAnswer != rightAnswer) and (testSwitch == false)) {
timer = 0;
convState = 10;
}
testSwitch = true;
timer++;
if (bossNum == 1) {
if (timer == 2) {
STAGE.newMessage(400, 75, "Blast, that was the right answer!", 15, 10, 160, "Sound_XaveRight", "XAVE");
} else if (timer == 120) {
STAGE.newMessage(400, 75, "Well Done!", 15, 30, 60, "Sound_WellDone");
} else if (timer == 210) {
STAGE.newMessage(400, 75, "But I have puppies and lots of sweet chocolates at my house...are you sure you don't want to visit?", 15, 30, 160, "Sound_Xave6", "XAVE");
rightAnswer = true;
} else if (timer == 320) {
convState = 6;
timer = 0;
answerBox.ready = true;
}
} else if (bossNum == 2) {
if (timer == 2) {
STAGE.newMessage(400, 75, "Well well well, thats the right answer!", 15, 10, 120, "Sound_TomRight", "TOM");
} else if (timer == 120) {
STAGE.newMessage(400, 75, "Well Done!", 15, 30, 60, "Sound_WellDone");
} else if (timer == 210) {
STAGE.newMessage(400, 75, "If I ask you to put your webcam on, should you? ", 15, 30, 160, "Sound_Tom4", "TOM");
rightAnswer = false;
} else if (timer == 320) {
convState = 6;
timer = 0;
answerBox.ready = true;
}
} else if (bossNum == 3) {
if (timer == 2) {
STAGE.newMessage(400, 75, "You're a clever little Wiggi!", 15, 10, 180, "Sound_NiallRight", "NIALL");
} else if (timer == 140) {
STAGE.newMessage(400, 75, "Well Done!", 15, 30, 60, "Sound_WellDone");
} else if (timer == 210) {
STAGE.newMessage(400, 75, "If I ask you to not tell your parents about me, should you tell them anyway?", 15, 30, 160, "Sound_Niall4", "NIALL");
rightAnswer = true;
} else if (timer == 320) {
convState = 6;
timer = 0;
answerBox.ready = true;
}
}
} else if (convState == 6) {
timer = 0;
testSwitch = false;
} else if (convState == 7) {
if ((userAnswer != rightAnswer) and (testSwitch == false)) {
timer = 0;
convState = 10;
}
timer++;
if (bossNum == 1) {
if (timer == 10) {
STAGE.newMessage(400, 75, "Blast it, I've been foiled again by you clever little Wiggies! I've got to go now! Mwahahaha", 15, 30, 240, "Sound_XaveBeat", "XAVE");
bossScale = bossSprite._xscale;
} else if ((timer > 220) and (timer < 340)) {
bossSprite._xscale = -bossScale;
bossSprite._x = bossSprite._x + 4;
} else if (timer == 340) {
if (shortGame == false) {
this[("LEVEL" + levelID) + "COMPLETE"] = true;
saveAllData();
levelID++;
fade("LOADER", 10);
} else {
fade("SELECT", 10);
}
}
} else if (bossNum == 2) {
if (timer == 10) {
STAGE.newMessage(400, 75, "Well, I have to go now, well done on getting the questions right!", 15, 30, 240, "Sound_TomBeat", "TOM");
bossScale = bossSprite._xscale;
} else if ((timer > 220) and (timer < 340)) {
bossSprite._xscale = -bossScale;
bossSprite._x = bossSprite._x + 4;
} else if (timer == 340) {
if (shortGame == false) {
this[("LEVEL" + levelID) + "COMPLETE"] = true;
saveAllData();
levelID++;
fade("LOADER", 10);
} else {
fade("SELECT", 10);
}
}
} else if (bossNum == 3) {
if (timer == 10) {
STAGE.newMessage(400, 75, "Well, it looks like I should go then, I'm no match for you!", 15, 30, 240, "Sound_NiallBeat", "NIALL");
bossScale = bossSprite._xscale;
} else if ((timer > 220) and (timer < 340)) {
bossSprite._xscale = -bossScale;
bossSprite._x = bossSprite._x + 4;
} else if (timer == 340) {
if (shortGame == false) {
this[("LEVEL" + levelID) + "COMPLETE"] = true;
saveAllData();
levelID++;
fade("WIN", 10);
} else {
fade("SELECT", 10);
}
}
}
} else if (convState == 10) {
timer++;
if (bossNum == 1) {
if (timer == 10) {
STAGE.newMessage(400, 75, "That was the wrong answer, now you must start again!", 15, 30, 240, "Sound_XaveWrong", "XAVE");
} else if (timer == 160) {
if (shortGame == false) {
fade("LOADER", 10);
} else {
fade("SELECT", 10);
}
}
} else if (bossNum == 2) {
if (timer == 10) {
STAGE.newMessage(400, 75, "Wrong answer, I'm afraid! Now you have to start all over again!", 15, 30, 240, "Sound_TomWrong", "TOM");
} else if (timer == 160) {
if (shortGame == false) {
fade("LOADER", 10);
} else {
fade("SELECT", 10);
}
}
} else if (bossNum == 3) {
if (timer == 10) {
STAGE.newMessage(400, 75, "Thats not right at all...now you've gotta start all over again.", 15, 30, 240, "Sound_NiallWrong", "NIALL");
} else if (timer == 160) {
if (shortGame == false) {
fade("WIN", 10);
} else {
fade("SELECT", 10);
}
}
}
}
}
if (score == undefined) {
score = 0;
}
timer = 0;
convState = 0;
userAnswer = false;
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
targ = "GAMETYPE";
scrollTimer = 30;
scrollPlaceX = 1000;
scrollPlaceY = 0;
text = "QUIT GAME";
}
on (release) {
if (_parent.shortGame == false) {
_root.WPI_ArcadeStopSingleGame(_parent.score);
}
_parent.fade("GAMETYPE", 10);
}
Symbol 320 MovieClip Frame 9
Instance of Symbol 130 MovieClip in Symbol 320 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
targ = "CREDITS";
scrollTimer = 30;
scrollPlaceX = 1000;
scrollPlaceY = 0;
text = "BACK";
}
on (release) {
_root.WPI_ArcadeStopSingleGame(_parent.score);
_parent.fade("CREDITS", 10);
}
Symbol 320 MovieClip Frame 15
stopAllSounds();
createEmptyMovieClip("MESSAGES", 50);
if (bossFilterArray[levelID] == 1) {
bossNum = levelArray[levelID];
gotoAndStop ("BOSS");
} else {
gotoAndStop ("GAME");
}