# Hit test with score

**URL:** <https://forum.kirupa.com/t/hit-test-with-score/39022>\
**Category:** Uncategorized\
**Created:** [January 2, 2004, 8:31am UTC](https://forum.kirupa.com/t/hit-test-with-score/39022 "2004-01-02T08:31:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mako](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mako](https://forum.kirupa.com/u/mako)\
**Post date:** [January 2, 2004, 8:31am UTC](https://forum.kirupa.com/t/hit-test-with-score/39022/1 "2004-01-02T08:31:00Z")

</div>

Hi. I’m making a game at the moment that uses hit tests and scoring with varibles etc. Having a bit a problem with one of hit tests.

Basically the lives used variable is not working.

placed this on my asteroid mc that is gonna hit my space ship (arrow)

onClipEvent (enterFrame) {  
speed = 10;  
this.\_y += speed;  
if (hitTest(\_root.arrow)) {  
root.lives = root.lives+1;  
}  
}

Any ideas…

thanx  
M
