metadata
Yes, I have changed it to take damage but it still doesn’t work.
Code:
function onEnterFrame()
{
\_x += speed;
for(var i in \_root.ship.enemies)
{
if(this.hitTest( \_root.ship.enemies[i] ) )
{
this.removeMovieClip();
\_root.ship.enemies[i].takeDamage();
}
}
if(\_x \> 600)
{
this.removeMovieClip();
}
}
}
|