ok all I want to do is make a character that shoots bullets.
I can attach the bullet but it stays still.
someone please help as i have tried everything
here is the code I used
shoot = true;
bulletcount = 0;
_root.onEnterFrame = function() {
if (Key.isDown(Key.SPACE) && shoot == true) {
currentbullet = attachMovie("bullet", "bullet"+bulletcount, bulletcount);
currentbullet._x = _root.char._x;
currentbullet._y = _root.char._y;
bulletcount++;
shoot = false;
}
if (Key.isDown(Key.SPACE)) {
spaceup = false;
} else {
spaceup = true;
}
if (spaceup) {
shoot = true;
}
};
thanks in advance