hello i'm here again..trying to make my alien shoot but it's not responding properly instead its displaying the bullets in a straight line and not singularly and also displying them facing up instead of down. i also am trying to use the same bullet i used for the goodspacship...is that right or should i create a seperate bulletmovieclip......really appreciate the advice....cos it's driving me a lil bonkers
Code:
//move alien
function movealien() {

if(blnPlaying)
{
	if (mcalien._y<240) 
	{
		mcalien._y += mcalienSpeed;
		
		var abl = _root.attachMovie("Bullet","Bullet" +i,i);
	i++;
	abl._x = _root.mcalien._x-10;
	abl._y = _root.mcalien._y+10;
	currentTime = getTimer();
	bulletReady = false;
	abl_array.push(abl);

	 if (currentTime + bulletDelay<=getTimer()){
		bulletReady = true;
	 }
for (var j = 0; j<abl_array.length; j++)
{
	var ab = abl_array[j];{
		if (ab._y<+50){
			ab._y += bulletspeed;
			}
			else {
				ab.removeMovieClip();
				}
			if(!abhit){
				if (ab.hitTest(mcSpaceship)){
					hit = true;
					_root.lives -=1;
					
					if (_root.lives == 0){
						blnPlaying == false;
						txtMessage.txt = "Game Over! Press ok to play again"; }
					}
					resetmcalien();
					ab.removeMovieClip();
				}
		}}
	} 
	else 
	{
		resetmcalien();
	}
	if (mcalien.restart) 
	{
		resetmcalien();
	}
// hittest for spaceship
if (!hitspaceship){
if (mcSpaceship.hitTest(mcalien)&& blnPlaying) {
				hit = true;
				_root.lives -= 1;
				if (_root.lives == 0)
				{
				_root.score = 0;
				blnPlaying = false;
				txtMessage.text = "Game Over! Press ok to play again";
				//mcSpaceship.removeMovieClip();
			}
			resetmcalien();
			}
			
		}
	}
}