Combined Code
frame 1 {
stop();
}
button 5 {
on (release) {
play();
}
}
movieClip 9 {
}
instance of movieClip 9 {
onClipEvent (press) {
getURL('http://osakachan.co.cc/', '');
}
}
frame 2 {
stop();
this.onEnterFrame = function () {
BytesLoaded = Math.round(this.getBytesLoaded());
BytesTotal = Math.round(this.getBytesTotal());
Porcentaje = (BytesLoaded / BytesTotal) * 100;
LoadBar._width = Porcentaje * 5 - 1;
if (BytesLoaded >= BytesTotal) {
play();
}
};
}
movieClip 13 {
}
frame 3 {
aumentoX = 0;
aumentoY = 0;
aceleracion = 0.2;
velMax = 7;
x = 320;
y = 180;
keyU = 0;
keyD = 0;
keyL = 0;
keyR = 0;
keyS = 0;
ShootingNow = 0;
Shooting = 0;
ShootingFlag = 0;
ShootLife = 50;
flamethrower = 0;
direccion = 'r';
Score = 0;
dead = 0;
EaumentoX = 1;
EaumentoY = 1;
Mapuches4Nuke = 15;
Mapuches = 0;
Sprite.gotoAndStop('Right');
BGM.gotoAndPlay('BGM');
America._x = 0;
America._y = 0;
Mouse.hide();
stop();
this.onEnterFrame = function () {
if (!dead) {
if (Key.isDown(37)) {
keyL = 1;
} else {
keyL = 0;
}
if (Key.isDown(39)) {
keyR = 1;
} else {
keyR = 0;
}
if (Key.isDown(38)) {
keyU = 1;
} else {
keyU = 0;
}
if (Key.isDown(40)) {
keyD = 1;
} else {
keyD = 0;
}
if (Key.isDown(32)) {
keyS = 1;
} else {
keyS = 0;
}
if (Key.isDown(70)) {
flamethrower = 1;
}
}
if (keyR) {
aumentoX += aceleracion;
}
if (keyL) {
aumentoX -= aceleracion;
}
if (keyU) {
aumentoY -= aceleracion;
}
if (keyD) {
aumentoY += aceleracion;
}
if (aumentoX >= velMax) {
aumentoX = velMax;
}
if (aumentoX <= -velMax) {
aumentoX = -velMax;
}
if (aumentoY >= velMax) {
aumentoY = velMax;
}
if (aumentoY <= -velMax) {
aumentoY = -velMax;
}
if (keyR == 0 and keyL == 0) {
if (aumentoX > 0) {
aumentoX -= aceleracion;
flagXPos = 1;
} else {
flagXPos = 0;
}
if (aumentoX < 0) {
aumentoX += aceleracion;
flagXNeg = 1;
} else {
flagXNeg = 0;
}
}
if (flagXPos and flagXNeg) {
aumentoX = 0;
}
if (keyU == 0 and keyD == 0) {
if (aumentoY > 0) {
aumentoY -= aceleracion;
flagYPos = 1;
} else {
flagYPos = 0;
}
if (aumentoY < 0) {
aumentoY += aceleracion;
flagYNeg = 1;
} else {
flagYNeg = 0;
}
}
if (flagYPos and flagYNeg) {
aumentoY = 0;
}
A = flagXPos;
B = flagXNeg;
if (keyU and keyR) {
Sprite.gotoAndStop('UR');
direccion = 'ur';
} else {
if (keyU and keyL) {
Sprite.gotoAndStop('UL');
direccion = 'ul';
} else {
if (keyD and keyR) {
Sprite.gotoAndStop('DR');
direccion = 'dr';
} else {
if (keyD and keyL) {
Sprite.gotoAndStop('DL');
direccion = 'dl';
} else {
if (keyU) {
Sprite.gotoAndStop('Up');
direccion = 'u';
} else {
if (keyD) {
Sprite.gotoAndStop('Down');
direccion = 'd';
} else {
if (keyL) {
Sprite.gotoAndStop('Left');
direccion = 'l';
} else {
if (keyR) {
Sprite.gotoAndStop('Right');
direccion = 'r';
}
}
}
}
}
}
}
}
if (Score == 20) {
flamethrower = 1;
}
if (flamethrower) {
if (keyS) {
Musica.gotoAndPlay('Flame');
switch (direccion) {
case 'r':
Flame.gotoAndStop('Right');
Flame._rotation = 0;
break;
case 'l':
Flame.gotoAndStop('Left');
Flame._rotation = 0;
break;
case 'u':
Flame.gotoAndStop('Right');
Flame._rotation = 270;
break;
case 'd':
Flame.gotoAndStop('Right');
Flame._rotation = 90;
break;
case 'dr':
Flame.gotoAndStop('Right');
Flame._rotation = 45;
break;
case 'dl':
Flame.gotoAndStop('Left');
Flame._rotation = -45;
break;
case 'ur':
Flame.gotoAndStop('Right');
Flame._rotation = -45;
break;
case 'ul':
Flame.gotoAndStop('Left');
Flame._rotation = 45;
}
Flame._x = x;
Flame._y = y;
if (Enemy.hitTest(Flame)) {
Score += 1;
Mapuches += 1;
EnemySpawned = 0;
flickering = 60;
duplicateMovieClip(Quemado, 'Quemandose', 1);
Quemandose._x = Enemy._x;
Quemandose._y = Enemy._y;
randum = Math.round(Math.random() * 2) + 1;
switch (randum) {
case 1:
Musica.gotoAndPlay('Mapuche1');
break;
case 2:
Musica.gotoAndPlay('Mapuche2');
}
Musica.gotoAndPlay('Flame');
Enemy._x = Math.round(Math.random() * 640);
Enemy._y = Math.round(Math.random() * 360);
EaumentoY *= 1.05;
EaumentoX *= 1.05;
}
} else {
Musica.gotoAndPlay('Callate');
Flame._x = 580;
Flame._y = -200;
}
} else {
if (keyS and !Shooting) {
Musica.gotoAndPlay('Zap');
Shooting = ShootLife;
ShootingNow = ShootLife;
Bullet._x = Sprite._x;
Bullet._y = Sprite._y;
}
if (Shooting > 0) {
Shooting -= 1;
}
if (ShootingNow > 0) {
if (!ShootingFlag) {
BulletSpeedX = aumentoX;
BulletSpeedY = aumentoY;
switch (direccion) {
case 'u':
BSpeedX = 0;
BSpeedY = -5;
break;
case 'd':
BSpeedX = 0;
BSpeedY = 5;
break;
case 'r':
BSpeedX = 5;
BSpeedY = 0;
break;
case 'l':
BSpeedX = -5;
BSpeedY = 0;
break;
case 'ur':
BSpeedX = 3;
BSpeedY = -3;
break;
case 'ul':
BSpeedX = -3;
BSpeedY = -3;
break;
case 'dr':
BSpeedX = 3;
BSpeedY = 3;
break;
case 'dl':
BSpeedX = -3;
BSpeedY = 3;
}
}
Bullet._x += BulletSpeedX + BSpeedX;
Bullet._y += BulletSpeedY + BSpeedY;
ShootingFlag = 1;
ShootingNow -= 1;
} else {
Bullet._x = -300;
Bullet._y = -300;
ShootingFlag = 0;
}
}
x += aumentoX;
y += aumentoY;
if (x >= 640) {
x = 1;
}
if (x <= 0) {
x = 639;
}
if (y >= 360) {
y = 1;
}
if (y <= 0) {
y = 359;
}
Sprite._x = x;
Sprite._y = y;
if (!EnemySpawned and flickering > 0) {
EFlicker._x = Enemy._x;
EFlicker._y = Enemy._y;
flickering -= 1;
Enemy._alpha = 0;
}
if (flickering <= 0) {
EnemySpawned = 1;
EFlicker._x = -300;
EFlicker._y = -300;
Enemy._alpha = 100;
}
if (EnemySpawned) {
Enemy._x += EaumentoX;
Enemy._y += EaumentoY;
if (Enemy._y > 360) {
EaumentoY = -EaumentoY;
}
if (Enemy._x > 640) {
EaumentoX = -EaumentoX;
}
if (Enemy._y < 0) {
EaumentoY = -EaumentoY;
}
if (Enemy._x < 0) {
EaumentoX = -EaumentoX;
}
if (Enemy.hitTest(Bullet)) {
Score += 1;
Mapuches += 1;
EnemySpawned = 0;
flickering = 60;
Bullet._x = -300;
Bullet._y = -300;
duplicateMovieClip(Explosion, 'Explotando', 1);
Explotando._x = Enemy._x;
Explotando._y = Enemy._y;
randum = Math.round(Math.random() * 2) + 1;
switch (randum) {
case 1:
Musica.gotoAndPlay('Mapuche1');
break;
case 2:
Musica.gotoAndPlay('Mapuche2');
}
Shooting = 0;
ShootingNow = 0;
Enemy._x = Math.round(Math.random() * 640);
Enemy._y = Math.round(Math.random() * 360);
EaumentoY *= 1.05;
EaumentoX *= 1.05;
}
}
if (Enemy.hitTest(Sprite) and !dead and !flickering) {
keyU = 0;
keyD = 0;
keyL = 0;
keyR = 0;
keyS = 0;
aumentoX = 0;
aumentoY = 0;
stopAllSounds();
Sprite.gotoAndPlay('Dead');
Musica.gotoAndPlay('Boom');
dead = 1;
Replay._x = 320;
Replay._y = 180;
Mouse.show();
}
America._y -= 0.1;
if (America._y < -340) {
America._y = -340;
}
if (Mapuches >= Mapuches4Nuke) {
Santiago._x = America._x + 429;
Santiago._y = America._y + 555;
if (!dead) {
Nuke._x = Sprite._x;
Nuke._y = Sprite._y + 20;
} else {
Nuke._x = -600;
Nuke._y = -600;
}
if (Santiago._y < 360) {
NukeMsg._x = 270;
NukeMsg._y = 348;
}
} else {
Santiago._x = -300;
Santiago._y = -300;
Nuke._x = -600;
Nuke._y = -600;
NukeMsg._x = -600;
NukeMsg._y = -600;
}
if (keyS and Nuke.hitTest(Santiago)) {
stopAllSounds();
Mouse.show();
gotoAndPlay(5);
}
};
}
movieClip 24 {
}
movieClip 29 {
}
movieClip 44 {
frame 46 {
stop();
}
}
movieClip 51 {
frame 1 {
stop();
}
frame 27 {
stop();
}
frame 63 {
stop();
}
frame 88 {
stop();
}
frame 115 {
stop();
}
frame 130 {
stop();
}
}
movieClip 54 {
}
movieClip 63 {
}
button 66 {
on (release) {
gotoAndPlay(4);
}
}
movieClip 68 {
}
movieClip 126 {
frame 75 {
this.removeMovieClip();
}
}
movieClip 128 {
}
movieClip 131 {
}
movieClip 133 {
}
movieClip 134 {
}
movieClip 175 {
frame 75 {
this.removeMovieClip();
}
}
instance of movieClip 9 {
onClipEvent (press) {
getURL('http://osakachan.co.cc/', '');
}
}
frame 4 {
gotoAndPlay(3);
}
frame 5 {
}
movieClip 185 {
}
movieClip 187 {
}
movieClip 190 {
}
movieClip 193 {
}
movieClip 194 {
}
movieClip 199 {
}
movieClip 202 {
}
frame 1626 {
stop();
}
button 208 {
on (release) {
stopAllSounds();
gotoAndPlay(1);
}
}