need a little help with attaching movie clip
working on a little game where you plant bombs when pressing spacebar
here is the code
this works fine just one problem, the newly attached movieclip now follows the character movieclip... how can i stop this, but still have the bomb place in the characters position?Code:if (Key.isDown(Key.SPACE)) { i++; var newname = "bomb"+i; attachMovie("bomb", "bomb"+i, this.getNextHighestDepth()); _root[newname]._y = _root.hero._y; _root[newname]._x = _root.hero._x; _root[newname].onEnterFrame = function() {
also is there away i can make it attack a limited amount of bombs
please help
thank you






Reply With Quote