home *** CD-ROM | disk | FTP | other *** search
- function spawnEnemy()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point = new object();
- point.x = -20;
- point.y = 10;
- _root.bg.globalToLocal(point);
- _root.bg.attachMovie("baddie","baddie" + enemycount,enemycount);
- _root.bg["baddie" + enemycount]._x = point.x;
- _root.bg["baddie" + enemycount]._y = 15;
- }
- }
- function spawnEnemy2()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point2 = new object();
- point2.x = 260;
- point2.y = 10;
- _root.bg.globalToLocal(point2);
- stop();
- _root.bg.attachMovie("baddie2","baddie2" + enemycount,enemycount);
- _root.bg["baddie2" + enemycount]._x = point2.x;
- _root.bg["baddie2" + enemycount]._y = 15;
- }
- }
- function spawnEnemy3()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point3 = new object();
- point3.x = 260;
- point3.y = 10;
- _root.bg.globalToLocal(point3);
- _root.bg.attachMovie("baddie","baddie3" + enemycount,enemycount);
- _root.bg["baddie3" + enemycount]._x = point3.x;
- _root.bg["baddie3" + enemycount]._y = 15;
- }
- }
- function spawnEnemy4()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point4 = new object();
- point4.x = -20;
- point4.y = 10;
- _root.bg.globalToLocal(point4);
- _root.bg.attachMovie("baddie2","baddie4" + enemycount,enemycount);
- _root.bg["baddie4" + enemycount]._x = point4.x;
- _root.bg["baddie4" + enemycount]._y = 15;
- }
- }
- function spawnEnemy5()
- {
- if(_root.bossspawn == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point5 = new object();
- point5.x = 55;
- point5.y = 10;
- _root.bg.globalToLocal(point5);
- _root.bg.attachMovie("baddie7","baddie7" + enemycount,enemycount);
- _root.bg["baddie7" + enemycount]._x = point5.x;
- _root.bg["baddie7" + enemycount]._y = 15;
- _root.bossspawn = "off";
- }
- }
- function spawnEnemy6()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point6 = new object();
- point6.x = 260;
- point6.y = 10;
- _root.bg.globalToLocal(point6);
- _root.bg.attachMovie("baddie11","baddie11" + enemycount,enemycount);
- _root.bg["baddie11" + enemycount]._x = point6.x;
- _root.bg["baddie11" + enemycount]._y = 15;
- }
- }
- function spawnEnemy7()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point7 = new object();
- point7.x = 260;
- point7.y = 10;
- _root.bg.globalToLocal(point7);
- _root.bg.attachMovie("baddie11","baddie12" + enemycount,enemycount);
- _root.bg["baddie12" + enemycount]._x = point7.x;
- _root.bg["baddie12" + enemycount]._y = 15;
- }
- }
- function spawnEnemy8()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point8 = new object();
- point8.x = 260;
- point8.y = 10;
- _root.bg.globalToLocal(point8);
- _root.bg.attachMovie("baddie10","baddie17" + enemycount,enemycount);
- _root.bg["baddie17" + enemycount]._x = point8.x;
- _root.bg["baddie17" + enemycount]._y = 15;
- }
- }
- function spawnEnemy9()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point9 = new object();
- point9.x = -20;
- point9.y = 10;
- _root.bg.globalToLocal(point9);
- _root.bg.attachMovie("baddie10","baddie15" + enemycount,enemycount);
- _root.bg["baddie15" + enemycount]._x = point9.x;
- _root.bg["baddie15" + enemycount]._y = 15;
- }
- }
- function spawnEnemy11()
- {
- if(_root.spawncontrol == "on")
- {
- enemycount += 1;
- if(enemycount > max_enem)
- {
- enemycount = 0;
- }
- point11 = new object();
- point11.x = 260;
- point11.y = 10;
- _root.bg.globalToLocal(point11);
- _root.bg.attachMovie("baddie78","baddie78" + enemycount,enemycount);
- _root.bg["baddie78" + enemycount]._x = point11.x;
- _root.bg["baddie78" + enemycount]._y = -25;
- }
- }
- max_enem = 10;
- var intervalID;
- intervalID = setInterval(spawnEnemy,_root.enemyone);
- var intervalID2;
- intervalID2 = setInterval(spawnEnemy2,_root.enemytwo);
- var intervalID3;
- intervalID3 = setInterval(spawnEnemy3,_root.enemythree);
- var intervalID4;
- intervalID4 = setInterval(spawnEnemy4,_root.enemyfour);
- var intervalID5;
- intervalID5 = setInterval(spawnEnemy5,_root.bosslevelone);
- var intervalID6;
- intervalID6 = setInterval(spawnEnemy6,_root.enemysix);
- var intervalID7;
- intervalID7 = setInterval(spawnEnemy7,_root.enemyseven);
- var intervalID8;
- intervalID8 = setInterval(spawnEnemy6,_root.enemyeight);
- var intervalID9;
- intervalID9 = setInterval(spawnEnemy7,_root.enemynine);
- var intervalID11;
- intervalID11 = setInterval(spawnEnemy11,_root.enemyeleven);
- stop();
-