Since you guys helped me out last time, I thought you may be able to give me a hand on this one too.
I'm making a simple 2 player game, kind of like pong but instead of a bouncing ball, you simply shoot "bullets" and if you hit the other players platform, you get a point.
I've made the start of the projectile system, though I'm having some problems.
I really don't understand how i should move multiple bullets at the same time, right now only one bullet moves, and if you fire again while it's moving, it simply starts over.
I guess that I have to do it with loops, but I've tried for hours without getting it to work.
NOTICE: I'd rather get an explanation on HOW to do it, rather than you doing it FOR me. Since it's school work, and I'm supposed to learn something
Here's the code:
if (Key.getCode() == Key.SPACE)
_root.attachMovie("bullet","bullet" + i,this.getNextHighestDepth());
_root["bullet" + i]._x = circle._x + 20;
_root["bullet" + i]._y = circle._y + 15;
onEnterFrame = function ()
_root["bullet" + i]._x += 15;
if (_root["bullet" + i].hitTest(square))
_root["bullet" + i].removeMovieClip();