# I need hittest help (yes I have my own code)

**URL:** <https://forum.kirupa.com/t/i-need-hittest-help-yes-i-have-my-own-code/203447>\
**Category:** flash\
**Created:** [October 11, 2006, 6:11am UTC](https://forum.kirupa.com/t/i-need-hittest-help-yes-i-have-my-own-code/203447 "2006-10-11T06:11:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverneo188](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Post date:** [October 11, 2006, 6:11am UTC](https://forum.kirupa.com/t/i-need-hittest-help-yes-i-have-my-own-code/203447/1 "2006-10-11T06:11:09Z")

</div>

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

```auto

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.
