Topic: Game Programming / Shootorial 5 problem
I’m trying to complete shootorial 5 but after I finished the code on page three the enemy ships only appear staying still in the top-left corner. here is my code.(the bold things have an asterisk before and after like in the code)(my screen is 1000 pixels wide)
class EnemyShip extends MovieClip
{
var speed;
function onLoad()
{
x = 1100;
_y = Math.random()500 + 50;
speed = Math.random()5 + 5;
}
function onEnterFrame()
{
_x -= speed;
if(x < -100)
{
this.removeMovieClip();
}
function explode()
{
this.removeMovieClip();
}
}
Cheers~Willomo