# Easier hittest?

**URL:** <https://forum.kirupa.com/t/easier-hittest/110409>\
**Category:** Uncategorized\
**Created:** [May 15, 2004, 6:41pm UTC](https://forum.kirupa.com/t/easier-hittest/110409 "2004-05-15T18:41:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fydus](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@Fydus](https://forum.kirupa.com/u/Fydus)\
**Post date:** [May 15, 2004, 6:41pm UTC](https://forum.kirupa.com/t/easier-hittest/110409/1 "2004-05-15T18:41:45Z")

</div>

I’m trying to make a space shooter game but every time i have like more than 3 enemies on screen, it lags like hell. Its because of my hitTests. I have to run through every name of bullets to check to see if it was hit by one.  
/////////////////////////////////////////////////  
for(count = 0; count != 20; count++)  
if(this.hitTest(\_root[“laser”+count])  
/////////////////////////////////////////////////  
is there any way i can just check and see the name of what hit it?  
like  
/////////////////////////////////////////////////  
obj = this.hitTest.\_name;  
/////////////////////////////////////////////////  
I know that doesn’t work or anything, but can i somehow figure out the name of what hit my enemy object?

a before hand thanks,  
Fydus
