I have made a currency and made a hittest function to add to the money dynamic text box(labled score.text). I have multiple of the coins near each other and when I’m going fast and collect them, I only get 1-0 added to the money dynamic text box. This is my code for the coin
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score.text_+=1;
unloadMovie(this);
if (root.score.text_+=1,false) {
_root.score.text_+=1;
}
}
}
I need it to where if I collect the coins (even if they are close together) it detects if that one had added one and if not it does. Or some thing similar to that.