Code

[left]Ok for the coding http://www.flashkit.com/tutorials/Games/Building-David_Do-611/index.php is there a way to make the enemies come from the top down? [/left]
[left]I tried and it ended up coming from the bottom up. :h: Thanks for any help in advance[/left]

[color=sienna]On this code:[/color] onClipEvent (load) { function reset(){ this._x=600; this._y=random(200)+100; enemySpeed=random(4)+1; } reset();}Give your this._x the random, and give the _y a position abovethe screen. Go through the rest of your code and switchaccordingly[color=sienna]On this code:[/color]onClipEvent (enterFrame) { if (_root.spaceship.scrollStart){ this._x-=enemySpeed+_root.mainGround.groundSpeed; } else { this._x-=enemySpeed; } if (this._x<-10) { reset(); }}change the _x to _y and make sure to change -= to +=.There will probably be a few more tweeks you will have to make, Ididn’t look through all the tutorial, but this should get you started

[color=sienna]On this code:[/color] onClipEvent (load) { function reset(){ this._x=600; this._y=random(200)+100; enemySpeed=random(4)+1; } reset();}Give your this._x the random, and give the _y a position abovethe screen. Go through the rest of your code and switchaccordingly[color=sienna]On this code:[/color]onClipEvent (enterFrame) { if (_root.spaceship.scrollStart){ this._x-=enemySpeed+_root.mainGround.groundSpeed; } else { this._x-=enemySpeed; } if (this._x<-10) { reset(); }}change the _x to _y and make sure to change -= to +=.There will probably be a few more tweeks you will have to make, Ididn’t look through all the tutorial, but this should get you started

[color=sienna]On this code:[/color]

onClipEvent (load) {
function reset(){
this._x=600;
this._y=random(200)+100;
enemySpeed=random(4)+1;
}
reset();
}

Give your this._x the random, and give the _y a position abovethe screen. Go through the rest of your code and switch accordingly
[color=sienna][/color]
[color=sienna]On this code:[/color]

onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart)
{
this._x-=enemySpeed+_root.mainGround.groundSpeed;
}
else {
this._x-=enemySpeed;
}
if (this._x<-10) {
reset();
}
}

change the _x to _y and make sure to change -= to +=.

There will probably be a few more tweeks you will have to make, Ididn’t look through all the tutorial, but this should get you started