Frame 1
function envoyerstats() {
loadVariablesNum ("http://www.croustibat.fr/stats/entrer_stats_jeu.php", 0, "POST");
}
loadVariablesNum ("../phps/lit_highscore.php", 0, "POST");
_root.Turns = 0;
if (rejoue == 1) {
play();
} else {
clearInterval(interstats);
interstats = setInterval(envoyerstats, 10000);
st_os = System.capabilities.os;
st_resolution = (System.capabilities.screenResolutionX add "x") add System.capabilities.screenResolutionY;
st_langue = System.capabilities.language;
st_sess = ac_sess;
st_reference = ac_reference;
_root.initialise1fois = 0;
envoyerstats();
_root.nom = "crousti";
_root.monmail = "";
stop();
}
Instance of Symbol 495 MovieClip in Frame 1
onClipEvent (enterFrame) {
percent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Bar._xscale = percent;
if (percent > 98) {
_root.play();
}
}
Frame 2
if (rejoue == 1) {
play();
} else {
stop();
}
Frame 3
if (rejoue == 1) {
play();
} else {
stop();
}
Frame 4
function Create_Enemy_01(L_Name, X_Pos, Y_Pos) {
var _local1 = _root;
_local1.EnemyNumber = _local1.EnemyNumber + 1;
if (_local1.EnemyNumber >= _local1.EnemyNumberMax) {
_local1.EnemyNumber = 0;
}
_local1.attachMovie(L_Name, "Enemy_" add _local1.EnemyNumber, 600 + _local1.EnemyNumber);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _x , X_Pos);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _y , Y_Pos);
}
function Create_Enemy_02_a(L_Name, X_Pos, Y_Pos, Angle) {
var _local1 = _root;
_local1.EnemyNumber = _local1.EnemyNumber + 1;
if (_local1.EnemyNumber >= _local1.EnemyNumberMax) {
_local1.EnemyNumber = 0;
}
_local1.attachMovie(L_Name, "Enemy_" add _local1.EnemyNumber, 600 + _local1.EnemyNumber);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _x , X_Pos);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _y , Y_Pos);
Set(("_root.Enemy_" add _local1.EnemyNumber) add ".Angle", Angle);
}
function Create_Enemy_02_b(L_Name, X_Pos, Y_Pos, Trace1) {
var _local1 = _root;
_local1.EnemyNumber = _local1.EnemyNumber + 1;
if (_local1.EnemyNumber >= _local1.EnemyNumberMax) {
_local1.EnemyNumber = 0;
}
_local1.attachMovie(L_Name, "Enemy_" add _local1.EnemyNumber, 600 + _local1.EnemyNumber);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _x , X_Pos);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _y , Y_Pos);
Set(("_root.Enemy_" add _local1.EnemyNumber) add ".Trace", Trace1);
}
function Create_Enemy_03(L_Name, X_Pos, Y_Pos, Angle, StartX, StartY) {
var _local1 = _root;
_local1.EnemyNumber = _local1.EnemyNumber + 1;
if (_local1.EnemyNumber >= _local1.EnemyNumberMax) {
_local1.EnemyNumber = 0;
}
_local1.attachMovie(L_Name, "Enemy_" add _local1.EnemyNumber, 600 + _local1.EnemyNumber);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _x , X_Pos);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _y , Y_Pos);
Set(("_root.Enemy_" add _local1.EnemyNumber) add ".Angle", Angle);
Set(("_root.Enemy_" add _local1.EnemyNumber) add ".StartX", StartX);
Set(("_root.Enemy_" add _local1.EnemyNumber) add ".StartY", StartY);
}
function Create_Enemy_04(L_Name, X_Pos, Y_Pos) {
var _local1 = _root;
_local1.EnemyNumber = _local1.EnemyNumber + 1;
if (_local1.EnemyNumber >= _local1.EnemyNumberMax) {
_local1.EnemyNumber = 0;
}
_local1.attachMovie(L_Name, "Enemy_" add _local1.EnemyNumber, 600 + _local1.EnemyNumber);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _x , X_Pos);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _y , Y_Pos);
}
function Create_Enemy_05(L_Name, X_Pos, Y_Pos) {
var _local1 = _root;
_local1.EnemyNumber = _local1.EnemyNumber + 1;
if (_local1.EnemyNumber >= _local1.EnemyNumberMax) {
_local1.EnemyNumber = 0;
}
_local1.attachMovie(L_Name, "Enemy_" add _local1.EnemyNumber, 600 + _local1.EnemyNumber);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _x , X_Pos);
setProperty("_root.Enemy_" add _local1.EnemyNumber, _y , Y_Pos);
}
_root.LevelLeft = 0;
_root.LevelRight = 550;
_root.LevelTop = 0;
_root.LevelBottom = 317;
_root.Lives = 3;
_root.Panel.Score = 0;
_root.RTypeWeaponSet = 0;
_root.Turns = 0;
_root.ShootFriend = 0;
_root.ShootFriendMax = 20;
_root.CrashNumber = 0;
_root.CrashNumberMax = 50;
_root.Bonus = 0;
_root.BonusMax = 8;
_root.EnemyNumber = 0;
_root.EnemyNumberMax = 30;
_root.SatelliteUpExist = 0;
_root.SatelliteDownExist = 0;
_root.vieplus = 0;
_quality = "HIGH";
duplicateMovieClip ("Panel2", "Panel", 12000);
duplicateMovieClip ("contours", "contours2", 26000);
Panel.v4._visible = 0;
typetir = 0;
Frame 5
_root.GroundDownAktual = 0;
_root.GroundUpAktual = 0;
_root.GroundNumber = 0;
_root.GroundNumberMax = 20;
_root.GroundSpeed = -4;
_root.GroundDown = new Array(2, 3, 1, 3, 5, 2, 5, 1, 2, 2, 3, 4, 3, 1, 5, 1, 2, 2, 1, 2, 3, 3, 2, 1, 1, 2, 1, 3, 4, 1, 5, 2, 1, 1, 3, 2, 3, 1, 5, 1, 3, 1, 1, 3, 1, 1, 5, 3, 1, 3, 1, 2, 2, 1, 2, 1, 3, 2, 4, 5, 3, 2, 1, 5, 3, 2, 5, 1, 5, 1, 3, 1, 1, 3, 1, 1, 5, 3, 1, 3, 4, 2, 2, 5, 2, 1, 3, 2, 3, 1, 3, 1, 1, 3, 1, 1, 4, 3, 1, 3, 5, 2, 2, 5, 2, 3, 3, 1, 3, 1, 1, 5, 3, 1, 3, 5, 2, 2, 4, 2, 4, 3, 2, 5, 1, 3, 1, 1, 3, 1, 1, 5, 3, 1, 3, 5, 2, 2, 2, 2, 2, 3, 1, 3, 1, 1, 2, 3, 1, 3, 4, 2, 2, 5, 2, 2, 3, 2, 5, 1, 3, 1, 1, 3, 1, 1, 5, 3, 1, 3, 5, 2, 2, 5, 2, 4, 3);
_root.attachMovie("L_Ground_Down", "Ground_" add _root.GroundNumber, 250 + _root.GroundNumber);
_root["Ground_" add _root.GroundNumber].attachMovie("L_Ground_1_" add _root.GroundDown[_root.GroundDownAktual], "Plane", 50);
setProperty("_root.Ground_" add _root.GroundNumber, _x , _root.LevelLeft + (getProperty("_root.Ground_" add _root.GroundNumber, _width) / 2));
if (_root.GroundDown[_root.GroundDownAktual] == 0) {
setProperty("_root.Ground_" add _root.GroundNumber, _y , _root.LevelBottom + 100);
} else {
setProperty("_root.Ground_" add _root.GroundNumber, _y , _root.LevelBottom - (getProperty("_root.Ground_" add _root.GroundNumber, _height) / 2));
}
_root.GroundNumber = 1;
_root.attachMovie("L_Shield", "Shield", 510);
setProperty("_root.Shield", _x , -30);
setProperty("_root.Shield", _y , _root.LevelBottom / 2);
_root.attachMovie("L_R-Type_Killed", "R-Type_Killed", 499);
setProperty("_root.R-Type_Killed", _x , -100);
setProperty("_root.R-Type_Killed", _y , _root.LevelBottom / 2);
Panel2.removeMovieClip();
contours2.removeMovieClip();
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v1", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v2", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v3", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v4", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v1", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v2", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v3", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v4", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v" + Number(_root.typetir + 1), _visible , 1);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v" + Number(_root.typetir + 1), _visible , 1);
bisou = 0;
Frame 6
_root.Turns = _root.Turns + 1;
Frame 7
if ((_root.Turns >= 10) and (_root.Turns <= 12)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 50 + (100 * Math.random())));
}
if ((_root.Turns >= 17) and (_root.Turns <= 19)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 50 + (100 * Math.random())));
}
if ((_root.Turns >= 25) and (_root.Turns <= 28)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 50 + (100 * Math.random())));
}
if ((_root.Turns >= 43) and (_root.Turns <= 45)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 150 + (100 * Math.random())));
}
if ((_root.Turns >= 65) and (_root.Turns <= 66)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 100 + (100 * Math.random())));
}
if ((_root.Turns >= 110) and (_root.Turns <= 116)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 100 + (100 * Math.random())));
}
if ((_root.Turns >= 140) and (_root.Turns <= 146)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 100 + (100 * Math.random())));
}
if ((_root.Turns >= 187) and (_root.Turns <= 190)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 100 + (100 * Math.random())));
}
if ((_root.Turns >= 195) and (_root.Turns <= 197)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 100 + (100 * Math.random())));
}
if ((_root.Turns >= 130) and (_root.Turns <= 137)) {
call(Create_Enemy_01("L_Enemy_01", _root.LevelRight + 30, 100 + (100 * Math.random())));
}
if (_root.Turns == 70) {
_root.Bonus = _root.Bonus + 1;
if (_root.Bonus >= _root.BonusMax) {
_root.Bonus = 0;
}
_root.attachMovie("L_Bonus_3", "Bonus_" add _root.Bonus, 240 + _root.Bonus);
setProperty("_root.Bonus_" add _root.Bonus, _x , 500);
setProperty("_root.Bonus_" add _root.Bonus, _y , _root.LevelBottom / 2);
}
if (_root.Turns == 130) {
_root.Bonus = _root.Bonus + 1;
if (_root.Bonus >= _root.BonusMax) {
_root.Bonus = 0;
}
_root.attachMovie("L_Bonus_4", "Bonus_" add _root.Bonus, 240 + _root.Bonus);
setProperty("_root.Bonus_" add _root.Bonus, _x , 700);
setProperty("_root.Bonus_" add _root.Bonus, _y , _root.LevelBottom / 2);
}
Frame 8
if ((_root.Turns >= 34) and (_root.Turns <= 36)) {
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 100, 0));
call(Create_Enemy_02_a("L_Enemy_02_a", (_root.LevelRight + 30) + 65, 100, -1.2));
}
if ((_root.Turns >= 91) and (_root.Turns <= 93)) {
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 150, 0));
call(Create_Enemy_02_a("L_Enemy_02_a", (_root.LevelRight + 30) + 65, 150, -1.2));
}
if (_root.Turns == 102) {
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 150, 0));
}
if ((_root.Turns >= 120) and (_root.Turns <= 123)) {
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 100, 0));
call(Create_Enemy_02_a("L_Enemy_02_a", (_root.LevelRight + 30) + 65, 150, -1.2));
}
if ((_root.Turns >= 55) and (_root.Turns <= 56)) {
call(Create_Enemy_02_b("L_Enemy_02_b", 400, -30, 10));
call(Create_Enemy_02_b("L_Enemy_02_b", 400, -95, 16));
}
if ((_root.Turns >= 83) and (_root.Turns <= 84)) {
call(Create_Enemy_02_b("L_Enemy_02_b", 520, -30, 10));
call(Create_Enemy_02_b("L_Enemy_02_b", 520, -95, 16));
}
if ((_root.Turns >= 155) and (_root.Turns <= 157)) {
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 100, 0));
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 150, 0));
}
if ((_root.Turns >= 160) and (_root.Turns <= 165)) {
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 130, 0));
}
if ((_root.Turns >= 170) and (_root.Turns <= 180)) {
call(Create_Enemy_02_a("L_Enemy_02_a", _root.LevelRight + 30, 100, 0));
}
Frame 9
Frame 10
if (_root.Turns == 11) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 21) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 64) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 69) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 74) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 79) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 84) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 114) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 124) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 128) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 134) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
if (_root.Turns == 138) {
call(Create_Enemy_04("L_Enemy_04_01", _root.LevelRight + 30, 271));
}
Frame 11
Frame 12
if (_root.Turns == 76) {
call(Create_Enemy_04("L_Enemy_06", _root.LevelRight - 150, _root.LevelTop - 50));
}
if (_root.Turns == 96) {
call(Create_Enemy_04("L_Enemy_06", _root.LevelRight - 120, _root.LevelTop - 50));
}
if (_root.Turns == 140) {
call(Create_Enemy_04("L_Enemy_06", _root.LevelRight - 150, _root.LevelTop - 50));
}
if (_root.Turns == 170) {
call(Create_Enemy_04("L_Enemy_06", _root.LevelRight - 120, _root.LevelTop - 50));
}
if (_root.Turns == 185) {
call(Create_Enemy_04("L_Enemy_06", _root.LevelRight - 250, _root.LevelTop - 50));
}
Frame 13
Frame 14
Frame 15
if (_root.Turns == 205) {
_root.GroundSpeed = 0;
Stars.gotoAndStop(1);
call(Create_Enemy_05("L_Enemy_07", 550, 150));
}
if (_root.Turns == 9000) {
_root.GroundSpeed = -2;
Stars.Play();
call(Create_Enemy_05("L_Enemy_09", 600, 100));
call(Create_Enemy_05("L_Enemy_08", 550, 80));
}
Frame 18
gotoAndPlay (6);
Frame 23
_root.Bonus = _root.Bonus + 1;
if (_root.Bonus >= _root.BonusMax) {
_root.Bonus = 0;
}
_root.attachMovie("L_Bonus_2", "Bonus_" add _root.Bonus, 240 + _root.Bonus);
setProperty("_root.Bonus_" add _root.Bonus, _x , 400);
setProperty("_root.Bonus_" add _root.Bonus, _y , (_root.LevelBottom / 2) - 100);
_root.Bonus = _root.Bonus + 1;
if (_root.Bonus >= _root.BonusMax) {
_root.Bonus = 0;
}
_root.attachMovie("L_Bonus_4", "Bonus_" add _root.Bonus, 240 + _root.Bonus);
setProperty("_root.Bonus_" add _root.Bonus, _x , 600);
setProperty("_root.Bonus_" add _root.Bonus, _y , _root.LevelBottom / 2);
_root.Bonus = _root.Bonus + 1;
if (_root.Bonus >= _root.BonusMax) {
_root.Bonus = 0;
}
_root.attachMovie("L_Bonus_5", "Bonus_" add _root.Bonus, 240 + _root.Bonus);
setProperty("_root.Bonus_" add _root.Bonus, _x , 500);
setProperty("_root.Bonus_" add _root.Bonus, _y , _root.LevelBottom / 2);
_root.attachMovie("L_Satellite_Down", "Satellite_Down", 502);
setProperty("_root.Satellite_Down", _x , 500);
setProperty("_root.Satellite_Down", _y , 100);
_root.attachMovie("L_Satellite_Up", "Satellite_Up", 503);
setProperty("_root.Satellite_Up", _x , 200);
setProperty("_root.Satellite_Up", _y , 200);
Frame 24
Panel.gotoAndStop(2);
monscore = _root.Panel.Score;
i = 0;
while (i < 1500) {
removeMovieClip("_root.Enemy_" + i);
removeMovieClip("_root.Bonus_" + i);
removeMovieClip("_root.Ground_" + i);
i++;
}
_root.GroundSpeed = 0;
removeMovieClip("R-Type_Killed");
removeMovieClip("_root.R-Type");
Stars.gotoAndStop(1);
stop();
Frame 25
stop();
Frame 26
Panel.gotoAndStop(2);
monscore = _root.Panel.Score;
i = 0;
while (i < 1500) {
removeMovieClip("_root.Enemy_" + i);
removeMovieClip("_root.Bonus_" + i);
removeMovieClip("_root.Ground_" + i);
i++;
}
_root.GroundSpeed = 0;
removeMovieClip("R-Type_Killed");
removeMovieClip("_root.R-Type");
Stars.gotoAndStop(1);
stop();
Frame 27
stop();
Frame 28
loadVariablesNum ("../phps/ecrit_highscore.php", 0, "POST");
Symbol 10 MovieClip [L_06_Crash] Frame 9
this.removeMovieClip();
stop();
Symbol 11 MovieClip [L_04_Crash] Frame 9
this.removeMovieClip();
stop();
Symbol 12 MovieClip [L_03_Crash] Frame 9
this.removeMovieClip();
stop();
Symbol 13 MovieClip [L_02_Crash] Frame 9
this.removeMovieClip();
stop();
Symbol 14 MovieClip [L_01_Crash] Frame 7
this.removeMovieClip();
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 16
gotoAndStop (1);
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 16
gotoAndStop (1);
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 30
_root.bisou2 = 1;
Symbol 67 MovieClip Frame 51
stop();
Symbol 86 MovieClip Frame 1
a1.gotoAndPlay(2);
a2.gotoAndPlay(2);
a3.gotoAndPlay(2);
Symbol 87 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 106 MovieClip [L_R-Type_Killed] Frame 1
function Mega_Shot_Create(MegaS) {
var _local1 = _root;
var _local2 = this;
_local1.ShootFriend = _local1.ShootFriend + 1;
if (_local1.ShootFriend == _local1.ShootFriendMax) {
_local1.ShootFriend = 0;
}
_local1.attachMovie("L_Mega_Shot_Movie", "ShootFriend_" add _local1.ShootFriend, 200 + _local1.ShootFriend);
if (_local1.typetir == 0) {
_local1["ShootFriend_" add _local1.ShootFriend].attachMovie("L_MegaShot_" add MegaS, "Plane", 200 + _local1.ShootFriend);
}
if (_local1.typetir == 1) {
_local1["ShootFriend_" add _local1.ShootFriend].attachMovie("L_ballon", "Plane", 200 + _local1.ShootFriend);
}
if (_local1.typetir == 2) {
_local1["ShootFriend_" add _local1.ShootFriend].attachMovie("L_glacon", "Plane", 200 + _local1.ShootFriend);
}
if (_local1.Shield.ShieldAttached) {
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _x , (getProperty("_root.Shield", _x) + (getProperty("_root.Shield", _width) / 2)) + (getProperty("_root.ShootFriend_" add _local1.ShootFriend, _width) / 2));
} else {
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _x , (getProperty(_local2, _x) + (getProperty(_local2, _width) / 2)) + (getProperty("_root.ShootFriend_" add _local1.ShootFriend, _width) / 2));
}
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _y , getProperty(_local2, _y) + 5);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedX", _0speedx + 10);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedY", 0);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".Power", 1 + ((3 * MegaS) * (_local1.typetir + 1)));
}
this.RTypeKilled = 0;
this.RtypeBright = 0;
this.RTypeKilledRound = 30;
RTypeSpeed = 5;
RTypePos = 0;
RTypeWidthHalf = getProperty(this, _width) / 2;
RTypeHeightHalf = getProperty(this, _height) / 2;
_root.RTypeLoadPosX = 51;
_root.RTypeLoadPosY = 10;
_root.RTypeSingle = 0;
_root.RTypeMega = 0;
_root.RTypeShield = 0;
_root.RTypeShot = 0;
_root.RTypeShieldAttached = 0;
_root.RTypeShieldDirection = 1;
tellTarget (this.Plane) {
gotoAndStop ("Position_0");
};
this.attachMovie("L_Load_01", "Load", 512);
this.attachMovie("L_Load_02", "Load_Small", 513);
Plane.bonhom.milieu.m1.v1._visible = 0;
Plane.bonhom.milieu.m1.v2._visible = 0;
Plane.bonhom.milieu.m1.v3._visible = 0;
Plane.bonhom.milieu.m1.v4._visible = 0;
setProperty("Plane.bonhom.milieu.m1.v" + Number(_root.typetir + 1), _visible , 1);
setProperty("Plane.bonhom.milieu.m2.v" + Number(_root.typetir + 1), _visible , 1);
Symbol 106 MovieClip [L_R-Type_Killed] Frame 2
if (!Key.isDown(83)) {
if (_root.RTypeWeaponSeries1 != 0) {
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
if (_root.RTypeWeaponSeries1 > 15) {
_root.RTypeWeaponSeries1 = 0;
}
}
if (_root.RTypeSingle != 0) {
_root.RTypeSingle = _root.RTypeSingle + 1;
if (_root.RTypeSingle > 3) {
_root.RTypeSingle = 0;
}
}
}
if (Key.isDown(83)) {
if (_root.Shield.ShieldAttached & _root.Shield.ShieldDirection) {
setProperty("_root.Load_Small", _x , (getProperty(this, _x) + _root.RTypeLoadPosX) + getProperty("_root.Shield", _width));
setProperty("_root.Load_Small", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
} else {
setProperty("_root.Load_Small", _x , getProperty(this, _x) + _root.RTypeLoadPosX);
setProperty("_root.Load_Small", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
}
if (_root.Shield.ShieldAttached) {
if (_root.RTypeWeaponSeries2 == 0) {
call(WeaponSeries2());
}
}
if (_root.RTypeWeaponSeries1 == 0) {
if (_root.Shield.ShieldAttached) {
call(WeaponSeries1());
}
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
} else if (_root.RTypeWeaponSeries1 < 15) {
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
} else {
_root.RTypeWeaponSeries1 = 0;
}
if (_root.RTypeSingle == 0) {
tellTarget ("_root.Load_Small") {
gotoAndPlay (2);
};
if (_root.Shield.ShieldAttached) {
call(Shoot_Attached());
} else {
call(Shoot_Not_Attached());
}
_root.RTypeSingle = _root.RTypeSingle + 1;
} else if (_root.RTypeSingle < 7) {
_root.RTypeSingle = _root.RTypeSingle + 1;
} else {
_root.RTypeSingle = 0;
}
}
if (!Key.isDown(32)) {
tellTarget ("_root.Panel.Power_L") {
gotoAndStop (1);
};
if (_root.RTypeMega != 0) {
call(Mega_Shot_Create(Math.round(_root.RTypeMega / 10)));
}
_root.RTypeMega = 0;
_root.RTypeShot = 0;
tellTarget ("_root.Load") {
gotoAndStop (1);
};
}
if (Key.isDown(32)) {
_root.RTypeMega = _root.RTypeMega + 1;
Plane.milieu.play();
Plane.tete.gotoAndPlay(5);
if (_root.RTypeMega > 50) {
_root.RTypeMega = 50;
}
tellTarget ("_root.Panel.Power_L") {
gotoAndStop(_root.RTypeMega);
};
if (_root.Shield.ShieldAttached & _root.Shield.ShieldDirection) {
setProperty("_root.Load", _x , (getProperty(this, _x) + _root.RTypeLoadPosX) + getProperty("_root.Shield", _width));
setProperty("_root.Load", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
} else {
setProperty("_root.Load", _x , getProperty(this, _x) + _root.RTypeLoadPosX);
setProperty("_root.Load", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
}
if (_root.RTypeShot == 0) {
tellTarget ("_root.Load") {
gotoAndPlay (2);
};
}
_root.RTypeShot = 1;
}
setProperty(this, _x , getProperty(this, _x) + RTypeSpeed);
if (getProperty(this, _x) >= 100) {
gotoAndPlay (4);
}
if (this.RtypeBright) {
this.RtypeBright = 0;
setProperty(this.Plane, _alpha , 80);
} else {
setProperty(this.Plane, _alpha , 40);
this.RtypeBright = 1;
}
Symbol 106 MovieClip [L_R-Type_Killed] Frame 3
gotoAndPlay (2);
Symbol 106 MovieClip [L_R-Type_Killed] Frame 4
if (!Key.isDown(83)) {
if (_root.RTypeWeaponSeries1 != 0) {
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
if (_root.RTypeWeaponSeries1 > 15) {
_root.RTypeWeaponSeries1 = 0;
}
}
if (_root.RTypeSingle != 0) {
_root.RTypeSingle = _root.RTypeSingle + 1;
if (_root.RTypeSingle > 3) {
_root.RTypeSingle = 0;
}
}
}
if (Key.isDown(83)) {
if (_root.Shield.ShieldAttached & _root.Shield.ShieldDirection) {
setProperty("_root.Load_Small", _x , (getProperty(this, _x) + _root.RTypeLoadPosX) + getProperty("_root.Shield", _width));
setProperty("_root.Load_Small", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
} else {
setProperty("_root.Load_Small", _x , getProperty(this, _x) + _root.RTypeLoadPosX);
setProperty("_root.Load_Small", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
}
if (_root.Shield.ShieldAttached) {
if (_root.RTypeWeaponSeries2 == 0) {
call(WeaponSeries2());
}
}
if (_root.RTypeWeaponSeries1 == 0) {
if (_root.Shield.ShieldAttached) {
call(WeaponSeries1());
}
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
} else if (_root.RTypeWeaponSeries1 < 15) {
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
} else {
_root.RTypeWeaponSeries1 = 0;
}
if (_root.RTypeSingle == 0) {
tellTarget ("_root.Load_Small") {
gotoAndPlay (2);
};
if (_root.Shield.ShieldAttached) {
call(Shoot_Attached());
} else {
call(Shoot_Not_Attached());
}
_root.RTypeSingle = _root.RTypeSingle + 1;
} else if (_root.RTypeSingle < 7) {
_root.RTypeSingle = _root.RTypeSingle + 1;
} else {
_root.RTypeSingle = 0;
}
}
if (!Key.isDown(32)) {
tellTarget ("_root.Panel.Power_L") {
gotoAndStop (1);
};
if (_root.RTypeMega != 0) {
call(Mega_Shot_Create(Math.round(_root.RTypeMega / 10)));
}
_root.RTypeMega = 0;
_root.RTypeShot = 0;
tellTarget ("_root.Load") {
gotoAndStop (1);
};
}
if (Key.isDown(32)) {
_root.RTypeMega = _root.RTypeMega + 1;
Plane.milieu.play();
Plane.tete.gotoAndPlay(5);
if (_root.RTypeMega > 50) {
_root.RTypeMega = 50;
}
tellTarget ("_root.Panel.Power_L") {
gotoAndStop(_root.RTypeMega);
};
if (_root.Shield.ShieldAttached & _root.Shield.ShieldDirection) {
setProperty("_root.Load", _x , (getProperty(this, _x) + _root.RTypeLoadPosX) + getProperty("_root.Shield", _width));
setProperty("_root.Load", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
} else {
setProperty("_root.Load", _x , getProperty(this, _x) + _root.RTypeLoadPosX);
setProperty("_root.Load", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
}
if (_root.RTypeShot == 0) {
tellTarget ("_root.Load") {
gotoAndPlay (2);
};
}
_root.RTypeShot = 1;
}
this.RTypeKilled = this.RTypeKilled + 1;
if (this.RtypeBright) {
this.RtypeBright = 0;
setProperty(this.Plane, _alpha , 80);
} else {
setProperty(this.Plane, _alpha , 40);
this.RtypeBright = 1;
}
if (this.RTypeKilled == this.RTypeKilledRound) {
pom2x = getProperty("_root.R-Type_Killed", _x);
pom2y = getProperty("_root.R-Type_Killed", _y);
_root.attachMovie("L_R-Type", "R-Type", 500);
setProperty("_root.R-Type", _x , pom2x);
setProperty("_root.R-Type", _y , pom2y);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v1", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v2", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v3", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v4", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v1", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v2", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v3", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v4", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v" + Number(_root.typetir + 1), _visible , 1);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v" + Number(_root.typetir + 1), _visible , 1);
this.removeMovieClip();
}
if (Key.isDown(37)) {
if (((getProperty(this, _x) - RTypeSpeed) - RTypeWidthHalf) > _root.LevelLeft) {
setProperty(this, _x , getProperty(this, _x) - RTypeSpeed);
} else {
setProperty(this, _x , 0 + RTypeWidthHalf);
}
}
if (Key.isDown(39)) {
if (((getProperty(this, _x) + RTypeSpeed) + RTypeWidthHalf) < _root.LevelRight) {
setProperty(this, _x , getProperty(this, _x) + RTypeSpeed);
} else {
setProperty(this, _x , _root.LevelRight - RTypeWidthHalf);
}
}
if (Key.isDown(38)) {
if (((getProperty(this, _y) - RTypeSpeed) - RTypeHeightHalf) > _root.LevelTop) {
setProperty(this, _y , getProperty(this, _y) - (RTypeSpeed / (3 + RTypePos)));
} else {
setProperty(this, _y , _root.LevelTop + RTypeHeightHalf);
}
if (RTypePos > -2) {
RTypePos = RTypePos - 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
}
if (Key.isDown(40)) {
if (((getProperty(this, _y) + RTypeSpeed) + RTypeHeightHalf) < _root.LevelBottom) {
setProperty(this, _y , getProperty(this, _y) + (RTypeSpeed / (3 - RTypePos)));
} else {
setProperty(this, _y , _root.LevelBottom - RTypeHeightHalf);
}
if (RTypePos < 2) {
RTypePos = RTypePos + 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
}
if ((!Key.isDown(40)) and (!Key.isDown(38))) {
if (RTypePos > 0) {
RTypePos = RTypePos - 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
if (RTypePos < 0) {
RTypePos = RTypePos + 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
}
Symbol 106 MovieClip [L_R-Type_Killed] Frame 5
gotoAndPlay (4);
Symbol 109 MovieClip Frame 1
stop();
Symbol 110 MovieClip [L_R-Type] Frame 1
_root.death = 0;
RTypeSpeed = 5;
RTypePos = 0;
RTypeWidthHalf = getProperty(this, _width) / 2;
RTypeHeightHalf = getProperty(this, _height) / 2;
_root.RTypeLoadPosX = 51;
_root.RTypeWeaponSeries1 = 0;
_root.RTypeWeaponSeries2 = 0;
_root.RTypeLoadPosY = 10;
_root.RTypeSingle = 0;
_root.RTypeMega = 0;
_root.RTypeShield = 0;
_root.RTypeShot = 0;
_root.RTypeShieldAttached = 0;
_root.RTypeShieldDirection = 1;
tellTarget (this.Plane) {
gotoAndStop ("Position_0");
};
_root.attachMovie("L_Load_01", "Load", 512);
_root.attachMovie("L_Load_02", "Load_Small", 513);
Plane.bonhom.milieu.m1.v1._visible = 0;
Plane.bonhom.milieu.m1.v2._visible = 0;
Plane.bonhom.milieu.m1.v3._visible = 0;
Plane.bonhom.milieu.m1.v4._visible = 0;
setProperty("Plane.bonhom.milieu.m1.v" + Number(_root.typetir + 1), _visible , 1);
setProperty("Plane.bonhom.milieu.m2.v" + Number(_root.typetir + 1), _visible , 1);
function Shoot_Create(xpos, ypos, speedx, speedy, rotation) {
var _local1 = _root;
_local1.ShootFriend = _local1.ShootFriend + 1;
if (_local1.ShootFriend == _local1.ShootFriendMax) {
_local1.ShootFriend = 0;
}
_local1.attachMovie("L_Shoot_01", "ShootFriend_" add _local1.ShootFriend, 200 + _local1.ShootFriend);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _x , xpos);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _y , ypos);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _rotation , rotation);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedX", speedx);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedY", speedy);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".Power", 1);
}
function Bonus_Shot_1(xpos, ypos, speedx, speedy, rotation, br) {
var _local1 = _root;
_local1.ShootFriend = _local1.ShootFriend + 1;
if (_local1.ShootFriend == _local1.ShootFriendMax) {
_local1.ShootFriend = 0;
}
_local1.attachMovie("Bonus_Shot_" add br, "ShootFriend_" add _local1.ShootFriend, 200 + _local1.ShootFriend);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _x , xpos);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _y , ypos);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _rotation , rotation);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedX", speedx);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedY", speedy);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".Power", 4);
}
function Bonus_Shot_2(xpos, ypos, br) {
var _local1 = _root;
_local1.ShootFriend = _local1.ShootFriend + 1;
if (_local1.ShootFriend == _local1.ShootFriendMax) {
_local1.ShootFriend = 0;
}
_local1.attachMovie("Bonus_Shot_02_" add br, "ShootFriend_" add _local1.ShootFriend, 200 + _local1.ShootFriend);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _x , xpos);
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _y , ypos);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".Power", 10);
}
function Shoot_Attached() {
call(Shoot_Create(getProperty("_root.Load_Small", _x), getProperty("_root.Load_Small", _y) - 4, _0speedx, _0speedy, 0));
}
function WeaponSeries1() {
var _local1 = _root;
if (_local1.RTypeWeaponSet == 1) {
if (_local1.Shield.ShieldDirection) {
call(Bonus_Shot_1(getProperty("_root.R-Type", _x), getProperty("_root.R-Type", _y) - 22, _0speedx + 5, _0speedy, 0, 1));
call(Bonus_Shot_1(getProperty("_root.R-Type", _x), getProperty("_root.R-Type", _y) + 22, _0speedx + 5, _0speedy, 0, 2));
if (_local1.SatelliteUpExist == 1) {
call(Bonus_Shot_1(getProperty("_root.Satellite_Up", _x) + 32, getProperty("_root.Satellite_Up", _y), _0speedx + 5, _0speedy, 0, 1));
}
if (_local1.SatelliteDownExist == 1) {
call(Bonus_Shot_1(getProperty("_root.Satellite_Down", _x) + 32, getProperty("_root.Satellite_Down", _y), _0speedx + 5, _0speedy, 0, 2));
}
} else {
call(Bonus_Shot_1(getProperty("_root.R-Type", _x), getProperty("_root.R-Type", _y) - 22, (-_0speedx) - 5, _0speedy, 180, 1));
call(Bonus_Shot_1(getProperty("_root.R-Type", _x), getProperty("_root.R-Type", _y) + 22, (-_0speedx) - 5, _0speedy, 180, 2));
if (_local1.SatelliteUpExist == 1) {
call(Bonus_Shot_1(getProperty("_root.Satellite_Up", _x) - 32, getProperty("_root.Satellite_Up", _y), (-_0speedx) - 5, _0speedy, 180, 1));
}
if (_local1.SatelliteDownExist == 1) {
call(Bonus_Shot_1(getProperty("_root.Satellite_Down", _x) - 32, getProperty("_root.Satellite_Down", _y), (-_0speedx) - 5, _0speedy, 180, 2));
}
}
}
}
function WeaponSeries2() {
var _local1 = _root;
if ((_local1.RTypeWeaponSet == 2) & (_local1.RTypeWeaponSeries2 == 0)) {
_local1.RTypeWeaponSeries2 = 1;
if (_local1.Shield.ShieldDirection) {
call(Bonus_Shot_2(getProperty("_root.Shield", _x), getProperty("_root.Shield", _y), 1));
} else {
call(Bonus_Shot_2(getProperty("_root.Shield", _x), getProperty("_root.Shield", _y), 2));
}
}
}
function Shoot_Not_Attached() {
var _local1 = _root;
call(Shoot_Create(getProperty("_root.Load_Small", _x), getProperty("_root.Load_Small", _y) - 4, _0speedx, _0speedy, 0));
if (_local1.Shield.ShieldLevel == 1) {
if (_local1.Shield.ShieldDirection) {
call(Shoot_Create((getProperty("_root.Shield", _x) + (getProperty("_root.Shield", _width) / 2)) + _local1.RTypeLoadPosY, getProperty("_root.Shield", _y), _0speedx, _0speedy, 0));
} else {
call(Shoot_Create((getProperty("_root.Shield", _x) - (getProperty("_root.Shield", _width) / 2)) - _local1.RTypeLoadPosY, getProperty("_root.Shield", _y), -_0speedx, _0speedy, 180));
}
}
if (_local1.Shield.ShieldLevel == 2) {
if (_local1.Shield.ShieldDirection) {
call(Shoot_Create((getProperty("_root.Shield", _x) + (getProperty("_root.Shield", _width) / 2)) + 10, getProperty("_root.Shield", _y) - 5, _30speedx, -_30speedy, -30));
call(Shoot_Create((getProperty("_root.Shield", _x) + (getProperty("_root.Shield", _width) / 2)) + 10, getProperty("_root.Shield", _y) + 5, _30speedx, _30speedy, 30));
} else {
call(Shoot_Create((getProperty("_root.Shield", _x) - (getProperty("_root.Shield", _width) / 2)) - 10, getProperty("_root.Shield", _y) - 5, -_30speedx, -_30speedy, 210));
call(Shoot_Create((getProperty("_root.Shield", _x) - (getProperty("_root.Shield", _width) / 2)) - 10, getProperty("_root.Shield", _y) + 5, -_30speedx, _30speedy, 150));
}
}
if (_local1.Shield.ShieldLevel == 3) {
if (_local1.Shield.ShieldDirection) {
call(Shoot_Create((getProperty("_root.Shield", _x) + (getProperty("_root.Shield", _width) / 2)) + 10, getProperty("_root.Shield", _y) - 5, _30speedx, -_30speedy, -30));
call(Shoot_Create((getProperty("_root.Shield", _x) + (getProperty("_root.Shield", _width) / 2)) + 10, getProperty("_root.Shield", _y) + 5, _30speedx, _30speedy, 30));
call(Shoot_Create(getProperty("_root.Shield", _x), (getProperty("_root.Shield", _y) - getProperty("Shield", _height)) - 10, _90speedx, -_90speedy, -90));
call(Shoot_Create(getProperty("_root.Shield", _x), (getProperty("_root.Shield", _y) + getProperty("Shield", _height)) + 10, _90speedx, _90speedy, 90));
} else {
call(Shoot_Create((getProperty("_root.Shield", _x) - (getProperty("_root.Shield", _width) / 2)) - 10, getProperty("_root.Shield", _y) - 5, -_30speedx, -_30speedy, 210));
call(Shoot_Create((getProperty("_root.Shield", _x) - (getProperty("_root.Shield", _width) / 2)) - 10, getProperty("_root.Shield", _y) + 5, -_30speedx, _30speedy, 150));
call(Shoot_Create(getProperty("_root.Shield", _x), (getProperty("_root.Shield", _y) - getProperty("Shield", _height)) - 10, -_90speedx, -_90speedy, 270));
call(Shoot_Create(getProperty("_root.Shield", _x), (getProperty("_root.Shield", _y) + getProperty("Shield", _height)) + 10, -_90speedx, _90speedy, 90));
}
}
}
function Mega_Shot_Create(MegaS) {
var _local1 = _root;
var _local2 = this;
_local1.ShootFriend = _local1.ShootFriend + 1;
if (_local1.ShootFriend == _local1.ShootFriendMax) {
_local1.ShootFriend = 0;
}
_local1.attachMovie("L_Mega_Shot_Movie", "ShootFriend_" add _local1.ShootFriend, 200 + _local1.ShootFriend);
if (_local1.typetir == 0) {
_local1["ShootFriend_" add _local1.ShootFriend].attachMovie("L_MegaShot_" add MegaS, "Plane", 200 + _local1.ShootFriend);
}
if (_local1.typetir == 1) {
_local1["ShootFriend_" add _local1.ShootFriend].attachMovie("L_ballon", "Plane", 200 + _local1.ShootFriend);
}
if (_local1.typetir == 2) {
_local1["ShootFriend_" add _local1.ShootFriend].attachMovie("L_glacon", "Plane", 200 + _local1.ShootFriend);
}
if (_local1.Shield.ShieldAttached) {
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _x , (getProperty("_root.Shield", _x) + (getProperty("_root.Shield", _width) / 2)) + (getProperty("_root.ShootFriend_" add _local1.ShootFriend, _width) / 2));
} else {
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _x , (getProperty(_local2, _x) + (getProperty(_local2, _width) / 2)) + (getProperty("_root.ShootFriend_" add _local1.ShootFriend, _width) / 2));
}
setProperty("_root.ShootFriend_" add _local1.ShootFriend, _y , getProperty(_local2, _y) + 5);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedX", _0speedx + 10);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".SpeedY", 0);
Set(("_root.ShootFriend_" add _local1.ShootFriend) add ".Power", 1 + ((3 * MegaS) * (_local1.typetir + 1)));
}
_0speedx = 20;
_0speedy = 0;
_30speedx = 15;
_30speedy = 12;
_90speedx = _0speedy;
_90speedy = _0speedx;
Symbol 110 MovieClip [L_R-Type] Frame 2
if (_root.death == 1) {
_root.bisou = 0;
_root.death = 0;
_root.Lives = _root.Lives - 1;
if (_root.Lives == 0) {
_root.gotoAndPlay("gameover");
} else {
_root.Panel.v1._visible = 0;
_root.Panel.v2._visible = 0;
_root.Panel.v3._visible = 0;
_root.Panel.v4._visible = 0;
if (_root.Lives == 1) {
_root.Panel.v1._visible = 1;
}
if (_root.Lives == 2) {
_root.Panel.v1._visible = 1;
_root.Panel.v2._visible = 1;
}
if (_root.Lives == 3) {
_root.Panel.v1._visible = 1;
_root.Panel.v2._visible = 1;
_root.Panel.v3._visible = 1;
}
if (_root.Lives == 4) {
_root.Panel.v1._visible = 1;
_root.Panel.v2._visible = 1;
_root.Panel.v3._visible = 1;
_root.Panel.v4._visible = 1;
}
_root.attachMovie("L_R-Type_Killed", "R-Type_Killed", 499);
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_02_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
setProperty("_root.R-Type_Killed", _x , -150);
setProperty("_root.R-Type_Killed", _y , _root.LevelBottom / 2);
_root.RTypeWeaponSet = 0;
if (_root.SatelliteUpExist) {
_root.Satellite_Up.removeMovieClip();
_root.SatelliteUpExist = 0;
}
if (_root.SatelliteDownExist) {
_root.Satellite_Down.removeMovieClip();
_root.SatelliteDownExist = 0;
}
if (_root.Shield.ShieldLevel > 0) {
removeMovieClip("_root.Shield.Plane");
_root.Shield.ShieldLevel = 0;
}
_root.ShieldAvailable = 0;
_root.Load.removeMovieClip();
_rootLoad_Small.removeMovieClip();
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v1", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v2", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v3", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v4", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v1", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v2", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v3", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v4", _visible , 0);
setProperty("_root.R-Type_Killed.Plane.milieu.m1.v" + Number(_root.typetir + 1), _visible , 1);
setProperty("_root.R-Type_Killed.Plane.milieu.m2.v" + Number(_root.typetir + 1), _visible , 1);
this.removeMovieClip();
}
}
if (_root.bisou == 0) {
if (Key.isDown(37)) {
if (((getProperty(this, _x) - RTypeSpeed) - RTypeWidthHalf) > _root.LevelLeft) {
setProperty(this, _x , getProperty(this, _x) - RTypeSpeed);
} else {
setProperty(this, _x , 0 + RTypeWidthHalf);
}
}
if (Key.isDown(39)) {
if (((getProperty(this, _x) + RTypeSpeed) + RTypeWidthHalf) < _root.LevelRight) {
setProperty(this, _x , getProperty(this, _x) + RTypeSpeed);
} else {
setProperty(this, _x , _root.LevelRight - RTypeWidthHalf);
}
}
if (Key.isDown(38)) {
if (((getProperty(this, _y) - RTypeSpeed) - RTypeHeightHalf) > _root.LevelTop) {
setProperty(this, _y , getProperty(this, _y) - (RTypeSpeed / (3 + RTypePos)));
} else {
setProperty(this, _y , _root.LevelTop + RTypeHeightHalf);
}
if (RTypePos > -2) {
RTypePos = RTypePos - 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
}
if (Key.isDown(40)) {
if (((getProperty(this, _y) + RTypeSpeed) + RTypeHeightHalf) < _root.LevelBottom) {
setProperty(this, _y , getProperty(this, _y) + (RTypeSpeed / (3 - RTypePos)));
} else {
setProperty(this, _y , _root.LevelBottom - RTypeHeightHalf);
}
if (RTypePos < 2) {
RTypePos = RTypePos + 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
}
if ((!Key.isDown(40)) and (!Key.isDown(38))) {
if (RTypePos > 0) {
RTypePos = RTypePos - 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
if (RTypePos < 0) {
RTypePos = RTypePos + 0.5;
tellTarget (this.Plane) {
gotoAndStop("Position_" add this.RTypePos);
};
}
}
if (Key.isDown(74)) {
_root.Lives = 100;
}
} else if (_root.bisou == 1) {
Plane.bonhom.tete.gotoAndPlay(5);
_root.bisou = 2;
}
if (!Key.isDown(83)) {
if (_root.RTypeWeaponSeries1 != 0) {
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
if (_root.RTypeWeaponSeries1 > 15) {
_root.RTypeWeaponSeries1 = 0;
}
}
if (_root.RTypeSingle != 0) {
_root.RTypeSingle = _root.RTypeSingle + 1;
if (_root.RTypeSingle > 3) {
_root.RTypeSingle = 0;
}
}
}
if (Key.isDown(83)) {
if (_root.Shield.ShieldAttached & _root.Shield.ShieldDirection) {
setProperty("_root.Load_Small", _x , (getProperty(this, _x) + _root.RTypeLoadPosX) + getProperty("_root.Shield", _width));
setProperty("_root.Load_Small", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
} else {
setProperty("_root.Load_Small", _x , getProperty(this, _x) + _root.RTypeLoadPosX);
setProperty("_root.Load_Small", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
}
if (_root.Shield.ShieldAttached) {
if (_root.RTypeWeaponSeries2 == 0) {
call(WeaponSeries2());
}
}
if (_root.RTypeWeaponSeries1 == 0) {
if (_root.Shield.ShieldAttached) {
call(WeaponSeries1());
}
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
} else if (_root.RTypeWeaponSeries1 < 15) {
_root.RTypeWeaponSeries1 = _root.RTypeWeaponSeries1 + 1;
} else {
_root.RTypeWeaponSeries1 = 0;
}
if (_root.RTypeSingle == 0) {
tellTarget ("_root.Load_Small") {
gotoAndPlay (2);
};
if (_root.Shield.ShieldAttached) {
call(Shoot_Attached());
} else {
call(Shoot_Not_Attached());
}
_root.RTypeSingle = _root.RTypeSingle + 1;
} else if (_root.RTypeSingle < 7) {
_root.RTypeSingle = _root.RTypeSingle + 1;
} else {
_root.RTypeSingle = 0;
}
}
if (!Key.isDown(32)) {
tellTarget ("_root.Panel.Power_L") {
gotoAndStop (1);
};
if (_root.RTypeMega != 0) {
Plane.bonhom.milieu.play();
call(Mega_Shot_Create(Math.round(_root.RTypeMega / 10)));
}
_root.RTypeMega = 0;
_root.RTypeShot = 0;
tellTarget ("_root.Load") {
gotoAndStop (1);
};
}
if (Key.isDown(32)) {
_root.RTypeMega = _root.RTypeMega + 1;
if (_root.RTypeMega > 50) {
_root.RTypeMega = 50;
}
tellTarget ("_root.Panel.Power_L") {
gotoAndStop(_root.RTypeMega);
};
if (_root.Shield.ShieldAttached & _root.Shield.ShieldDirection) {
setProperty("_root.Load", _x , (getProperty(this, _x) + _root.RTypeLoadPosX) + getProperty("_root.Shield", _width));
setProperty("_root.Load", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
} else {
setProperty("_root.Load", _x , getProperty(this, _x) + _root.RTypeLoadPosX);
setProperty("_root.Load", _y , getProperty(this, _y) + _root.RTypeLoadPosY);
}
if (_root.RTypeShot == 0) {
tellTarget ("_root.Load") {
gotoAndPlay (2);
};
}
_root.RTypeShot = 1;
}
Symbol 110 MovieClip [L_R-Type] Frame 3
_root.Panel.Score = _root.Panel.Score + (int(this._x / 100) + int(this._y / 100));
if (_root.vieplus == 0) {
if (_root.Panel.Score > 3000) {
_root.vieplus = 1;
_root.Lives++;
trace("1vie");
_root.Panel.v1._visible = 0;
_root.Panel.v2._visible = 0;
_root.Panel.v3._visible = 0;
_root.Panel.v4._visible = 0;
if (_root.Lives == 1) {
_root.Panel.v1._visible = 1;
}
if (_root.Lives == 2) {
_root.Panel.v1._visible = 1;
_root.Panel.v2._visible = 1;
}
if (_root.Lives == 3) {
_root.Panel.v1._visible = 1;
_root.Panel.v2._visible = 1;
_root.Panel.v3._visible = 1;
}
if (_root.Lives == 4) {
_root.Panel.v1._visible = 1;
_root.Panel.v2._visible = 1;
_root.Panel.v3._visible = 1;
_root.Panel.v4._visible = 1;
}
}
}
gotoAndPlay (2);
Symbol 111 MovieClip [L_Shield] Frame 1
this.ShieldDistance = 150;
this.Power = 0.5;
this.ShieldSpeedXDiv = 20;
this.ShieldSpeedYDiv = 22;
this.ShieldFireSpeed = 20;
this.ShieldDirection = 1;
this.ShieldAttached = 0;
this.ShieldLevel = 0;
X_Shield = new Array();
Y_Shield = new Array();
X_Shield[1] = -42;
Y_Shield[1] = 5;
X_Shield[2] = -46;
Y_Shield[2] = 4;
X_Shield[3] = -48;
Y_Shield[3] = 4;
X_Shield[13] = 40;
Y_Shield[13] = 7;
X_Shield[14] = 48;
Y_Shield[14] = 7;
X_Shield[15] = 44;
Y_Shield[15] = 7;
Symbol 111 MovieClip [L_Shield] Frame 2
if (this.ShieldAttached) {
setProperty(this, _x , getProperty("_root.R-Type", _x) + X_Shield[this.ShieldLevel + (this.ShieldDirection * 12)]);
setProperty(this, _y , getProperty("_root.R-Type", _y) + Y_Shield[this.ShieldLevel + (this.ShieldDirection * 12)]);
if (Key.isDown(88)) {
this.ShieldAttached = 0;
gotoAndPlay ("Shield_Run");
}
} else {
if (getProperty("_root.R-Type", _x) < (_root.levelRight / 2)) {
xspeed = (_root.LevelRight - ShieldDistance) - getProperty("_root.Shield", _x);
} else {
xspeed = (_root.LevelLeft + ShieldDistance) - getProperty("_root.Shield", _x);
}
yspeed = getProperty("_root.R-Type", _y) - getProperty("_root.Shield", _y);
setProperty("_root.Shield", _x , getProperty("_root.Shield", _x) + (xspeed / ShieldSpeedXDiv));
setProperty("_root.Shield", _y , getProperty("_root.Shield", _y) + (yspeed / ShieldSpeedYDiv));
i = 0;
while (i <= _root.GroundNumberMax) {
if (this.hitTest(_root["Ground_" add i])) {
setProperty("_root.Shield", _x , (getProperty("_root.Shield", _x) - (1.2 * (xspeed / ShieldSpeedXDiv))) + _root.GroundSpeed);
}
i++;
}
if (this.hitTest("_root.R-Type")) {
this.ShieldAttached = 1;
this.ShieldDirection = Number(getProperty("_root.R-Type", _x) < getProperty(this, _x));
this.attachMovie((("L_Shield_" add this.ShieldLevel) add "_") add this.ShieldDirection, "Plane", 510);
}
}
i = 0;
while (i < _root.EnemyNumberMax) {
if (this.hitTest("_root.Enemy_" add i)) {
_root["Enemy_" add i].Defence = _root["Enemy_" add i].Defence - this.Power;
if (getProperty("_root.Enemy_" add i, _alpha) > 50) {
setProperty("_root.Enemy_" add i, _alpha , 50);
} else {
setProperty("_root.Enemy_" add i, _alpha , 100);
}
} else {
setProperty("_root.Enemy_" add i, _alpha , 100);
}
i++;
}
Symbol 111 MovieClip [L_Shield] Frame 3
gotoAndPlay (2);
Symbol 111 MovieClip [L_Shield] Frame 5
tellTarget (this.Plane.Plane) {
gotoAndPlay (2);
};
Symbol 111 MovieClip [L_Shield] Frame 6
if (this.ShieldDirection) {
i = 0;
while (i <= _root.GroundNumberMax) {
if (this.hitTest(_root["Ground_" add i])) {
setProperty("_root.Shield", _x , getProperty("_root.Shield", _x) + (3 * _root.GroundSpeed));
tellTarget (this.Plane.Plane) {
gotoAndStop (1);
};
gotoAndPlay (2);
}
i++;
}
if ((getProperty(this, _x) + (getProperty(this, _width) / 2)) < _root.LevelRight) {
setProperty(this, _x , getProperty(this, _x) + this.ShieldFireSpeed);
} else {
tellTarget (this.Plane.Plane) {
gotoAndStop (1);
};
gotoAndPlay (2);
}
} else {
i = 0;
while (i <= _root.GroundNumberMax) {
if (this.hitTest(_root["Ground_" add i])) {
setProperty("_root.Shield", _x , getProperty("_root.Shield", _x) - (3 * _root.GroundSpeed));
tellTarget (this.Plane.Plane) {
gotoAndStop (1);
};
gotoAndPlay (2);
}
i++;
}
if ((getProperty(this, _x) - (getProperty(this, _width) / 2)) > _root.LevelLeft) {
setProperty(this, _x , getProperty(this, _x) - this.ShieldFireSpeed);
} else {
tellTarget (this.Plane.Plane) {
gotoAndStop (1);
};
gotoAndPlay (2);
}
}
i = 0;
while (i < _root.EnemyNumberMax) {
if (this.hitTest("_root.Enemy_" add i)) {
_root["Enemy_" add i].Defence = _root["Enemy_" add i].Defence - this.Power;
if (getProperty("_root.Enemy_" add i, _alpha) > 50) {
setProperty("_root.Enemy_" add i, _alpha , 50);
} else {
setProperty("_root.Enemy_" add i, _alpha , 100);
}
} else {
setProperty("_root.Enemy_" add i, _alpha , 100);
}
i++;
}
Symbol 111 MovieClip [L_Shield] Frame 7
gotoAndPlay (6);
Symbol 129 MovieClip [L_Satellite_Down] Frame 1
this.Power = 0.5;
if (this.hitTest("_root.R-Type")) {
_root.SatelliteDownExist = 1;
gotoAndPlay (3);
}
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (((getProperty(this, _width) / 2) + getProperty(this, _x)) < _root.LevelLeft) {
this.removeMovieClip();
}
Symbol 129 MovieClip [L_Satellite_Down] Frame 2
gotoAndPlay (1);
Symbol 129 MovieClip [L_Satellite_Down] Frame 3
xspeed = getProperty("_root.R-Type", _x) - getProperty(this, _x);
yspeed = (getProperty("_root.R-Type", _y) + 60) - getProperty(this, _y);
setProperty(this, _x , getProperty(this, _x) + (xspeed / 5));
setProperty(this, _y , getProperty(this, _y) + (yspeed / 5));
i = 0;
while (i < _root.EnemyNumberMax) {
if (this.hitTest("_root.Enemy_" add i)) {
_root["Enemy_" add i].Defence = _root["Enemy_" add i].Defence - this.Power;
}
i++;
}
Symbol 129 MovieClip [L_Satellite_Down] Frame 4
gotoAndPlay (3);
Symbol 131 MovieClip [L_Satellite_Up] Frame 1
this.Power = 0.5;
if (this.hitTest("_root.R-Type")) {
_root.SatelliteUpExist = 1;
gotoAndPlay (3);
}
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (((getProperty(this, _width) / 2) + getProperty(this, _x)) < _root.LevelLeft) {
this.removeMovieClip();
}
Symbol 131 MovieClip [L_Satellite_Up] Frame 2
gotoAndPlay (1);
Symbol 131 MovieClip [L_Satellite_Up] Frame 3
xspeed = getProperty("_root.R-Type", _x) - getProperty(this, _x);
yspeed = (getProperty("_root.R-Type", _y) - 60) - getProperty(this, _y);
setProperty(this, _x , getProperty(this, _x) + (xspeed / 5));
setProperty(this, _y , getProperty(this, _y) + (yspeed / 5));
i = 0;
while (i < _root.EnemyNumberMax) {
if (this.hitTest("_root.Enemy_" add i)) {
_root["Enemy_" add i].Defence = _root["Enemy_" add i].Defence - this.Power;
}
i++;
}
Symbol 131 MovieClip [L_Satellite_Up] Frame 4
gotoAndPlay (3);
Symbol 133 MovieClip [L_Load_02] Frame 1
stop();
Symbol 133 MovieClip [L_Load_02] Frame 4
gotoAndStop (1);
Symbol 134 MovieClip [L_Load_01] Frame 1
stop();
Symbol 134 MovieClip [L_Load_01] Frame 18
gotoAndPlay (2);
Symbol 173 MovieClip [L_Ground_Up] Frame 1
this.StatusInside = 0;
Symbol 173 MovieClip [L_Ground_Up] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (((getProperty(this, _x) + (getProperty(this, _width) / 2)) <= _root.LevelRight) & (this.StatusInside == 0)) {
this.StatusInside = 1;
}
if (this.StatusInside == 1) {
this.StatusInside = 2;
if (_root.GroundUp.length >= _root.GroundUpAktual) {
_root.GroundUpAktual = _root.GroundUpAktual + 1;
_root.GroundNumber = _root.GroundNumber + 1;
if (_root.GroundNumber == _root.GroundNumberMax) {
_root.GroundNumber = 0;
}
_root.attachMovie("L_Ground_Up", "Ground_" add _root.GroundNumber, 250 + _root.GroundNumber);
_root["Ground_" add _root.GroundNumber].attachMovie("L_Ground_1_" add _root.GroundUp[_root.GroundUpAktual], "Plane", 50);
setProperty("_root.Ground_" add _root.GroundNumber, _x , (getProperty(this, _x) + (getProperty(this, _width) / 2)) + (getProperty("_root.Ground_" add _root.GroundNumber, _width) / 2));
if (_root.GroundUp[_root.GroundUpAktual] == 0) {
setProperty("_root.Ground_" add _root.GroundNumber, _y , _root.LevelTop - 100);
} else {
setProperty("_root.Ground_" add _root.GroundNumber, _y , _root.LevelTop + (getProperty("_root.Ground_" add _root.GroundNumber, _height) / 2));
}
} else {
_root.GroundSpeed = 0;
}
}
if ((getProperty(this, _x) + (getProperty(this, _width) / 2)) <= _root.LevelLeft) {
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
Symbol 173 MovieClip [L_Ground_Up] Frame 3
gotoAndPlay (2);
Symbol 174 MovieClip [L_Ground_Down] Frame 1
this.StatusInside = 0;
Symbol 174 MovieClip [L_Ground_Down] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (((getProperty(this, _x) + (getProperty(this, _width) / 2)) <= _root.LevelRight) & (this.StatusInside == 0)) {
this.StatusInside = 1;
}
if (this.StatusInside == 1) {
this.StatusInside = 2;
if (_root.GroundDown.length >= _root.GroundDownAktual) {
_root.GroundDownAktual = _root.GroundDownAktual + 1;
_root.GroundNumber = _root.GroundNumber + 1;
if (_root.GroundNumber == _root.GroundNumberMax) {
_root.GroundNumber = 0;
}
_root.attachMovie("L_Ground_Down", "Ground_" add _root.GroundNumber, 250 + _root.GroundNumber);
_root["Ground_" add _root.GroundNumber].attachMovie("L_Ground_1_" add _root.GroundDown[_root.GroundDownAktual], "Plane", 50);
setProperty("_root.Ground_" add _root.GroundNumber, _x , (getProperty(this, _x) + (getProperty(this, _width) / 2)) + (getProperty("_root.Ground_" add _root.GroundNumber, _width) / 2));
if (_root.GroundDown[_root.GroundDownAktual] == 0) {
setProperty("_root.Ground_" add _root.GroundNumber, _y , _root.LevelBottom + 100);
} else {
setProperty("_root.Ground_" add _root.GroundNumber, _y , _root.LevelBottom - (getProperty("_root.Ground_" add _root.GroundNumber, _height) / 2));
}
} else {
_root.GroundSpeed = 0;
}
}
if ((getProperty(this, _x) + (getProperty(this, _width) / 2)) <= _root.LevelLeft) {
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type.plane.tte")) {
if (_root.bisou == 0) {
_root.death = 1;
}
}
Symbol 174 MovieClip [L_Ground_Down] Frame 3
gotoAndPlay (2);
Symbol 188 MovieClip [L_Shoot_01] Frame 2
setProperty(this, _x , getProperty(this, _x) + this.SpeedX);
setProperty(this, _y , getProperty(this, _y) + this.SpeedY);
if (getProperty(this, _y) < _root.LevelTop) {
this.removeMovieClip();
}
if (getProperty(this, _y) > _root.LevelBottom) {
this.removeMovieClip();
}
if (getProperty(this, _x) < _root.LevelLeft) {
this.removeMovieClip();
}
if (getProperty(this, _x) > _root.LevelRight) {
this.removeMovieClip();
}
if (Power <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_05_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
this.removeMovieClip();
}
Symbol 188 MovieClip [L_Shoot_01] Frame 3
gotoAndPlay (2);
Symbol 196 MovieClip [L_Mega_Shot_Movie] Frame 2
setProperty(this, _x , getProperty(this, _x) + this.SpeedX);
setProperty(this, _y , getProperty(this, _y) + this.SpeedY);
if (getProperty(this, _y) < _root.LevelTop) {
this.removeMovieClip();
}
if (getProperty(this, _y) > _root.LevelBottom) {
this.removeMovieClip();
}
if (getProperty(this, _x) < _root.LevelLeft) {
this.removeMovieClip();
}
if (getProperty(this, _x) > _root.LevelRight) {
this.removeMovieClip();
}
if (Power <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_06_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
this.removeMovieClip();
}
Symbol 196 MovieClip [L_Mega_Shot_Movie] Frame 3
gotoAndPlay (2);
Symbol 200 MovieClip [L_Bonus_5] Frame 1
Symbol 200 MovieClip [L_Bonus_5] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
_root.RTypeWeaponSet = 2;
this.removeMovieClip();
}
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
Symbol 200 MovieClip [L_Bonus_5] Frame 3
gotoAndPlay (2);
Symbol 206 MovieClip [L_Bonus_4] Frame 1
Symbol 206 MovieClip [L_Bonus_4] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
_root.RTypeWeaponSet = 2;
_root.typetir = 2;
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v1", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v2", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v3", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v4", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v1", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v2", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v3", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v4", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v" + Number(_root.typetir + 1), _visible , 1);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v" + Number(_root.typetir + 1), _visible , 1);
this.removeMovieClip();
}
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
Symbol 206 MovieClip [L_Bonus_4] Frame 3
gotoAndPlay (2);
Symbol 207 MovieClip [L_Bonus_3] Frame 1
Symbol 207 MovieClip [L_Bonus_3] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type.plane.tte")) {
Set("_root.R-Type.RTypeSpeed", 12);
_root.typetir = 1;
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v1", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v2", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v3", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v4", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v1", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v2", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v3", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v4", _visible , 0);
setProperty("_root.R-Type.Plane.bonhom.milieu.m1.v" + Number(_root.typetir + 1), _visible , 1);
setProperty("_root.R-Type.Plane.bonhom.milieu.m2.v" + Number(_root.typetir + 1), _visible , 1);
this.removeMovieClip();
}
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
Symbol 207 MovieClip [L_Bonus_3] Frame 3
gotoAndPlay (2);
Symbol 208 MovieClip [L_Bonus_2] Frame 1
Symbol 208 MovieClip [L_Bonus_2] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
if ((_root.Shield.ShieldLevel < 3) & (_root.Shield.ShieldLevel > 0)) {
_root.Shield.ShieldLevel = _root.Shield.ShieldLevel + 1;
_root.Shield.attachMovie((("L_Shield_" add _root.Shield.ShieldLevel) add "_") add _root.Shield.ShieldDirection, "Plane", 510);
} else {
_root.Shield.ShieldLevel = 1;
setProperty("_root.Shield", _x , -30);
setProperty("_root.Shield", _y , _root.LevelBottom / 2);
_root.Shield.attachMovie((("L_Shield_" add _root.Shield.ShieldLevel) add "_") add _root.Shield.ShieldDirection, "Plane", 510);
}
_root.typetir = 1;
this.removeMovieClip();
}
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
Symbol 208 MovieClip [L_Bonus_2] Frame 3
gotoAndPlay (2);
Symbol 212 MovieClip [L_Bonus_1] Frame 1
Symbol 212 MovieClip [L_Bonus_1] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
if (_root.Shield.ShieldLevel == 0) {
_root.Shield.ShieldLevel = 1;
setProperty("_root.Shield", _x , -30);
setProperty("_root.Shield", _y , _root.LevelBottom / 2);
_root.Shield.attachMovie((("L_Shield_" add _root.Shield.ShieldLevel) add "_") add _root.Shield.ShieldDirection, "Plane", 510);
}
this.removeMovieClip();
}
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
Symbol 212 MovieClip [L_Bonus_1] Frame 3
gotoAndPlay (2);
Symbol 218 MovieClip [Bonus_Shot_2] Frame 2
if (_root.Shield.ShieldDirection) {
setProperty(this, _x , getProperty(this, _x) + this.SpeedX);
} else {
setProperty(this, _x , getProperty(this, _x) + this.SpeedX);
}
if (getProperty(this, _x) < _root.LevelLeft) {
this.removeMovieClip();
}
if (getProperty(this, _x) > _root.LevelRight) {
this.removeMovieClip();
}
if (Power <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_06_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
this.removeMovieClip();
}
Symbol 218 MovieClip [Bonus_Shot_2] Frame 3
gotoAndPlay (2);
Symbol 224 MovieClip [Bonus_Shot_1] Frame 2
if (_root.Shield.ShieldDirection) {
setProperty(this, _x , getProperty(this, _x) + this.SpeedX);
} else {
setProperty(this, _x , getProperty(this, _x) + this.SpeedX);
}
if (getProperty(this, _x) < _root.LevelLeft) {
this.removeMovieClip();
}
if (getProperty(this, _x) > _root.LevelRight) {
this.removeMovieClip();
}
if (Power <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_06_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
this.removeMovieClip();
}
Symbol 224 MovieClip [Bonus_Shot_1] Frame 3
gotoAndPlay (2);
Symbol 243 MovieClip Frame 1
finnished = 0;
Symbol 243 MovieClip Frame 21
finnished = 1;
stop();
Symbol 244 MovieClip [Bonus_Shot_02_2] Frame 1
Symbol 244 MovieClip [Bonus_Shot_02_2] Frame 2
if (this.Plane.finnished == 1) {
_root.RTypeWeaponSeries2 = 0;
this.removeMovieClip();
}
if (Power <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_06_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
this.removeMovieClip();
}
Symbol 244 MovieClip [Bonus_Shot_02_2] Frame 3
gotoAndPlay (2);
Symbol 245 MovieClip Frame 1
finnished = 0;
Symbol 245 MovieClip Frame 21
finnished = 1;
stop();
Symbol 246 MovieClip [Bonus_Shot_02_1] Frame 1
Symbol 246 MovieClip [Bonus_Shot_02_1] Frame 2
if (this.Plane.finnished == 1) {
_root.RTypeWeaponSeries2 = 0;
this.removeMovieClip();
}
if (Power <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_06_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
this.removeMovieClip();
}
Symbol 246 MovieClip [Bonus_Shot_02_1] Frame 3
gotoAndPlay (2);
Symbol 269 MovieClip Frame 1
b._visible = 0;
g._visible = 0;
if (_root.typetir == 1) {
b._visible = 1;
}
if (_root.typetir == 2) {
g._visible = 1;
}
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 272 MovieClip Frame 1
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 273 MovieClip [L_Enemy_02_b] Frame 1
Timer = 0;
Defence = 1;
SpeedX1 = 0;
SpeedX2 = 0;
SpeedX3 = -11;
SpeedY1 = 11;
SpeedY2 = 0;
SpeedY3 = 0;
Angle = 0;
Rotation = 10;
AngleStep = (Math.PI/2) / Rotation;
Radius = 80;
pomy = 0;
Symbol 273 MovieClip [L_Enemy_02_b] Frame 2
if ((Timer >= 0) & (Timer < Trace)) {
setProperty(this, _x , getProperty(this, _x) + SpeedX1);
setProperty(this, _y , getProperty(this, _y) + SpeedY1);
StartX = getProperty(this, _x);
StartY = getProperty(this, _y);
}
if ((Timer >= Trace) & (Timer < (Trace + Rotation))) {
Angle = Angle + AngleStep;
pomy = Radius * Math.sin(Angle);
pomy1 = Radius * Math.sin(Angle - (Math.PI/2));
setProperty(this, _x , (StartX + (Radius * Math.cos(Angle))) - Radius);
setProperty(this, _y , StartY + (Radius * Math.sin(Angle)));
}
if ((Timer >= (Trace + Rotation)) & (Timer < ((Trace + Rotation) + 50))) {
setProperty(this, _x , getProperty(this, _x) + SpeedX3);
setProperty(this, _y , getProperty(this, _y) + SpeedY3);
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
}
Timer = Timer + 1;
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 10;
typetir = _root.typetir;
gotoAndPlay (4);
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 273 MovieClip [L_Enemy_02_b] Frame 3
gotoAndPlay (2);
Symbol 273 MovieClip [L_Enemy_02_b] Frame 4
if (typetir == 0) {
this._y = this._y + 8;
this._x = this._x - 4;
if (this._y > (275 + random(20))) {
gotoAndPlay (6);
}
} else if (typetir == 1) {
this._y = this._y - 4;
this._x = this._x - (Math.sin(this._y / 10) * 10);
if (this._y < 0) {
this.removeMovieClip();
}
} else if (typetir == 2) {
this._y = this._y + 12;
this._rotation = this._rotation + (Math.sin(this._y / 10) * 30);
if (this._y > 310) {
gotoAndPlay (6);
}
}
Symbol 273 MovieClip [L_Enemy_02_b] Frame 5
gotoAndPlay (4);
Symbol 273 MovieClip [L_Enemy_02_b] Frame 6
if (typetir != 0) {
rn = random(10);
if (rn > 4) {
gg._xscale = -100;
}
} else {
gg._xscale = -100;
}
Symbol 273 MovieClip [L_Enemy_02_b] Frame 7
if (typetir == 0) {
this._x = this._x + 7;
if (this._x > 532) {
this.removeMovieClip();
}
} else {
this._x = this._x - 4;
if (this._x < -5) {
this.removeMovieClip();
}
}
Symbol 273 MovieClip [L_Enemy_02_b] Frame 8
gotoAndPlay (7);
Symbol 277 MovieClip [L_Enemy_03_Main] Frame 1
Defence = 30;
SpeedX = _root.GroundSpeed;
AngleStep = 0.02;
Radius = 150;
pomy = 0;
Symbol 277 MovieClip [L_Enemy_03_Main] Frame 2
Angle = Angle + AngleStep;
pomx = Radius * Math.cos(Angle);
pomy = Radius * Math.sin(Angle);
StartX = StartX + SpeedX;
setProperty(this, _x , StartX + pomx);
setProperty(this, _y , StartY + pomy);
setProperty(this, _rotation , (180 * Angle) / Math.PI);
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_03_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 50;
_root.WheelCrashNumber = 0;
_root["Enemy_" add _root.WheelStructure[_root.WheelCrashNumber]].Defence = 0;
Plane.attachMovie("L_03_CircleG", "Plane", -100);
Defence = 100;
}
Symbol 277 MovieClip [L_Enemy_03_Main] Frame 3
gotoAndPlay (2);
Symbol 290 MovieClip Frame 120
ende = 1;
stop();
Symbol 291 MovieClip [L_Enemy_05_01] Frame 1
Defence = 1;
Symbol 291 MovieClip [L_Enemy_05_01] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) + getProperty("Plane.Plane", _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y) + getProperty("Plane.Plane", _y));
_root.Panel.Score = _root.Panel.Score + 20;
_root.Bonus = _root.Bonus + 1;
if (_root.Bonus >= _root.BonusMax) {
_root.Bonus = 0;
}
_root.attachMovie("L_Bonus_1", "Bonus_" add _root.Bonus, 240 + _root.Bonus);
setProperty("_root.Bonus_" add _root.Bonus, _x , getProperty(this, _x) + getProperty("Plane.Plane", _x));
setProperty("_root.Bonus_" add _root.Bonus, _y , getProperty(this, _y) + getProperty("Plane.Plane", _y));
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 291 MovieClip [L_Enemy_05_01] Frame 3
gotoAndPlay (2);
Symbol 311 MovieClip Frame 1
b._visible = 0;
g._visible = 0;
if (_root.typetir == 1) {
b._visible = 1;
}
if (_root.typetir == 2) {
g._visible = 1;
}
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 317 MovieClip Frame 1
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 318 MovieClip [L_Enemy_04_01] Frame 1
Defence = 1;
Symbol 318 MovieClip [L_Enemy_04_01] Frame 2
setProperty(this, _x , (getProperty(this, _x) + _root.GroundSpeed) - 1.5);
ij = ij + 0.1;
ijf = Math.sin(ij);
if (ijf > 0) {
this._y = 271 - (ijf * 150);
} else {
this._y = 271;
}
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 20;
typetir = _root.typetir;
gotoAndPlay (4);
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 318 MovieClip [L_Enemy_04_01] Frame 3
gotoAndPlay (2);
Symbol 318 MovieClip [L_Enemy_04_01] Frame 4
if (typetir == 0) {
this._y = this._y + 8;
this._x = this._x - 4;
if (this._y > 266) {
gotoAndPlay (6);
}
} else if (typetir == 1) {
this._y = this._y - 4;
this._x = this._x - (Math.sin(this._y / 10) * 10);
if (this._y < 0) {
this.removeMovieClip();
}
} else if (typetir == 2) {
this._y = this._y + 8;
this._rotation = this._rotation + (Math.sin(this._y / 10) * 10);
if (this._y > 264) {
this._rotation = 0;
gotoAndPlay (6);
}
}
Symbol 318 MovieClip [L_Enemy_04_01] Frame 5
gotoAndPlay (4);
Symbol 318 MovieClip [L_Enemy_04_01] Frame 6
this._x = this._x + 7;
if (this._x > 532) {
this.removeMovieClip();
}
Symbol 318 MovieClip [L_Enemy_04_01] Frame 7
gotoAndPlay (6);
Symbol 322 MovieClip [L_Enemy_03] Frame 1
Defence = 1000;
SpeedX = _root.GroundSpeed;
AngleStep = 0.02;
Radius = 150;
pomy = 0;
Symbol 322 MovieClip [L_Enemy_03] Frame 2
Angle = Angle + AngleStep;
pomx = Radius * Math.cos(Angle);
pomy = Radius * Math.sin(Angle);
StartX = StartX + SpeedX;
setProperty(this, _x , StartX + pomx);
setProperty(this, _y , StartY + pomy);
setProperty(this, _rotation , (180 * Angle) / Math.PI);
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_03_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 20;
_root.WheelCrashNumber = _root.WheelCrashNumber + 1;
_root["Enemy_" add _root.WheelStructure[_root.WheelCrashNumber]].Defence = 0;
Plane.attachMovie("L_03_CircleG", "Plane", -100);
Defence = 100;
}
Symbol 322 MovieClip [L_Enemy_03] Frame 3
gotoAndPlay (2);
Symbol 340 MovieClip Frame 1
b._visible = 0;
g._visible = 0;
if (_root.typetir == 1) {
b._visible = 1;
}
if (_root.typetir == 2) {
g._visible = 1;
}
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 343 MovieClip Frame 1
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 344 MovieClip [L_Enemy_02_a] Frame 1
Defence = 1;
SpeedX = -11;
AngleStep = 0.2;
Radius = 40;
pomy = 0;
StartY = getProperty(this, _y);
Symbol 344 MovieClip [L_Enemy_02_a] Frame 2
Angle = Angle + AngleStep;
pomy = Radius * Math.sin(Angle);
setProperty(this, _y , pomy + StartY);
setProperty(this, _x , getProperty(this, _x) + SpeedX);
pomy1 = Radius * Math.sin(Angle - (Math.PI/2));
setProperty(this.Plane, _rotation , pomy1);
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 10;
typetir = _root.typetir;
gotoAndPlay (4);
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 344 MovieClip [L_Enemy_02_a] Frame 3
gotoAndPlay (2);
Symbol 344 MovieClip [L_Enemy_02_a] Frame 4
if (typetir == 0) {
this._y = this._y + 8;
this._x = this._x - 4;
if (this._y > 298) {
gotoAndPlay (6);
}
} else if (typetir == 1) {
this._y = this._y - 4;
this._x = this._x - (Math.sin(this._y / 10) * 10);
if (this._y < 0) {
this.removeMovieClip();
}
} else if (typetir == 2) {
this._y = this._y + 12;
this._rotation = this._rotation + 20;
if (this._y > 296) {
gotoAndPlay (6);
this._rotation = 0;
}
}
Symbol 344 MovieClip [L_Enemy_02_a] Frame 5
gotoAndPlay (4);
Symbol 344 MovieClip [L_Enemy_02_a] Frame 6
if (typetir != 0) {
rn = random(10);
if (rn > 4) {
gg._xscale = -100;
gg._x = gg._x - 18.5;
}
} else {
gg._xscale = -100;
}
Symbol 344 MovieClip [L_Enemy_02_a] Frame 7
if (typetir == 0) {
setProperty(this, _x , (getProperty(this, _x) + _root.GroundSpeed) + 8.5);
ij = ij + 0.2;
ijf = Math.sin(ij);
this._y = 311 - Math.abs(ijf * 150);
} else {
this._x = this._x - 4;
}
if ((this._x < -5) or (this._x > 532)) {
this.removeMovieClip();
}
Symbol 344 MovieClip [L_Enemy_02_a] Frame 8
gotoAndPlay (7);
Symbol 348 MovieClip [L_Enemy_08_b] Frame 1
Defence = 1;
XSpeed = _root.GroundSpeed;
Symbol 348 MovieClip [L_Enemy_08_b] Frame 2
if (getProperty("_root.R-Type", _x) > getProperty(this, _x)) {
setProperty(this, _xscale , -100);
} else {
setProperty(this, _xscale , 100);
}
setProperty(this, _x , getProperty(this, _x) + XSpeed);
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 348 MovieClip [L_Enemy_08_b] Frame 3
gotoAndPlay (2);
Symbol 354 MovieClip [L_Final_05] Frame 1
Defence = 10000;
Symbol 354 MovieClip [L_Final_05] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.Enemy_34.Defence = 0;
this.removeMovieClip();
}
Symbol 354 MovieClip [L_Final_05] Frame 3
gotoAndPlay (2);
Symbol 358 MovieClip [L_Final_04] Frame 1
Defence = 10000;
Symbol 358 MovieClip [L_Final_04] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 100);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) + 100);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.Enemy_33.Defence = 0;
this.removeMovieClip();
}
Symbol 358 MovieClip [L_Final_04] Frame 3
gotoAndPlay (2);
Symbol 362 MovieClip [L_Final_03] Frame 1
Defence = 10000;
Symbol 362 MovieClip [L_Final_03] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.Enemy_32.Defence = 0;
this.removeMovieClip();
}
Symbol 362 MovieClip [L_Final_03] Frame 3
gotoAndPlay (2);
Symbol 366 MovieClip [L_Final_02] Frame 1
Defence = 10000;
Symbol 366 MovieClip [L_Final_02] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 100);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) + 100);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.Enemy_31.Defence = 0;
this.removeMovieClip();
}
Symbol 366 MovieClip [L_Final_02] Frame 3
gotoAndPlay (2);
Symbol 370 MovieClip [L_Final_01] Frame 1
Defence = 10000;
Symbol 370 MovieClip [L_Final_01] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 100);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) + 100);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
this.removeMovieClip();
}
Symbol 370 MovieClip [L_Final_01] Frame 3
gotoAndPlay (2);
Symbol 374 MovieClip [L_Final_09] Frame 1
Defence = 10000;
AngleStep = 0.03;
Xpoz = getProperty(this, _x);
Ypoz = getProperty(this, _y);
Symbol 374 MovieClip [L_Final_09] Frame 2
if (Angle > (Math.PI*2)) {
Angle = (Math.PI*2);
AngleStep = -AngleStep;
}
if (Angle < 5.11238898038469) {
Angle = 5.11238898038469;
AngleStep = -AngleStep;
}
Angle = Angle + AngleStep;
Xpoz = Xpoz + _root.GroundSpeed;
Ypoz = Ypoz;
pomx = (-Radius) * Math.cos(Angle);
pomy = Radius * Math.sin(Angle);
setProperty(this, _x , Xpoz + pomx);
setProperty(this, _y , Ypoz + pomy);
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_03_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.FinalEnemies = _root.FinalEnemies - 1;
_root["Enemy_" add _root.FinalEnemies].Defence = 0;
_root.Enemy_35.Defence = 0;
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
Symbol 374 MovieClip [L_Final_09] Frame 3
gotoAndPlay (2);
Symbol 378 MovieClip [L_Final_08] Frame 1
Defence = 10000;
AngleStep = 0.03;
Xpoz = getProperty(this, _x);
Ypoz = getProperty(this, _y);
Symbol 378 MovieClip [L_Final_08] Frame 2
if (Angle > (Math.PI*2)) {
Angle = (Math.PI*2);
AngleStep = -AngleStep;
}
if (Angle < 5.11238898038469) {
Angle = 5.11238898038469;
AngleStep = -AngleStep;
}
Angle = Angle + AngleStep;
Xpoz = Xpoz + _root.GroundSpeed;
Ypoz = Ypoz;
pomx = (-Radius) * Math.cos(Angle);
pomy = Radius * Math.sin(Angle);
setProperty(this, _x , Xpoz + pomx);
setProperty(this, _y , Ypoz + pomy);
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_03_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.FinalEnemies = _root.FinalEnemies - 1;
_root["Enemy_" add _root.FinalEnemies].Defence = 0;
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
Symbol 378 MovieClip [L_Final_08] Frame 3
gotoAndPlay (2);
Symbol 381 MovieClip Frame 1
Head = 0;
Symbol 381 MovieClip Frame 70
Head = 1;
Symbol 381 MovieClip Frame 129
gotoAndPlay (1);
Symbol 382 MovieClip [L_Final_07] Frame 1
Defence = 40;
Symbol 382 MovieClip [L_Final_07] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
if (Plane.Head == 1) {
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
if (_root.FinalStatus == 1) {
Defence = Defence - pomP;
}
}
i++;
}
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root["Enemy_" add _root.FinalEnemies].Defence = 0;
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
Symbol 382 MovieClip [L_Final_07] Frame 3
gotoAndPlay (2);
Symbol 386 MovieClip [L_Final_06] Frame 1
Defence = 30;
Symbol 386 MovieClip [L_Final_06] Frame 2
setProperty(this, _x , getProperty(this, _x) + _root.GroundSpeed);
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.FinalStatus = _root.FinalStatus - 1;
this.removeMovieClip();
}
if (this.hitTest("_root.R-Type")) {
_root.death = 1;
}
Symbol 386 MovieClip [L_Final_06] Frame 3
gotoAndPlay (2);
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stop();
Symbol 402 MovieClip [L_Enemy_07] Frame 1
setProperty("_root.Panel.Power_M", _visible , 1);
Defence = 500;
cpt = 0;
oeil = 0;
yorg = toto._y;
c1org = co1._y;
c2org = co2._y;
c3org = co3._y;
c4org = co4._y;
c5org = co5._y;
c6org = co6._y;
c7org = co7._y;
c8org = co8._y;
vt = 0;
vt1 = 0;
vt2 = 0;
vt3 = 0;
vt4 = 0;
vt5 = 0;
vt6 = 0;
vt7 = 0;
vt8 = 0;
Symbol 402 MovieClip [L_Enemy_07] Frame 2
cpt++;
toto._x = toto._x + vt;
co1._x = (co1._x + vt1) + vt;
co2._x = (co2._x + vt2) + vt;
co3._x = (co3._x + vt3) + vt;
co4._x = (co4._x + vt4) + vt;
co5._x = (co5._x + vt5) + vt;
co6._x = (co6._x + vt6) + vt;
co7._x = (co7._x + vt7) + vt;
co8._x = (co8._x + vt8) + vt;
if (cpt < 30) {
vt = -5;
} else if ((cpt >= 30) and (cpt < 60)) {
vt = 0;
} else if ((cpt >= 60) and (cpt < 80)) {
vt = -10;
} else if ((cpt >= 80) and (cpt < 100)) {
vt = 10;
} else if (cpt >= 100) {
vt = 0;
cpt = 30;
if (oeil < 8) {
oeil++;
jj = 0;
nti = int(random(8)) + 1;
jj = eval ("oeil" + nti);
while (jj == 1) {
nti = int(random(8)) + 1;
jj = eval ("oeil" + nti);
}
Set("oeil" + nti, 1);
Set("vt" + nti, -20);
yy = "co" + nti;
eval (yy).gotoAndPlay(2);
if (oeil == 8) {
Defence = Defence / 4;
}
}
}
ajt = Math.sin(cpt / 10) * 10;
toto._y = yorg + ajt;
co1._y = c1org + ajt;
co2._y = c2org + ajt;
co3._y = c3org + ajt;
co4._y = c4org + ajt;
co5._y = c5org + ajt;
co6._y = c6org + ajt;
co7._y = c7org + ajt;
co8._y = c8org + ajt;
i = 0;
while (i < _root.ShootFriendMax) {
if (toto.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
_root.jhg2 = int(Number(Defence) / 10);
if (_root.jhg2 > 50) {
_root.jhg2 = 50;
}
tellTarget ("_root.Panel.Power_M") {
gotoAndStop(_root.jhg2);
};
if (Defence <= 0) {
setProperty("_root.Panel.Power_M", _visible , 0);
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_01_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 200);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
_root.CrashNumber = _root.CrashNumber + 1;
_root.attachMovie("L_02_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 130);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y) - 30);
_root.Panel.Score = _root.Panel.Score + 100;
_root.CrashNumber = _root.CrashNumber + 1;
_root.attachMovie("L_03_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 160);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y) + 60);
_root.Panel.Score = _root.Panel.Score + 100;
_root.CrashNumber = _root.CrashNumber + 1;
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 50);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y) - 20);
_root.Panel.Score = _root.Panel.Score + 100;
_root.CrashNumber = _root.CrashNumber + 1;
_root.attachMovie("L_05_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 140);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y) + 20);
_root.Panel.Score = _root.Panel.Score + 100;
_root.CrashNumber = _root.CrashNumber + 1;
_root.attachMovie("L_06_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x) - 50);
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y) + 50);
_root.Panel.Score = _root.Panel.Score + 100;
gotoAndPlay (4);
}
if (toto.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
if (eval (yy).hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 402 MovieClip [L_Enemy_07] Frame 3
gotoAndPlay (2);
Symbol 402 MovieClip [L_Enemy_07] Frame 4
ajk++;
rd = random(30) - 20;
this._y = this._y + rd;
this._x = this._x - rd;
this._xscale = this._xscale - (rd / 2);
this._yscale = this._yscale - (rd / 2);
toto._rotation = toto._rotation + 10;
if (ajk > 30) {
gotoAndPlay (6);
}
Symbol 402 MovieClip [L_Enemy_07] Frame 5
gotoAndPlay (4);
Symbol 402 MovieClip [L_Enemy_07] Frame 6
this._xscale = this._xscale - 7;
this._yscale = this._yscale - 7;
if (this._yscale < 5) {
_root.Turns = 8998;
this.removeMovieClip();
}
Symbol 402 MovieClip [L_Enemy_07] Frame 7
gotoAndPlay (6);
Symbol 418 MovieClip Frame 1
b._visible = 0;
g._visible = 0;
if (_root.typetir == 1) {
b._visible = 1;
}
if (_root.typetir == 2) {
g._visible = 1;
}
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 424 MovieClip Frame 1
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 425 MovieClip [L_Enemy_06] Frame 1
Defence = 10;
SpeedX = -20;
Timerr = 1;
Symbol 425 MovieClip [L_Enemy_06] Frame 2
Timerr = Timerr + 1;
yspeed = (getProperty("_root.R-Type", _y) - getProperty(this, _y)) - 15;
setProperty(this, _y , getProperty(this, _y) + (yspeed / 10));
if (Timerr > 300) {
setProperty(this, _x , getProperty(this, _x) + SpeedX);
}
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_04_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 100;
typetir = _root.typetir;
gotoAndPlay (4);
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 425 MovieClip [L_Enemy_06] Frame 3
gotoAndPlay (2);
Symbol 425 MovieClip [L_Enemy_06] Frame 4
if (typetir == 0) {
this._y = this._y + 8;
this._x = this._x - 4;
if (this._y > 230) {
gotoAndPlay (6);
}
} else if (typetir == 1) {
this._y = this._y - 4;
this._x = this._x - (Math.sin(this._y / 10) * 10);
if (this._y < 0) {
this.removeMovieClip();
}
} else if (typetir == 2) {
this._y = this._y + 8;
this._rotation = this._rotation + (Math.sin(this._y / 20) * 30);
if (this._y > 228) {
this._rotation = 0;
gotoAndPlay (6);
}
}
Symbol 425 MovieClip [L_Enemy_06] Frame 5
gotoAndPlay (4);
Symbol 425 MovieClip [L_Enemy_06] Frame 6
if (typetir == 0) {
this._x = this._x + 4;
} else {
this._x = this._x + 7;
}
if (this._x > 552) {
this.removeMovieClip();
}
Symbol 425 MovieClip [L_Enemy_06] Frame 7
gotoAndPlay (6);
Symbol 436 MovieClip [L_Enemy_09] Frame 1
Defence = 10000000 /* 0x989680 */;
SpeedX = -0.7;
AngleStep = 0.1;
Radius = 20;
pomy = 0;
StartY = getProperty(this, _y);
Symbol 436 MovieClip [L_Enemy_09] Frame 2
Angle = Angle + AngleStep;
pomy = ((Radius + random(1)) - 0.5) * Math.sin(Angle);
setProperty(this, _y , pomy + StartY);
setProperty(this, _x , getProperty(this, _x) + SpeedX);
Symbol 436 MovieClip [L_Enemy_09] Frame 3
gotoAndPlay (2);
Symbol 437 MovieClip [L_05_Crash] Frame 9
this.removeMovieClip();
stop();
Instance of Symbol 437 MovieClip [L_05_Crash] in Symbol 438 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(360);
this._xscale = random(120);
this._yscale = this._xscale;
}
Instance of Symbol 437 MovieClip [L_05_Crash] in Symbol 438 MovieClip Frame 6
onClipEvent (load) {
this._rotation = random(360);
this._xscale = random(120);
this._yscale = this._xscale;
}
Instance of Symbol 437 MovieClip [L_05_Crash] in Symbol 438 MovieClip Frame 9
onClipEvent (load) {
this._rotation = random(360);
this._xscale = random(120);
this._yscale = this._xscale;
}
Instance of Symbol 437 MovieClip [L_05_Crash] in Symbol 438 MovieClip Frame 12
onClipEvent (load) {
this._rotation = random(360);
this._xscale = random(120);
this._yscale = this._xscale;
}
Symbol 459 MovieClip [L_Enemy_08] Frame 1
Defence = 10000000 /* 0x989680 */;
SpeedX = -2;
AngleStep = 0.2;
Radius = 20;
pomy = 0;
StartY = getProperty(this, _y);
compteur = 0;
Symbol 459 MovieClip [L_Enemy_08] Frame 2
Angle = Angle + AngleStep;
pomy = ((Radius + random(2)) - 1) * Math.sin(Angle);
setProperty(this, _y , pomy + StartY);
setProperty(this, _x , getProperty(this, _x) + SpeedX);
distancex = Math.abs(getProperty("_root.R-Type", _x) - getProperty(this, _x));
distancey = Math.abs(getProperty("_root.R-Type", _y) - getProperty(this, _y));
if ((distancex < 45) and (distancey < 60)) {
this._x = (abx = getProperty("_root.R-Type", _x) + 25);
this._y = (aby = getProperty("_root.R-Type", _y) - 45);
_root.bisou = 1;
gotoAndPlay (4);
}
Symbol 459 MovieClip [L_Enemy_08] Frame 3
gotoAndPlay (2);
Symbol 459 MovieClip [L_Enemy_08] Frame 4
compteur++;
this._x = this._x - (compteur / 3);
this._y = this._y - (compteur / 16);
trace(compteur);
if (compteur > 5) {
compteur = 0;
gotoAndPlay (6);
}
Symbol 459 MovieClip [L_Enemy_08] Frame 5
gotoAndPlay (4);
Symbol 459 MovieClip [L_Enemy_08] Frame 6
compteur = compteur - 0.15;
this._x = this._x - ((compteur + 5) / (compteur * 2));
this._y = this._y - ((this._y - 120) / 10);
az = getProperty("_root.R-Type", _y);
setProperty("_root.R-Type", _y , az - ((az - 160) / 10));
trace(this._y);
if (compteur < -20) {
_root.gotoAndPlay("gameover2");
this.removeMovieClip();
}
coeur._y = coeur._y - 1;
coeur._x = coeur._x - (Math.sin(coeur._y / 10) * 4);
if (coeur._y < -150) {
coeur._y = 0;
}
coeur2._y = coeur2._y - 0.6;
coeur2._x = coeur2._x + (Math.sin(coeur2._y / 10) * 4);
if (coeur2._y < -150) {
coeur2._y = 0;
}
Symbol 459 MovieClip [L_Enemy_08] Frame 7
gotoAndPlay (6);
Symbol 477 MovieClip Frame 1
b._visible = 0;
g._visible = 0;
if (_root.typetir == 1) {
b._visible = 1;
}
if (_root.typetir == 2) {
g._visible = 1;
}
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 485 MovieClip Frame 1
a1._visible = 0;
a2._visible = 0;
if (_root.typetir < 1) {
a1._visible = 1;
} else {
a2._visible = 1;
}
stop();
Symbol 486 MovieClip [L_Enemy_01] Frame 1
Defence = 1;
SpeedX = -9;
AngleStep = 0.2;
Angle = 10 * Math.random();
Radius = 20;
pomy = 0;
StartY = getProperty(this, _y);
Symbol 486 MovieClip [L_Enemy_01] Frame 2
Angle = Angle + AngleStep;
pomy = Radius * Math.sin(Angle);
setProperty(this, _y , pomy + StartY);
setProperty(this, _x , getProperty(this, _x) + SpeedX);
if (getProperty(this, _x) < (_root.LevelLeft - getProperty(this, _width))) {
this.removeMovieClip();
}
i = 0;
while (i < _root.ShootFriendMax) {
if (this.hitTest(_root["ShootFriend_" add i])) {
pomP = _root["ShootFriend_" add i].Power;
_root["ShootFriend_" add i].Power = _root["ShootFriend_" add i].Power - Defence;
Defence = Defence - pomP;
}
i++;
}
if (Defence <= 0) {
_root.CrashNumber = _root.CrashNumber + 1;
if (_root.CrashNumber == _root.CrashNumberMax) {
_root.CrashNumber = 0;
}
_root.attachMovie("L_03_Crash", "Crash_" add _root.CrashNumber, 700 + _root.CrashNumber);
setProperty(_root["Crash_" add _root.CrashNumber], _x , getProperty(this, _x));
setProperty(_root["Crash_" add _root.CrashNumber], _y , getProperty(this, _y));
_root.Panel.Score = _root.Panel.Score + 10;
typetir = _root.typetir;
gotoAndPlay (4);
}
if (this.hitTest("_root.R-Type.plane.tte")) {
_root.death = 1;
}
Symbol 486 MovieClip [L_Enemy_01] Frame 3
gotoAndPlay (2);
Symbol 486 MovieClip [L_Enemy_01] Frame 4
if (typetir == 0) {
tour++;
if (tour > 5) {
dx = random(18) - 9;
dy = random(4) - 2;
tour = 0;
tour2++;
}
this._y = this._y + dy;
this._x = this._x + dx;
if (tour2 > 5) {
gotoAndPlay (6);
}
} else if (typetir == 1) {
this._y = this._y - 4;
this._x = this._x - (Math.sin(this._y / 10) * 10);
if (this._y < 0) {
this.removeMovieClip();
}
} else if (typetir == 2) {
this._y = this._y + 8;
this._rotation = this._rotation + 20;
if (this._y > 258) {
this._rotation = 0;
gotoAndPlay (6);
}
}
Symbol 486 MovieClip [L_Enemy_01] Frame 5
gotoAndPlay (4);
Symbol 486 MovieClip [L_Enemy_01] Frame 6
if (typetir == 0) {
tour++;
if (tour > 5) {
dx = random(25) - 10;
dy = random(8) - 4;
tour = 0;
tour2++;
if (dx < 0) {
gg2._xscale = -100;
} else {
gg2._xscale = 100;
}
}
if (this._y > 230) {
dy = random(4) - 25;
}
this._y = this._y + dy;
this._x = this._x + dx;
} else {
this._x = this._x + 7;
}
if ((this._x > 532) or (this._x < -10)) {
this.removeMovieClip();
}
Symbol 486 MovieClip [L_Enemy_01] Frame 7
gotoAndPlay (6);
Symbol 495 MovieClip Frame 7
stop();
Symbol 505 MovieClip Frame 8
stop();
Symbol 508 MovieClip Frame 9
stop();
Symbol 511 MovieClip Frame 9
stop();
Symbol 514 MovieClip Frame 9
stop();
Symbol 517 MovieClip Frame 9
stop();
Symbol 539 MovieClip Frame 25
stop();
Symbol 540 MovieClip Frame 9
stop();
Symbol 549 MovieClip Frame 125
stop();
Symbol 551 Button
on (release) {
gotoAndPlay ("fin");
}
Symbol 579 MovieClip Frame 178
_root.play();
stop();
Symbol 596 Button
on (release) {
_root.play();
}
Symbol 597 MovieClip Frame 44
stop();
Symbol 615 MovieClip Frame 1
pfx1 = 0;
pfx2 = 0;
pfx3 = 0;
Symbol 615 MovieClip Frame 2
if (pfx1 <= 0) {
pfx1 = 544;
}
if (pfx2 <= 0) {
pfx2 = 536;
}
if (pfx3 <= 0) {
pfx3 = 532;
}
pfx1 = pfx1 - 1;
pfx2 = pfx2 - 2;
pfx3 = pfx3 - 3;
f1._x = pfx1;
f2._x = pfx2;
f3._x = pfx3;
Symbol 615 MovieClip Frame 3
gotoAndPlay (2);
Symbol 624 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 629 MovieClip Frame 1
Score = 0;
jk = ("" + eval (this)) + "";
Power_M._visible = 0;
trace(jk.length);
if (jk.length == 14) {
gotoAndPlay (2);
}
stop();
Symbol 629 MovieClip Frame 2
stop();
Symbol 648 Button
on (release) {
if (newsletter == "1") {
ch1._visible = 0;
newsletter = "0";
} else {
ch1._visible = 1;
newsletter = "1";
}
}
Symbol 656 Button
on (release) {
_root.nom = _root.nom.toUpperCase();
nom = _root.nom;
score = _root.score;
cl1 = copain1.length;
cl2 = copain2.length;
cl3 = copain3.length;
cl4 = copain4.length;
cl0 = monmail.length;
if (((cl1 < 5) or (copain1.indexOf("@") == -1)) or (copain1.indexOf(".") == -1)) {
trace("mauvais copain1");
copain1 = "";
}
if (((cl2 < 5) or (copain2.indexOf("@") == -1)) or (copain2.indexOf(".") == -1)) {
trace("mauvais copain2");
copain2 = "";
}
if (((cl3 < 5) or (copain3.indexOf("@") == -1)) or (copain3.indexOf(".") == -1)) {
trace("mauvais copain3");
copain3 = "";
}
if (((cl4 < 5) or (copain4.indexOf("@") == -1)) or (copain4.indexOf(".") == -1)) {
trace("mauvais copain4");
copain4 = "";
}
if (((cl0 < 5) or (monmail.indexOf("@") == -1)) or (monmail.indexOf(".") == -1)) {
trace("mauvais monmail");
monmail = "";
}
loadVariablesNum ("../phps/mailer_potes.php", 0, "POST");
_root.rejoue = 1;
_root.gotoAndPlay("gameover3");
}
Symbol 672 MovieClip Frame 11
Selection.setFocus("gh1");
aa = _root.nom.length;
trace(aa);
Selection.setSelection(aa, aa);
_root.score = _root.Panel.Score;
ch1._visible = 0;
stop();
Symbol 675 MovieClip Frame 8
stop();
Symbol 678 MovieClip Frame 9
stop();
Symbol 681 MovieClip Frame 9
stop();
Symbol 684 MovieClip Frame 9
stop();
Symbol 687 MovieClip Frame 9
stop();
Symbol 701 MovieClip Frame 25
stop();
Symbol 702 MovieClip Frame 9
stop();
Symbol 703 MovieClip Frame 120
_root.gotoAndPlay("gameover");
stop();
Symbol 710 MovieClip Frame 140
_root.play();
stop();