I fixed my problem by making sure that the X and Y coordinates of the symbols are the same, and to make sure to have the...
explosion._x = _x;
explosion._y = _y;
written out correctly.
Help, I'm on Step 7 when you add the explosion animation to your enemy ship, but when I run into it, the explosion happens left and down from where the actual enemy is. What should I do?
My code is perfect, but the enemies just immediately disappear when I have the code like that in the "EnemyShip". If I change it around, they will fly by, but they won't explode on contact, what should I do to fix this, please message me if possible.
I have all the codes right, as far as I know, but when I test it, the ships just appear in random places for a split second and disappear, it never stops... How do I fix this?
I have a problem it says
C:\Documents and Settings\Owner\Desktop\Flash Stuff\Shootorials\Ship.as, Line 2 Statement block must be terminated by '}'
C:\Documents and Settings\Owner\Desktop\Flash Stuff\Shootorials\Ship.as, Line 16 Syntax error.
My code looks like
class Ship extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
if( Key.isDown(Key.LEFT) )
{
_x = _x - velocity;
}
if( Key.isDown(Key.UP) )
{
_y = _y - velocity;
}
if( Key.isDown(Key.DOWN) )
{
_y = _y + velocity;
}
}
What is wrong?