Hi, im working on my game that you can see if you click the link on my footer. i want to be able to drop a certain item in this case a bomb.
so i have this code on the bomb
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && this._currentframe==1) {
this.gotoAndPlay(2);
}
if (this._currentframe==1) {
this._x=_root.hero._x;
this._y=_root.hero._y;
}
}
this works fine but when i try to put the bomb inside of another moveiclip, it wont work. i need it inside another clip because my background is scrolling. if i dont put it inside the scrolling clips, then it will follow the character around.
if you dont understand then look at the attachment, and thanks for any help
edit!! fixed the problem!