I am shooting a fireball from my character but when I go to hit control again the existing fireball gets erased and replaced with the new one…here is my code
if (Key.isDown(Key.CONTROL)) {
for (k=0; k<99; k++) {
_root.createEmptyMovieClip("fireHolder"+k, depth++);
_root["fireHolder"+k].attachMovie("fireball", "fireball"+k, depth++);
_root["fireHolder"+k]._x = this._x;
_root["fireHolder"+k]._y = this._y;
_root["fireHolder"+k].onEnterFrame = function() {
this._rotation += 20;
if (_root.walker._currentframe == 20) {
this._x += 10;
}
if (_root.walker._currentframe == 10) {
this._x -= 10;
}
};
}
}
Also I need to figure out a better way to determine which way the bullet should shoot…if I shoot it, the IF statements work, but if I turn the other way, the bullet turns around too…hehe kinda funny