Shooterial #3, I need desprete help

5 posts

Flag Post

This is what is happening when I try to shoot a missle.

I am stuck and do not know what to do, will somebody please help?

 
Flag Post

When you spawn the bullet, check to make sure you’ve set its _y coordinate correctly.

 
Flag Post

I have it like this currently.

if (Key.isDown(Key.SPACE) && shootLimiter > 8)
{
shootLimiter = 0;
var missle = _root.attachMovie (“Missle”, “Missle” + root.getNextHighestDepth(),_root.getNextHighestDepth());
missle.
x = x + 50;
missle.
y + _y + 2;
}

should I be changing this somehow?

I tried changing values for missle.x and missle.y, but nothing works.

 
Flag Post
missle._y + _y + 2;

Compare that to your statement for x values:

missle._x = _x + 50;

Your one for x values is setting the _x value, while for y values, is only adding the _y values. You need to set the value for any changes to take place.

 
Flag Post
Originally posted by UnknownGuardian:

missle._y + _y + 2;

Compare that to your statement for x values:

missle._x = _x + 50;

Your one for x values is setting the _x value, while for y values, is only adding the _y values. You need to set the value for any changes to take place.

THANK YOU SO MUCH! GOT IT WORKING NOW!!!!

I’m going to finish all the way up to 8, I thought I would never do it, thanks again!