Im currently working on a platformer. The character has to pick up items ive scattered throughout the stage. Ive put in this code to the pickable coin
onClipEvent(enterFrame){
if(_root.mc.hitTest(this)){
_root.mc.point+=1
removeMovieClip(this)
}
}
the first part of adding the point works but how do i make it removemovieclip. putting that in did not remove the coin from the stage. How can i use this function properly and perhaps is there any other way to remove a movie clip from the stage through actionscript?